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:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 6:44 PM To: David Goldberg Cc: [EMAIL PROTECTED] 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 List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
