Top  Previous  Next

Scripts > Productions


To transform an input text, it must be analyzed according to its syntax. This analysis is done by means of rules ("productions"), which describe the syntax. In this productions instructions are embedded, which determine, how to construct a new text from the analyzed source.


A production may be considered as a function - more exact: as a specification for creating a function - that parses a part of the input text. By creating code, this specification will result in a real function. The routine can return a value and will constitute its own scope for parameters and other local components like variables and constants. These again, can be passed to other productions, which are called like functions inside the body of the first production. The called productions parse sub sections of the part of text, which is parsed by the calling production.


The definition of a production is done inside of a form.

This page belongs to the TextTransformer Documentation

Home  Content  German