[antlr-interest] Discarding characters in lexer
Dmitry Gusev
dmitry.gusev at gmail.com
Thu Mar 27 11:57:31 PDT 2008
Privet Andrey,
You can use '!' operator with rules, but not tokens.
On Thu, Mar 27, 2008 at 6:02 PM, Andrey Timoshenkov <tas at ultersys.ru> wrote:
> Hello everybody.
>
> I have a possibly quick question about the lexical analyzer. In version
> 2 there was a '!' operator that allowed to discard characters from token
> text like this:
>
> STRING: '"'! ('"' '"'! | ~('"') )* '"'! ;
>
>
> It seems that it has gone in version 3. Is it possible to achieve the
> same result in version 3?
>
> Thank you,
> Andrey Timoshenkov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080327/69275d81/attachment.html
More information about the antlr-interest
mailing list