[antlr-interest] Reuse Lexer/Parser Objects

Cory Isaacson cory.isaacson at compuflex.com
Thu Jan 10 16:46:32 PST 2008


I have a large number of Strings I want to parse, and as I need to do some
processing on each one, I elected to just build the parser to process one at
a time. However I noticed that all of the examples create a new lexer and
parser each time. Is this going to be inefficient? I could redesign things
to process a large group of strings, but they I would need to trigger my
processing after each parse (I know that can be done, but it seemed simpler
to iterate through the strings as I already have the iterator loop).

 

Thanks,

 

Cory

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080110/7f453056/attachment.html 


More information about the antlr-interest mailing list