[antlr-interest] Need help regarding lexer

elango m go2elango at gmail.com
Wed Mar 19 06:24:02 PDT 2008


Hi,

I have defined a lexer like this.

STR_LITERAL : '\'' ('\'\'')* ~('\'')* '\'' ;

But lexer is not respecting  ('\'\'')*. It just takes the first '. For ex.
for input string 'a''bc', it resolves only 'a', but I want  resolve 'a''bc'
as a single token .Could any one please help me what I am missing.

Thanks in advance.
-EM-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080319/479241d0/attachment.html 


More information about the antlr-interest mailing list