[antlr-interest] reuse lexer and parser objects

John Merrells merrells at sleepycat.com
Tue Jul 30 19:07:32 PDT 2002


I'm using Antlr 2.7.1 to generate a C++ lexer and parser. I'm finding that
the construction and destruction of these objects is pretty heavy, so I'd
like to just keep them hanging around and reuse them for each parse
that I need to do. The question is how do I do that? I looked on
CharScanner and LlkParser for reset methods, but don't see anything
obvious. Your suggestions are most welcome.

John


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list