[antlr-interest] C# target update (CL#5191) broke my tree parsers

Sam Harwell sharwell at pixelminegames.com
Mon Aug 11 09:01:57 PDT 2008


I made that single change locally this morning to verify that it was the
cause of the problems I was seeing. We're back in business :)

Sam

-----Original Message-----
From: Johannes Luber [mailto:jaluber at gmx.de] 
Sent: Monday, August 11, 2008 11:03 AM
To: Sam Harwell
Cc: antlr-interest
Subject: Re: [antlr-interest] C# target update (CL#5191) broke my tree
parsers

Sam Harwell schrieb:
> In TreeParser.cs, GetCurrentInputSymbol was changed to return null, so

> rules like the following don't work anymore:
> 
> rule
> :               ^(SOMETHING (item=A | item=B) somethingElse?)
>                 {
>                                 HandleItem( item.Token ); // now
throws 
> NullReferenceException
>                 }
> ;

Changed that back to original version in CL 5194. Does it work now for
you?

Johannes


More information about the antlr-interest mailing list