|
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. As 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.
space and comment are combined to the ignorable characters and set in the project options. Though the possible nesting of comments cannot be reproduced. In the created C++-code the virtual function IgnoreChars can be overwritten.
IGNORE (\s \// spaces |\([^)]*\))+ // block comment
The complete project is in:
\TextTransformer\Examples\Mailbox\mailbox1.ttp
|
|
This page belongs to the TextTransformer Documentation |
Home Content German |