[antlr-interest] caseSensitive for one rule
Rodrigo B. de Oliveira
rodrigobamboo at hotmail.com
Wed Jul 16 08:34:29 PDT 2003
Well, not quite, you can always write a AssertLowerCase(Token t) function
and call it from every case sensitive rule. It can still be a lot of work
though.
ruleOne: s:"start"
{ AssertLowerCase(s); } ruleTwo
Rodrigo
----- Original Message -----
From: "Wirth. Michael" <M.Wirth at seeburger.de>
To: <antlr-interest at yahoogroups.com>
Sent: Wednesday, July 16, 2003 10:25 AM
Subject: AW: [antlr-interest] caseSensitive for one rule
yes, this is a way, but the code I wrote is only an example.
My origin code is much longer an there are more than one parser,
which are all extended from one superparser. So I have to write
the if-statement with the comparision in every parser at every
match of a token :(
But when I have to do this I have to.
Thanks for this quick answer.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list