C-typedef

Top  Previous  Next

Examples > C-typedef

 

You should know the most essential operation elements of TETRA.

 

Problem definition:

 

New names can be defined as an abbreviation of more complex expressions within a text sometimes. Such names shall be inserted during parsing as additional tokens.

Type definitions in programming languages are a typical example of such abbreviations. In this TETRA project this is demonstrated for the language C. For better clarity the rules of C were reduced verry much  The complete C grammar is available soon at

 

http://www.texttransformer.org

 

 

TETRA Program:

 

The project is in the directory:

 

\TextTransformer\Examples\Typedef

 

The use of dynamic scanners with placeholder tokens and text scopes is demonstrated in this example.

 



This page belongs to the TextTransformer Documentation

Home  Content  German