next up previous
Next: Patterns Up: Transforming COBOL Systems Previous: Parsing

Unparsing

We also generate formatters from grammar descriptions. Given the grammar of a language (in SDF) an ASF+SDF specification is generated that can be used as a default formatter for that language [19]. We adapt the generated ASF+SDF specification to the demands of the company in question and we use the ASF+SDF compiler to generate an efficient stand-alone unparser.

Figure 3: A native COBOL pattern.
\begin{figure}\begin{footnotesize}
\begin{verbatim}Procedure-name-1.
IF Condi...
...tatement-1+
GO TO Procedure-name-1.\end{verbatim}\end{footnotesize}\end{figure}



Paul Klint 2001-06-12