Stratego/XT

Stratego/XT

Infobox Software
name = Stratego/XT



caption =
developer =
latest release version =
latest release date =
latest preview version =
latest preview date =
operating system = Cross-platform
platform =
genre = program transformation system
license = LGPL
website = http://www.strategoxt.org

Stratego/XT is a language and toolset for constructing stand-alone program transformation systems. It combines the "Stratego" transformation language with the "XT" toolset of transformation components, providing a framework for constructing stand-alone
program transformation systems. The Stratego language is based around a programming paradigm called "strategic term rewriting". It provides "rewrite rules" for expressing basic transformation steps. The application of these rules can be controlled using "strategies", a form of subroutines. The XT toolset provides reusable transformation components and declarative languages for deriving new components, such as parsing grammars using the Modular Syntax Definition Formalism (SDF) and implementing pretty-printing.

Concrete syntax

Program transformations often operate by modifying the abstract syntax tree (AST). In Stratego it is also possible to specify transformations using concrete syntax. [ [http://www.program-transformation.org/Stratego/MetaProgrammingWithConcreteObjectSyntax Meta-programming with concrete object syntax] ] This allows programmers to express a transformation using the familiar (and often more concise) syntax of the object programming language, while it internally still operates on the AST.

Examples

A rule to desugar a do-while statement in Java: [Using the [http://www.program-transformation.org/Stratego/JavaFront Java-front] syntax definition] desugar : While(e, stm) -> If(e, DoWhile(stm, e))

The same rule, using concrete syntax: desugar : | [ while (e) stm; ] | -> | [ if (e) do stm while(e); ]

See also

* ASF+SDF Meta Environment
* Program transformation
* Source code generation

Notes

External links

* [http://www.strategoxt.org strategoxt.org]
* [http://www.program-transformation.org Program-transformation.org]
* [http://buildfarm.st.ewi.tudelft.nl/releases/strategoxt/strategoxt-manual-unstable-latest/manual/ The Stratego Manual]
* [http://www.strategoxt.org/Stratego/StrategoPublications Stratego Publications]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Stratego — Versión del Stratego para computadora. Jugadores 2 Preparación 2 a 5 min …   Wikipedia Español

  • Stratego — Computerversion des Stratego Spielbretts Daten zum Spiel Autor Jacques Johan Mogendorff Verlag Smeets Schippers (1946), Jumbo (1958), Milton Bradley (1961) …   Deutsch Wikipedia

  • Stratego — (jeu de société) Pour les articles homonymes, voir Stratego (homonymie). Stratego jeu de société …   Wikipédia en Français

  • stratego — /stra tɛgo/ (o stratega, quasi esclusivo nel sign. 2) s.m. [dal gr. stratēgós, comp. di stratós esercito e ágō condurre ] (pl. ghi ). 1. (stor.) [nell antica Grecia, chi comandava l esercito o la flotta] ▶◀ comandante, condottiero, generale. 2.… …   Enciclopedia Italiana

  • Stratego — Infobox Game subject name=Stratego image link= image caption=Initial set up of Stratego, from the Milton Bradley edition with plastic pieces. players=2 ages=8 and up setup time=2 to 5 minutes playing time=30 to 120 minutes (player dependent)… …   Wikipedia

  • Stratego: Legends — is a strategy board game created and released by Avalon Hill in 1999. Set in a mythical world called The Shattered Lands , it pits the forces of good (represented by beige colored pieces) against the forces of evil (represented by gray pieces).… …   Wikipedia

  • Stratego (jeu de société) — Pour les articles homonymes, voir Stratego (homonymie). Stratego jeu de société L édition de 2006 par Jumbo …   Wikipédia en Français

  • Stratego (homonymie) — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Stratego est un jeu de groupe qui a pour sujet la guerre et qui demande une grande notion de stratégie. L origine du jeu nous vient des Pays Bas, où il a… …   Wikipédia en Français

  • stratego — stra·tè·go s.m. TS stor. 1. in Grecia antica, comandante militare supremo di una parte o di tutte le forze militari di uno stato | ognuno dei dieci membri di una magistratura ateniese sorta alla fine del VI secolo a.C., che deteneva il comando… …   Dizionario italiano

  • stratego — {{hw}}{{stratego}}{{/hw}}s. m.  (pl. ghi ) 1 Nell antica Grecia, comandante militare | Ad Atene, comandante supremo con poteri militari e civili. 2 (raro) Stratega …   Enciclopedia di italiano

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”