[antlr-interest] Channel=HIDDEN In ANTLR 3.0b5, ANTLRworks 1.0b6

Randall R Schulz rschulz at sonic.net
Mon Nov 20 20:49:26 PST 2006


On Monday 20 November 2006 20:31, Foolish Ewe wrote:
> Hello All:
>
> I just got the shiny new ANTLRworks (1.0b5) ...
>
> I may have a cockpit error, but I got the darndest error message for
> my white space handling. In my grammar end of line signals end of a
> command, and must be treated seperately from blanks and tabs.
>
> The offending line reads:
>
> WHITESPACE :   (' '  | '\t') {channel=HIDDEN;};

Try this:

  { $channel = HIDDEN; }


> And HIDDEN (I also tried hidden and Hidden) does not link properly.
>
> Regards:
>
> Bill M.


Randall Schulz


More information about the antlr-interest mailing list