[antlr-interest] When a comment not a comment
Michael Bedward
michael.bedward at gmail.com
Wed Feb 18 16:04:15 PST 2009
Hi Joe,
How about this...
NONCOMMENT : '#ABCD' { $channel = HIDDEN; }
;
COMMENT : '#' ~('\r' | '\n')* NEWLINE { $channel = HIDDEN; }
;
NEWLINE : '\r' ('\n')?
| '\n'
;
Michael
More information about the antlr-interest
mailing list