[antlr-interest] Simple Antlr3 grammar not working in AntlrWorks 1.0b9
Terence Parr
parrt at cs.usfca.edu
Thu Mar 15 11:24:03 PDT 2007
Hi. Ack. Yeah, it's not defining a token for 'x'. It must see the
other 'x' and not define it.
Added:
http://www.antlr.org:8888/browse/ANTLR-96
Ter
On Mar 15, 2007, at 8:00 AM, Shmuel Siegel wrote:
> Consider
>
>
>
> grammar boo;
>
>
>
> sentence
>
> : 'abc' 'x'
>
> | Item
>
> ;
>
>
>
> Item: 'x' '0' '9' ;
>
>
>
>
>
> “sentence” doesn’t match abcx but does match abcx09. The grammar
> works properly if I rewrite “Item” as
>
>
>
> Item: 'x09' ;
>
>
>
>
More information about the antlr-interest
mailing list