[antlr-interest] Selective unhiding of HIDDEN channel

Bill Andersen bill.andersen at mac.com
Sat Jan 22 22:44:07 PST 2011


Hi Folks

I have a parser grammar, part of which has to pay attention to newlines, and part of which can ignore them.  Not my favorite design for a grammar, but I'm stuck with it.

Normally, I would like to dump newlines to the HIDDEN channel, but selectively "turn on" the hidden channel to pay attention to newlines.  Is there any good way to do this?

Thanks in advance.

  .bill


More information about the antlr-interest mailing list