[antlr-interest] Another parsing question
Randall R Schulz
rschulz at sonic.net
Tue Aug 5 15:45:12 PDT 2008
On Tuesday 05 August 2008 14:52, Terence Parr wrote:
> On Aug 5, 2008, at 2:35 PM, Randall R Schulz wrote:
> > On Tuesday 05 August 2008 14:22, Terence Parr wrote:
> >> ...
> >>
> >> ... Will build a lazy version. :)
> >
> > That's probably a good idea, but will you preserve the current
> > semantics, making the lazy version simply a performance variant, or
> > will you allow the parser to influence the behavior of the lexer,
> > as so many people initially believe to be possible when they come to
> > ANTLR?
>
> Nope...the infinite lookahead makes comm between the two impossible.
> It will simply consume less memory and allow interactive parsers.
Good. I'm all for it. One common test suite in my world specifically
tries to choke the input processor with enormous input files. (And if
you can parse it, then it tries to choke the part that does the real
work, but that's a separate problem.)
> Ter
Randall Schulz
More information about the antlr-interest
mailing list