Productions and token |
Top Previous Next |
Examples > E-mail address > Productions and token
Fortunately the syntax of the specification is very similar to the syntax of the TextTransformer. The elements can be transformed easily into productions and tokens. Because hyphens are not allowed in script names of the TextTransformer, they are transformed to underscores. Single characters are enclosed in double quotes. Elements, which consist in single characters or character classes, become tokens. Their names are written in upper case to separate them more clearly from the productions.
The comment production is set in the project options as an inclusion. So, in front of every new token is tested automatically, whether there might be an included comment. Such comments can be nested unlike the use of regular expressions to the comment recognition.
The complete project is in:
\TextTransformer\Examples\Mailbox\mailbox1.ttp
|
This page belongs to the TextTransformer Documentation |
Home Content German |