[antlr-interest] Newbie Question

Terence Parr parrt at jguru.com
Fri Nov 2 10:04:28 PST 2001


On Friday, November 2, 2001, at 09:45  AM, cela_vei at yahoo.com wrote:

> I am trying to migrate from Antlr 1.33 to Antlr 2.7
>
> I have a token definition in my 1.33 Grammer like this.
>
> #token BASIC "[Bb][Aa][Ss][Ii][Cc]"
>
> to match the keyword Basic in a case insensitive manner.
>
> How to I define this in the Antlr 2.7 lexer?

For keywords, you can just use the case insensitive literals option in 
the lexer.

Ter
--
Chief Scientist & Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list