[antlr-interest] Dropping keywords in lexer
Sean Walton
swalton at cs.utah.edu
Wed Sep 13 16:40:26 PDT 2006
I am trying to drop the keyword '__extension__' found in gcc. This is
essentially a "do-nothing" keyword and it is getting in the way of some
of my parsing. Is there a way to create a Lexer rule that will absorb
the token and toss it? I tried:
TOSSERS
: '__extension__' {channel=99;}
;
But, I get an "unreachable definition" error.
Ideas?
-Sean Walton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060913/46e03f23/attachment.html
More information about the antlr-interest
mailing list