50 likes | 288 Views
JavaCC. Travis Desell. JavaCC and JJTree. JJTree Converts a .jjt grammar file into a .jj intermediary file JavaCC Converts a .jj file into the specified parser and/or compiler. JJDoc Converts a .jjt grammar file into an html representation of the grammar. JavaCC Paths.
E N D
JavaCC Travis Desell
JavaCC and JJTree • JJTree • Converts a .jjt grammar file into a .jj intermediary file • JavaCC • Converts a .jj file into the specified parser and/or compiler. • JJDoc • Converts a .jjt grammar file into an html representation of the grammar
JavaCC Paths /projects/wwc/software/javacc-3.2/bin/javacc /projects/wwc/software/javacc-3.2/bin/jjtree /projects/wwc/software/javacc-3.2/bin/jjdoc
Relevant Links • https://javacc.dev.java.net/ • http://www.idevelopment.info/data/Programming/java/JavaCC/The_JavaCC_FAQ.htm
Important Files • Token • Represents terminals (numbers, identifiers, punctuation, etc.) • Stored in linked list. • Node/SimpleNode • Represents non-terminals in the grammar. • Stored in a tree. • <parser_name>TreeConstants • Contains information for which nodes correspond to which non terminals.