|Is there a Tool for transforming an intermediate language into another firstname.lastname@example.org.Uni-Magdeburg.DE (Luis Urbina) (1995-08-21)|
|Re: Is there a Tool for transforming an intermediate language into ano email@example.com (1995-08-22)|
|From:||firstname.lastname@example.org (Terence John Parr)|
|Organization:||Parr Research Corporation|
|Date:||Tue, 22 Aug 1995 16:51:02 GMT|
Luis Urbina (email@example.com.Uni-Magdeburg.DE) wrote:
: I am looking for a tool for transforming any intermediate
: language IL1 into another Il2, by, for instance, only
: describing the source language IL1 and the target language IL2.
That's probably a fantasy (or academic ;)).
However, you might consider SORCERER--a tool for walking
and manipulating trees. You provide SORCERER with a grammatical
description of the source tree structure and then specify a bunch
of actions that either rewrite the tree or generate some output
directly. SORCERER generates a depth-first tree walker in C or C++
as a collection of mutually recursive member functions.
We have used SORCERER to good effect for a number of large source-to-source
translation contracts. Multiple phases may easily be linked together
to perform very complicated transformations. Take a look at
newsgroup comp.compilers.tools.pccts and see the pre-release version of
my book on SORCERER and other language tools at
in pub/pccts/papers, you'll find some nice summary papers too.
Terence of the Surf
Return to the
Search the comp.compilers archives again.