Pattern-based Text Generator
The Pattern-Based Text Generator PTG supports translations into any kind
of structured text.
The structure of the target text is described by a set of patterns.
PTG generates a set of functions for them. They are called
to compose an instance of the target structure which is then
PTG is suitable to produce any kind of target language, e. g. programs
of any programming language, special purpose languages like TeX or
PostScript, or just structured data or tables in textual form.
PTG is typically applied for tasks of a language processor's translation
phase. The calls of the patterns functions are then used in LIDO
specifications to describe the translation of certain tree contexts.
PTG may as well be used in C functions or in stand-alone C programs that
translate some data structure into an output text.
Reading the documentation online
one can use the documentation browser's
Run command to obtain a
copy of the complete specification for the example described in this manual.