Re: Need to develop a compiler "source to source".

"Alexey Demakov" <demakov@ispras.ru>
25 Dec 2004 20:12:35 -0500

          From comp.compilers

Related articles
Need to develop a compiler "source to source". juoke@katamail.com (2004-12-23)
Re: Need to develop a compiler "source to source". demakov@ispras.ru (Alexey Demakov) (2004-12-25)
Re: Need to develop a compiler "source to source". rtr@quadstone.com (2004-12-25)
Re: Need to develop a compiler "source to source". nick.roberts@acm.org (Nick Roberts) (2004-12-25)
| List of all articles for this month |
From: "Alexey Demakov" <demakov@ispras.ru>
Newsgroups: comp.compilers
Date: 25 Dec 2004 20:12:35 -0500
Organization: Compilers Central
References: 04-12-106
Keywords: translator
Posted-Date: 25 Dec 2004 20:12:34 EST

For rather complex source-to-source translations (specification
extention of programming language to that language,
http://www.unitesk.com) we use free TreeDL tool
(http://treedl.sourceforge.org) with ANTLR for lexer/parser
generation.


TreeDL allows to specify heterogenous AST structure in very clear way
and and generates Java (in near future C#) code for tree classes. It
also provides simple but powerful enough library for code generation
and some auxiliary facilities (like localizable error messages).


See documentation and examples at tool homepage.


There is similar approach called TreeCC:
http://www.southern-storm.com.au/treecc.html


As IDE for integration I recommend Eclipse http://www.eclipse.org


Regards,
Alexey


-----
Alexey Demakov
TreeDL: Tree Description Language: http://treedl.sourceforge.net
RedVerst Group: http://www.unitesk.com






----- Original Message -----
From: "Juoke" <juoke@katamail.com>
Sent: Friday, December 24, 2004 1:53 AM
Subject: Need to develop a compiler "source to source".




> I need to develop a (complex) compiler that translate from an
> high-level source - given the (e)bnf, quite long... - to another
> high-level source. I know there are dozens of apps, but I'm asking
> which one would be better, in your opinion.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.