mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Why didn't I think about this before??? symbolName should be a method of SymbolKind. * data/skeletons/lalr1.java (YYParser::yysymbolName): Move as... * data/skeletons/java.m4 (SymbolKind::getName): this. Make the table a static final table, not a local variable. Adjust dependencies. * doc/bison.texi (Java Parser Interface): Document i18n. (Java Parser Context Interface): Document SymbolKind. * examples/java/calc/Calc.y, tests/local.at: Adjust.
Examples in Java
This directory contains examples of Bison grammar files in Java.
You can run make to compile these examples. And make clean to tidy
afterwards.
simple/Calc.y
The usual calculator, a very simple version.
calc/Calc.y
The calculator, but with location tracking and debug traces.