[antlr-interest] C# lexer code generation problem

Kamal Verma kverma at yahoo.com
Wed Jul 18 11:09:35 PDT 2007


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




       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070718/a239cf26/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.g
Type: application/octet-stream
Size: 80 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070718/a239cf26/attachment-0001.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testLexer.cs
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20070718/a239cf26/attachment-0001.pl 


More information about the antlr-interest mailing list