[antlr-interest] Simple Antlr3 grammar not working in AntlrWorks 1.0b9

Terence Parr parrt at cs.usfca.edu
Mon Mar 26 18:36:30 PDT 2007


Fixed this bug.  Added unit test.  New antlr build.

http://www.antlr.org:8888/browse/ANTLR-96

Build: antlr-03-26-2007.18.tar.gz

fixes:

* CommonTreeNodeStream didn't push correctly; couldn't handle very
   deeply nested trees.

* Fixed bug that E : 'a' 'b' ; made E be seen as an alias of 'a'.

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