[antlr-interest] Is there a safe and easy way to reuse LEXER and PARSER objects on C target?

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Fri Apr 29 08:35:57 PDT 2011


On 4/20/11 5:17 PM, "Jim Idle" <jimi at temporal-wave.com> wrote:

Hi Jim,

> This is available as the reuse() method on the input stream, lexer, and
> parser. 

What about Tree Parser?

> If used then the lexer will also reuse the tokens from the last
> run and avoid any malloc.

Good.
 
> However, you will need to use the snapshot in perforce to get that. Or
> just wait a few weeks for the next release.

* does this means that last few years, all who use ANTLR3  are not able to
reuse 
            Input/Lexer/Parser/Tree_Parser

Hard to believe :-)


* where to get this snapshot? URL?

* does exists any special example/test of this in that snapshoot?

* does exists any special example/test of this in the official archive of
ANTLR3?

* how many weeks you think?  Worse case?


* any chance to get this working using official release 3.3?

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the antlr-interest mailing list