[antlr-interest] Strange bug in ANTLR version higher than 3.1.2

Sam Harwell sharwell at pixelminegames.com
Wed Nov 4 21:10:53 PST 2009


The 3.1.2 mark you see in the first set is a bug in the C# version of
the Tool. It is actually a 3.2 version. Both versions I sent you should
be tested as "3.2" versions.

Sam

-----Original Message-----
From: FranklinChen at cmu.edu [mailto:FranklinChen at cmu.edu] 
Sent: Wednesday, November 04, 2009 11:07 PM
To: Sam Harwell
Cc: Graham Wideman; antlr-interest at antlr.org
Subject: RE: [antlr-interest] Strange bug in ANTLR version higher than
3.1.2

> Hi Franklin,
> 
> I generated the files twice - once with the C# port of the tool and a
> second time with antlr-3.2.jar just downloaded from antlr.org. Can you
> diff the code your version generated for you with these?
> 
> Sam

I see in your archive that you have ExprLexer.java, etc., generated
with ANTLR 3.1.2, and ExprLexer2.java, etc., generated with ANTLR 3.2.

I did a diff between my generated 3.2 with your 3.2 and they are
identical except for the first lines that have the version and
generation time stamp.

As for your generated 3.1.2 and my generated 3.1.2, there are some
differences, but structurally they look largely the same, and when I
plugged your 3.1.2 Java sources where my 3.1.2 would go, the resulting
code worked fine, just like my own 3.1.2 did.

I am not sure what your question is.

-- 
Franklin


More information about the antlr-interest mailing list