Yes, you can. If you want to work with those tokens, just pass your channel number to the CommonTokenStream constructor.
Sam -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sam Barnett-Cormack Sent: Monday, March 23, 2009 1:30 PM To: ANTLR Interest Mailing List Subject: [antlr-interest] Using extra channels 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? Sam List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address 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 -~----------~----~----~----~------~----~------~--~---
