The data-flow diagram below shows the main tools from the StrategoXT and SDF2 packages. The red edges indicate the standard composition of a transformation system consisting of a parser, a transformation component (trafo), and a pretty-printer for programs in language Lang. The blue edges show the generation of components for this transformation system. The black edges show other tools.

Composition of a transformation system using files

  • sglri -p Lang.tbl -i file.lang -o file.ast
  • trafo -i file.ast -o file-trafo.ast
  • ast2text -p Lang.pp -i file-trafo.ast -o file-trafo.lang

using pipes

  • sglri -p Lang.tbl -i file.lang | trafo | ast2text -p Lang.pp -o file-trafo.lang

refcard.gif

-- EelcoVisser - 11 Jan 2003

Revision: r1.2 - 11 Jan 2003 - 20:43 - EelcoVisser
Stratego > ReferenceCard
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback