[antlr-interest] Distinguish vars starting from digit and integers
Alexey Demakov
demakov at ispras.ru
Mon May 16 00:07:04 PDT 2005
For example, you can create lexer rule that match both variable names and integers
with action analyzing token text and qualifying token as name if it contains letters,
as integer literal - otherwise.
Regards,
Alexey
-----
Alexey Demakov
TreeDL: Tree Description Language: http://treedl.sourceforge.net
RedVerst Group: http://www.unitesk.com
----- Original Message -----
From: "Alexander N. Royenko" <Alexander.Royenko at cad.kiev.ua>
To: <antlr-interest at antlr.org>
Sent: Sunday, May 15, 2005 4:07 PM
Subject: [antlr-interest] Distinguish vars starting from digit and integers
> Hi, all
>
> Can someone point me to the right way how to distinguish variables that
> starting from digit char like 00jSeven and integers like 1982?
>
> Thanks
>
> --
> Regards,
> Alexander.
More information about the antlr-interest
mailing list