[antlr-interest] Match until "<@"
praveen_c
praveen_c at yahoo.com
Wed May 8 13:33:21 PDT 2002
Hi all,
Just wondering what is wrong with the following Lexer rule. I'm
trying to match all characters until reach the combination "<@"
including white space, new lines...everything.
MULTI_LINE_TEXT: ( options { greedy=false; } : .)* (~("<@"));
It gives me wierd errors. Is this the right way to specify when I
want to have something matched until I see a combination. If you
think there is a better way, please let me know.
Thanks in advance for any help,
Praveen.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list