[antlr-interest] Re: Problems while reusing Lexer/Parser/TreeParser instances
Terence Parr
parrt at antlr.org
Sat Sep 27 13:32:31 PDT 2003
On Saturday, September 27, 2003, at 12:58 PM, micheal_jor wrote:
> In my scheme, the resetState() method for Lexers takes a new
> Stream/InputBuffer. The actual input file/stream/buffer doesn't have
> to be reset-able, just the internal state of the Lexer. Of course the
> "new" stream/InputBuffer may have been opened on the same file as the
> current one.
>
> Do you have code that successfully supports Lexer/Parser/TreeParser
> reuse?
Can't think of any off-hand...I'd have to generate an example.
Unfortunately, I'm hip-deep building slides for my StringTemplate
lecture on Tuesday. :(
Ter
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com pure link sharing
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list