[antlr-interest] Ignoring special comment lines
miguelpinheiro2000
miguelpinheiro2000 at yahoo.com
Tue Feb 5 02:25:04 PST 2002
Hi!
I would like to define a Lexer rule to match everything between ';'
and the end of line and ignore it (except de ';'). I have allready
defined a SEMI rule as
SEMI : ';';
because I'm interested to pass it to the Parser.
The typical text file I would like to parse is in this format:
<comand 1>;
<comand 2>; ignored comment
<comand 3>; ignored comment 2
<comand 4>;
Any help would be appreciated.
Thank you,
Miguel
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list