"ScratchMonkey" <Sc*********************@sewingwitch.com>
wrote in message news:Xn***************************@64.164.98.49...
I'm working on a system which exposes TCL scripting but looks to be
difficult to extend with a native binary. I need to build a "front end"
for it that has lots of complicated data structures and can benefit from
strong typing, so C++ is a more natural choice for implementation. Does there
exist a C++ compiler that generates TCL as its output?
Not that I know of. C++ is very complex, it is difficult to
belive that TCL would be a friendly target for all that complexity,
and I can't see the economic value of compiling into TCL.
I suspect some would argue you should compile the other way.
What you could consider doing is to define you own "dialect" of
TCL which requires strong typing, checks the types, and
then translates that to vanilla TCL.
If you wanted to do that, you might consider using the DMS
Software Reengineering Toolkit, generalized compiler technology
that handles many langauges. It doesn't presently
have a TCL front end, but given its track record of
"absorbing" other languages (like C++), that isn't
an issue. Using a TCL front end, you could define
the type checker and run it on user input.
See
http://www.semanticdesigns.com/Produ...MSToolkit.html.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc.
www.semdesigns.com
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---