[antlr-interest] Problems in upgrading to ANTLR v3.1
Johannes Luber
jaluber at gmx.de
Thu Aug 28 15:43:51 PDT 2008
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