Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181270

Stratego/XT Programming Language

Does anyone know something about Stratego/XT Programming Language? What is it good for? Any good and/or bad experiences with it? Any real live running example?

Thanks a lot.

Upvotes: 3

Views: 688

Answers (3)

Ira Baxter
Ira Baxter

Reputation: 95306

If you are interested in Stratego (or TXL), you are likely to be interested in the DMS Software Reengineering Toolkit.

DMS is a full-featured program transformation system that at its core offers source-to-source rewrites, like Stratego and TXL. And you can use that to implement your own custom DSL compiler, or mass source code change engine.

Where DMS is different is that it can be obtained with tested-by-fire front ends for Java, C#, C++, C and COBOL, most of which will parse your source code, build ASTs and symbol tables, and for several of these provide control-flow, data-flow and points to analyzers.
The analysis infrastructure is generic, and can be used on your DSLs, too.

You can find a comparison of these systems at the web site.

Upvotes: 1

Eelco Visser
Eelco Visser

Reputation: 96

Stratego/XT is a language and toolset for program transformation based on term rewriting with programmable rewriting strategies.

You can find documentation and scientific papers about language and toolset at http://strategoxt.org.

A real life application of Stratego/XT is WebDSL (webdsl.org), a domain-specific language for the development of web applications, which in turn has been used to build researchr.org.

Stratego/XT is also the basis for the Spoofax/IMP toolset for building Eclipse IDE plugins for custom (domain-specific) languages (see Spoofax-IMP page on stratego site).

Upvotes: 7

msorc
msorc

Reputation: 917

Try TXL instead. It is easier to start with and does the similar jobs. There are examples on its site.

Upvotes: 1

Related Questions