[antlr-interest] Why does it silently ignore invalid input?

Paul J. Lucas dude at darkfigure.org
Wed Jun 4 09:32:23 PDT 2003


I have a grammar with a second entry-point that I call.  In my grammar, "DECLARE" is 
a keyword (must be upper-case).  When the generated parser encounters "declare" 
(lower-case), it simply breaks out of the parse loop and returns.  Why doesn't it throw 
an exception?


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list