Eli   Documents

General Information

 o Eli: Translator Construction Made Easy
 o Global Index
 o Frequently Asked Questions
 o Typical Eli Usage Errors

Tutorials

 o Quick Reference Card
 o Guide For new Eli Users
 o Release Notes of Eli
 o Tutorial on Name Analysis
 o Tutorial on Scope Graphs
 o Tutorial on Type Analysis
 o Typical Eli Usage Errors

Reference Manuals

 o User Interface
 o Eli products and parameters
 o LIDO Reference Manual
 o Typical Eli Usage Errors

Libraries

 o Eli library routines
 o Specification Module Library

Translation Tasks

 o Lexical analysis specification
 o Syntactic Analysis Manual
 o Computation in Trees

Tools

 o LIGA Control Language
 o Debugging Information for LIDO
 o Graphical ORder TOol

 o FunnelWeb User's Manual

 o Pattern-based Text Generator
 o Property Definition Language
 o Operator Identification Language
 o Tree Grammar Specification Language
 o Command Line Processing
 o COLA Options Reference Manual

 o Generating Unparsing Code

 o Monitoring a Processor's Execution

Administration

 o System Administration Guide

Mail Home
Open PDF File

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 output.

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.