JavaCC is a tool that generates parsers and allows defining grammars through JavaCC grammar files (.jj files). The JavaCC grammar file defines tokens, productions, and Java code actions. Tokens ignore whitespace and define terminal symbols. Productions define the grammar rules and may include repetitions, choices, and lookahead. The parser output creates an abstract syntax tree using different expression classes like PlusExpression, which can then be interpreted.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
137 views
JavaCC Intro
JavaCC is a tool that generates parsers and allows defining grammars through JavaCC grammar files (.jj files). The JavaCC grammar file defines tokens, productions, and Java code actions. Tokens ignore whitespace and define terminal symbols. Productions define the grammar rules and may include repetitions, choices, and lookahead. The parser output creates an abstract syntax tree using different expression classes like PlusExpression, which can then be interpreted.