[antlr-interest] Re: Antlr 3.0 spaces between tokens

Terence Parr parrt at cs.usfca.edu
Sun Nov 14 09:16:37 PST 2004



On Nov 11, 2004, at 8:52 AM, John D. Mitchell wrote:
> Ter's blog is unclear on this point but the basic idea is that 
> there'll be
> some syntax in the parser so that you can have specific parser rules 
> pay
> attention to more/less/different channels than the default set.  This 
> will
> handle cases like you mention where WS is significant in certain rules 
> and
> ignored everywhere else.

I'm starting with a "global" channel to tune to.  Actions can easily 
change the parser channel on the fly; only trouble is lookahead before 
it gets into a rule that needs a different channel.

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list