[antlr-interest] Channel=HIDDEN In ANTLR 3.0b5, ANTLRworks 1.0b6
Foolish Ewe
foolishewe at hotmail.com
Tue Nov 21 06:56:50 PST 2006
Thanks Randall:
Sorry that I missed that, I just looked more carefully at the readme and
must have
missed the leading $. I thought the $ was needed to access a token or a
"handle"
bound to a token in the grammar rules, is channel a token or am I
misunderstanding
the semantics of the leading $?
Regards:
Bill M.
>From: Randall R Schulz <rschulz at sonic.net>
>To: antlr-interest at antlr.org
>Subject: Re: [antlr-interest] Channel=HIDDEN In ANTLR 3.0b5, ANTLRworks
>1.0b6
>Date: Mon, 20 Nov 2006 20:49:26 -0800
>
>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
_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial!
http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkwlo0050000001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail
More information about the antlr-interest
mailing list