[antlr-interest] selective case insensitive

mzukowski at yci.com mzukowski at yci.com
Thu Mar 20 08:08:25 PST 2003


You will notice that the generated lexer uses a map to hold the literals.
You could replace that map with one that had logic for your requirements.

Monty

-----Original Message-----
From: mark kant [mailto:markkant2001 at yahoo.com]
Sent: Wednesday, March 19, 2003 4:45 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] selective case insensitive


How do I do lexical analysis that is case insensitive.
 But then at times I need it to be case sensitive.I
tried using CharScanner.setCaseSensitive(...) actione
before the specific rule, but it did not work.

Thanks

Mark

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

 

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


 

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



More information about the antlr-interest mailing list