[antlr-interest] Lexer/Parser Reuse?

Terence Parr parrt at cs.usfca.edu
Tue Sep 11 07:55:11 PDT 2007


Check for a reset method in lexer/parser (v3).  Actually, you want to  
set the char stream / token stream.  I *think* that made it into  
3.0.1.  If not, I can get you 3.1b1.
Ter
On Sep 10, 2007, at 11:36 PM, Matthew Bowman wrote:

> Greetings everybody,
>
> I found this thread (http://www.antlr.org/pipermail/antlr- 
> interest/2005-August/013503.html) on the list put it didn't help me :(
>
> I'm trying to figure out how I can setup a "pipeline" of a Lexer -- 
> > Parser combination for a mini-scripting language I'm using ANTLR  
> for. Basically there's an "on-demand" interpreter component that I  
> would like to push String expressions into the Lexer and pull my  
> nice AST out of the parser (over and over again with out recreating  
> a new Lexer/Parser each time).
>
> Could anyone help me out on how I would go about doing such a thing?
>
> Thanks in advance,
> --Matthew Bowman



More information about the antlr-interest mailing list