[antlr-interest] Is it possible to do rewriting for lexer?

Gokulakannan Somasundaram gokul007 at gmail.com
Tue Jul 26 00:02:23 PDT 2011


>
> On Mon, Jul 25, 2011 at 4:44 PM, Rob Aarnts <rob at aarnts.com> wrote:
>
>>
>> Or:
>>
>> SINGLE_QUOTED_STRING returns [string result]
>>     : SQUOTE
>>            val=((~SQUOTE)*)    { $result = val.Text; }
>>       SQUOTE
>>     ;
>>
>> Is this possible? To my knowledge, Lexer cannot return...
>
> Gokul.
>
>


More information about the antlr-interest mailing list