Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Remote debugging is enabled for a parser by setting the ANTLR -debug flag (to true) when generating the parser from the grammar.
This hast has the effect of changing the superclass of the generated parser to subclass DebugParser and inserts various debugging hooks throughout the recursive descent parsing process.
Accordingly the simple driver class to exercise the parser is slightly different.
What is different?

Code Block
titlesample.g
borderStylesolid
grammar sample;

example : 'SOME TEXT TO PARSE';

...