[antlr-interest] antlrworks "NoViableAlt" exception

Juancarlo Añez apalala at gmail.com
Thu Nov 8 04:57:49 PST 2012


On Thu, Nov 8, 2012 at 7:44 AM, Mike Lischke <mike at lischke-online.de> wrote:

> Because literals in the parser (i.e. string constants used in parser
> rules) get a random lexer token id, which are hard to recognize when you
> walk your tree.


Why hard to recognize? ANTLR declares tokens for those literals in the
generated source. A 'WHILE' becomes WHILE=nnn.

-- 
Juancarlo *Añez*


More information about the antlr-interest mailing list