At first the structure of the text - the grammar - has to be be described. Many elementary text patterns, which are necessary for this, e.g. numbers, words etc. are already pre-defined in the TextTransformer as regular expressions. Several wizards are helping you to combine these expressions - tokens - to a complete grammar.

A sequence of expressions, which is expected in a text, will be recognized by the same sequence written in the grammar. E.g.


"Hello" "world"

would recogize the word "Hello" followed by the word "world".

are combined by '|'. E.g. the expression


"all" | "nothing"

would recognize the words "all" and "nothing" in the text.

are denoted by '?'. E.g.:


would recognize the word "perhaps", if it exists in the text.

A repeat
is denoted by '+'. E.g.



would recognize a number consisting in an arbitrary sequence of digits, but at least in one digit (A digit can be defined as the character class of 0-9).

An optional repeat
is denoted by '*'. E.g.



would recognize the possible fractional digits of a number.

Wizards also are helping at the last step which is still necessary for a transformation program: the definition of actions, which determine, what has to be done with recognized parts of text.

The part of text, which was recognized at last can be accessed by the expression:


This section of text either can be written directly into the output:

out << State.str();

or it can be stored e.g. in a string variable:

str s = State.str();

The correctness of your program finally can be tested stepwise by means of the integrated debugger at text examples.

   deutsch Deutsch


Latest News
Delphi2CB: has been relased [more...]

Delphi2Cpp 2.0: DelphiXE2Cpp11 now is Delphi2Cpp 2.0 [more...]


... You have exceeded my expectations and I love your product. We will get a lot of use out of it in the future for other projects."

Charles Finley
xformix 23-02-07


I was extremely impressed with your components and tools. Not only extremely powerful but very professionally done and well documented, etc. Really quality work, congratulations

mouser (First Author, Administrator)

  This website is generated from plain text with [Minimal Website ]

Minimal Website Minimal Website is made with TextTransformer

TextTransformer TextTransformer is made with Borland CBuilder