[antlr-interest] Reusing parser and lexers
Ersin Er
ersin_er at yahoo.com
Wed Aug 24 21:17:34 PDT 2005
--- Terence Parr <parrt at cs.usfca.edu> wrote:
>
> On Aug 24, 2005, at 3:54 PM, Ersin Er wrote:
>
> > Hi,
> >
> > We had implemented a mechanism with Piped Input/Output Stream to be
> > able to reuse parser and lexers without creating them each time.
> > However, we saw that this solution sometimes causes blocking.
> >
> > Today we saw the implementation here:
> >
> > http://www.antlr.org/pipermail/antlr-interest/2003-April/
> > 003631.html
>
> > We applied it and now it works..
>
> is it an easy tweak to 2.7.5 heading towards 2.7.6?
No problem with 2.7.2 . We just did what we read, so it seems easy.
It'll be good if it's handled correctly with some abstraction methods
like parser.reset(), lexer.reset().
> Ter
> --
> CS Professor & Grad Director, University of San Francisco
> Creator, ANTLR Parser Generator, http://www.antlr.org
> Cofounder, http://www.jguru.com
>
>
--
Ersin ER
Arastirma Gorevlisi
Hacettepe Universitesi
Bilgisayar Muhendisligi Bolumu
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the antlr-interest
mailing list