[antlr-interest] Internal error
Johannes Luber
JALuber at gmx.de
Wed Dec 5 03:10:06 PST 2007
-------- Original-Nachricht --------
> Datum: Wed, 5 Dec 2007 17:42:42 +1100
> Von: "Steve Bennett" <stevagewp at gmail.com>
> An: "antlr-interest Interest" <antlr-interest at antlr.org>
> Betreff: [antlr-interest] Internal error
> I got this error with ANTLRWorks 1.1.5 (and .4 as well):
>
...
>
> The code that seems to have caused it is as follows:
> ----
> literal_equals:
> {!in_header}? => EQUALS
> | {input.LA(2) != EQUALS}? => EQUALS;
> ----
>
> Am I doing something wrong? It didn't produce this error without the
> third line of the above.
>
> This apparently equivalent rule doesn't produce the error, I have just
> discovered:
>
> literal_equals:
> {!in_header || input.LA(2) != EQUALS}? => EQUALS
> ;
>
Remove those spaces between "}?" and "=>" - maybe that's causing the parsing error.
Johannes
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the antlr-interest
mailing list