On Mar 23, 2009, at 11:30 AM, Sam Barnett-Cormack wrote:

> Hi all,
>
> We all (generally) use the default and hidden channels. What if I  
> wanted
> there to be another channel which, usually, doesn't get used, but if I
> want to tune to it as well I won't get the actual whitespace? Say for
> tokens that you mostly won't be interested in, but may want to
> programmatically choose to be interested in.
>
> Can I literally just define a new constant, MYCHANNEL, that's an int  
> not
> of the same value as HIDDEN or whatever the default one is called, and
> use it as I would either of those?

Yep. channels are just ints.  Parser can tune in/out on any channel it  
ways.

Ter

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to