[antlr-interest] apostophe crashes Interpreter

Benjamin Niemann pink at odahoda.de
Sun Oct 28 12:16:24 PDT 2007


Geoff hendrey wrote:

> I built a simple grammar, most of which consists of lines that must be
> terminated by a semicolon. Occasionally I make a typo, since apostrophe is
> next to semicolon on the keyboard, and I wind up typing an apostrophe to
> the right of the semi colon.
> 
> The presence of this apostrophe seems to result in either everything after
> the apostrophe being ignored, as if it is not there, or the parser itself
> crashing.
> 
> Has anyone seen this before?

Not that specific one, but error handling/reporting of ANTLRs own parser is
known to be 'suboptimal'. Ter did not spend much time on it, because the
current implementation is just temporary (built on V2) and will be
rewritten anyway - he's currently working on it.




More information about the antlr-interest mailing list