[antlr-interest] new "tutorial" for v3
Kay Roepke
kroepke at classdump.org
Sun Nov 26 17:34:29 PST 2006
On 25. Nov 2006, at 7:54 , Brian Slesinsky wrote:
> In the whitespace rule, why is it using skip() instead of
> $channel=HIDDEN?
Using a different channel will retain the tokens but hide them from
the parser, but skip()
won't even emit a token. If you are certain that you don't ever need
the whitespace you can
save yourself the overhead of creating them.
HTH,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list