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

Terence Parr parrt at cs.usfca.edu
Tue Nov 21 08:26:12 PST 2006


On Nov 21, 2006, at 6:56 AM, Foolish Ewe wrote:

> 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 $?

channel is a token attribute, which is an attribute of a lexer  
rule. :)  $ is for all attribute stuff.  @ is for action and % is for  
template junk.

Ter



More information about the antlr-interest mailing list