[antlr-interest] ANTLRv3 emits literal DOWN instead of Token.Down

Kalen Petersen khp at cypress.com
Mon Dec 3 17:53:31 PST 2007


Been using antlr for a few weeks now and it's great, but today I 
stumbled across this bug. 

The attached grammar produces invalid code in both java and C# targets.  
In the lookahead, it emits "DOWN" instead of "Token.Down" as in the 
recognition stage.  This is on line 37 in DownBugParser.java. 

This is observed with the version of antlr included in ANTLRWorks 1.1.5. 

Thanks,

--Kalen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DownBug.g
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20071203/b77f6853/attachment-0001.pl 


More information about the antlr-interest mailing list