|Top Previous Next|
A TextTransformer project can consist of four kinds of scripts:
Token definitions that describe the lexical units of the input as regular expressions are located on the token page. (If they are literals, they can immediately be defined inside of the grammar rules.)
Grammar rules (productions) that describe the syntactical structure of the input. These rules are located on the production page.
C++ code that describes the translation of the input into a target language. This code is embedded into the grammar rules by use of special parenthesis.
Test scripts on the test page of the TextTransformer.
For simple projects the definition of grammar rules is sufficient.
The names of all production, element and token scripts of a project have to be different to each other.
This page belongs to the TextTransformer Documentation
|Home Content German|