Tutorial by Examples

ANTLR contains a testing tool in its runtime library, this tool can be used to display information detailing how the parsing is performed to match input against defined rules in your grammar file. To use this tool contained within the ANTLR jar file you should setup your systems classpath to allow ...
Specifying the -gui command line option when running an ANTLR grammar in the test rig will result in a window popping up with a visual representation of the parse tree. For example: Given the following grammar: JSON.g4 /** Taken from "The Definitive ANTLR 4 Reference" by Terence Parr */...

Page 1 of 1