[antlr-interest] Actions in predicates

Marcin Rzeźnicki marcin.rzeznicki at gmail.com
Mon Feb 22 09:11:39 PST 2010


On Mon, Feb 22, 2010 at 6:05 PM, shmuel siegel <antlr at shmuelhome.mine.nu>wrote:

> On 2/22/2010 6:56 PM, Marcin Rzeźnicki wrote:
> > During predicate used to disambiguate call subrule I'd need to fire
> action
> > which sets appropriate flag in my lexer ordering it to emit semicolons to
> > the main channel.
> >
> Have things changed so that the parser can affect the lexer? I thought
> that the lexer does all of its parsing before the parser sees any tokens.
>
>
>

You may be right, ooops. Then my solution is completely flawed. I'll better
check ANTLR's source code :-)



-- 
Greetings
Marcin Rzeźnicki


More information about the antlr-interest mailing list