Start Validating and non validating parser

Validating and non validating parser

You may want to use the token type value of a string literal in your actions, for example in the synchronization part of an error-handler.

A header section contains source code that must be placed before any ANTLR-generated code in the output parser.

This is mainly useful for C output due to its requirement that elements be declared before being referenced.

* * You might want to throw token or char stream * exceptions like: "Heh, premature eof" or a retry * stream exception ("I found the end of this file, * go back to referencing file").