[antlr-interest] Bug in ANTLR 3.0ea3 code generator

Terence Parr parrt at cs.usfca.edu
Fri Jun 24 12:29:10 PDT 2005


Weird.  You mean the extra ))?  DAMN!  I tried all my units tests but  
not the examples!  ARgh!

I thought I removed actions from my descriptions...i'm adding  
comments to the output code to tell you where you are in the  
grammar.  Actions naturally screw this up if I don't shut them off.   
Hmm...

I meant to do

         // Javadoc.lexer.g:18:6: ( ( (' '|'\t'|'\n'))+ )

etc...

Ok, I've put CodeGenTreeWalker.* in

http://www.antlr.org/download/CodeGenTreeWalker.*

Drop it in and you'll be ok. :)  Sorry!

Ter
On Jun 24, 2005, at 12:13 PM, Sebastian Mies wrote:

> Hi Terence,
>
> hmm... tried to compile simple.g and javadoc.g (from examples v3)  
> with ANTLR 3.0ea3.
> I've got syntax errors in the generated lexers (see pic).
>
> My fault?
>
> Sebastian.
>
>
>
>
> <SimpleLexer.jpg>
>

--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list