[antlr-interest] problem with characters in grammar
Wojciech Tomasz Cichon
wtcichon at googlemail.com
Sat Mar 19 12:25:24 PDT 2011
damn
i’m so stupid
i spend at least hour trying to find what’s wrong
thanks
From: Bart Kiers
Sent: Saturday, March 19, 2011 7:19 PM
To: Wojciech Tomasz Cichon
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] problem with characters in grammar
On Sat, Mar 19, 2011 at 8:14 PM, Wojciech Tomasz Cichon <wtcichon at googlemail.com> wrote:
i decided to extend my grammar for characters
and i added:
factor : '-'? (NUMBER )
| character
;
character : AP (LETTER | NUMBER) AP;
AP : '\'';
LETTER : 'A'..'Z' | 'a'..'Z';
There's a capital Z after the `a`..
Try a lower case.
Regards,
Bart.
More information about the antlr-interest
mailing list