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

matthew ford Matthew.Ford at forward.com.au
Sun Nov 14 17:50:19 PST 2004


Hi Ter,

You need to find a solution to the lookahead problem or these channels will
not be much improvement over token streams or switching the lexer state from
the parser.
matthew

----- Original Message ----- 
From: "Terence Parr" <parrt at cs.usfca.edu>
To: <antlr-interest at yahoogroups.com>
Sent: Monday, November 15, 2004 4:16 AM
Subject: Re: [antlr-interest] Re: Antlr 3.0 spaces between tokens


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



 
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