JavaCC Specification Archive
05 Dec 2016
Augmenting Parser – Adding Java Code

Consider previous example where we learnt how to generate a Lexical Analyser and Parser with JavaCC. Today we are going to discuss, how to augment BNF productions with Java code? Later it will be included in the generated methods. To do so we have to change Basic.jj specification file. To the BNF production Start we