[antlr-interest] Reusing parser and lexers

Micheal J open.zone at virgin.net
Thu Aug 25 15:33:38 PDT 2005


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

C# already has built in support for reusing Lexer and Parser instances.
Perhaps it can be extended to the other codegen targets?

Micheal
ANTLR/C#




More information about the antlr-interest mailing list