[antlr-interest] C# lexer code generation problem

Johannes Luber jaluber at gmx.de
Wed Jul 18 12:56:52 PDT 2007


Jim Idle wrote:
> It looks like this needs fixing the c# target .java file, and I am sure
> it will be. You might try the following in the short term:
> 
>  
> 
> RULE: ‘\\’ ‘\”’ ;
> 

This error appears also while generating with the Java target - and only
with fragment rules. Could it be that it is a copy and paste error?

Best regards,
Johannes Luber

> 
> *From:* antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] *On Behalf Of *Kamal Verma
> *Sent:* Wednesday, July 18, 2007 11:10 AM
> *To:* antlr-interest at antlr.org
> *Subject:* [antlr-interest] C# lexer code generation problem
> 
>  
> 
> Following lexer rule or fragment,
> 
> SIMPLE_RULE
>     :    '\\\"'
>     ;
> 
> translates into C# code like,
> 
> :
> Match("\\\\"");
> :
> -- 
> which is incorrect;
> 
> Any ideas other than manually correcting the generated files.
> 
> -Kamal
> 
>  
> 
> ------------------------------------------------------------------------
> 
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games. <http://us.rd.yahoo.com/evt=49936/*http:/videogames.yahoo.com>
> 



More information about the antlr-interest mailing list