ANTLR Section Index | Page 10
All I know is that I need to build a parser or translator. Give me an overview of what ANTLR does and how I need to approach building things with ANTLR.
[See also Getting started ]
To build a language recognizer, you specify the structure of that langage with a grammar and then have ANTLR generate a Java or C++ class definitio...more
Can I compile ANTLR to a binary executable (with GCJ?)?
get & install gcj and libgcj. Both can be found at:
http://sourceware.cygnus.com/java/download.html
gcj is part of the GNU compiler (gcc 2.95.1) and libgcj is a
separa...more
How do I build a list of nodes with no root?
I want to translate a subtree like #(CHAIN ID) into three
nodes like #(#[ASSIGNMENT], ID, ID) followed by #[NEWLINE, " : "] then
#[EXIT_SUB]. I haven't
found any examples of how to do this using...more
If you change a rule action to do manual tree building, don't forget to put the '!' on that alternative to turn off the automatic tree building--the results can be quite confusing.
question field says it all
What is ANTLR?
ANTLR, Another Tool for Language Recognition,(formerly PCCTS) is a parser and translator generatortool, akin to the venerable lex/yacc duo, that lets you constructrecognizers, compilers, an...more
You can use ## as shorthand for the current rule subtree node in a tree walker. In PCCTS this was #0.
question field says it all