[antlr-interest] Re: ANTLR 3.0 and code generation for C++
Ric Klaren
klaren at cs.utwente.nl
Tue Oct 28 01:54:04 PST 2003
Hi,
On Mon, Oct 27, 2003 at 12:26:51PM -0800, iank at bearcave.com wrote:
> Since Ter is a Java kind of guy (I hate to say it but I'm becoming a
> Java kind of guy too), I don't know if the new version will include
> work on the C++ code generator.
If I find the new version interesting enough I'll put work in it.
> Its been a while since I looked at
> the C++ generated source but as I recall it uses reference counted
> strings and other reference counted objects to mirror garbage
> collection in Java.
It uses reference counters for the AST and Token objects. Which is actually
a big PITA. Strings are not reference counted (other than what your local
std::string class provides)
> I have implemented a reference counting framework that includes a
> reference counted String class. As with ANTLR there are no
> limitations on the use of this code. So I'd like to offer it for
> the ANTLR C++ code generator if it would be useful.
I might be interested for the new development branch I'm planning on. I'll
have a look at it anycase :)
Thanks!
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Human beings, who are almost unique in having the ability to learn
from the experience of others, are also remarkable for their apparent
disinclination to do so. --- Douglas Adams, Last Chance to See
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list