[antlr-interest] C# lexer code generation problem

Jim Idle jimi at temporal-wave.com
Wed Jul 18 12:28:53 PDT 2007


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: '\\' '\"' ; 

 

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> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070718/be454b06/attachment.html 


More information about the antlr-interest mailing list