[antlr-interest] Cannot understand why parser accepts input...

Gavin Lambert antlr at mirality.co.nz
Fri Dec 7 00:22:30 PST 2007


At 17:45 7/12/2007, Bern.McCarty at bentley.com wrote:

>Why does the below grammer successfully parse the input " B ==3C" 
>When there are no numerals allowed anywhere in the grammer?

It's an automatic error-recovery thing.  When ANTLRv3 encounters a 
character it can't figure out, it prints an error to the console 
(by default), drops the character, and then tries again.



More information about the antlr-interest mailing list