[antlr-interest] Problems in upgrading to ANTLR v3.1

David Goldberg david at gohazel.com
Fri Aug 29 13:50:51 PDT 2008


Thanks, making sure I had and was generating code with the latest version of ANTLR and the C# libraries seems to have done the trick.

 David

-----Original Message-----
From: Johannes Luber [mailto:jaluber at gmx.de]
Sent: Thursday, August 28, 2008 6:44 PM
To: David Goldberg
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Problems in upgrading to ANTLR v3.1

David Goldberg schrieb:
> I finally upgraded my ANTLR version from 3.0.1 to 3.1
>
> I'm using ANTLRWorks 1.2b5 and and C# libraries that came with ANTLR
> v3.1b1 (since I couldn't find any in 3.1)

Those have been moved into a separate zip on the download page. The beta
ones are a bit more buggy and ANTLRworks 1.2b5 still uses 3.1b1
internally, so generate the code via command line now. Please test it
again with the correct configuration.
>
> I have a tree grammar with a line that looks like:
>
> block     :               thelb=LBRACE (blockExprList)? RBRACE ->
> ^(BLOCK[$thelb] blockExprList?);

Please understand that I require also the tree grammar to test it if the
above advice didn't solve this issue.
>
> In the previous version of ANTLR, this did what I expected - create a
> BLOCK node with syntax information taken from the LBRACE token. Now, it
> just gives me a null pointer exception, claiming that thelb is null.
>
> The input is:
>
> { 1; }
>
> My full grammar consists of the following:
>
> grammar LangTest;
>
>
>
> options
>
> {language = 'CSharp2';

Does using '' actually work? Where did you get that syntax? No example
I've ever seen uses it.

Johannes


More information about the antlr-interest mailing list