General Information
Tutorials
Reference Manuals
Libraries
Translation Tasks
Tools
Administration
|
Pattern-based Text GeneratorSyntax of PTG Specifications
PTGSpec: PatternSpec+ PatternSpec: PatternName ':' (Item | Optional)* PatternName: Identifier Item: CString | Insertion | FunctionCall Insertion: '$' [ Number ] [ Type ] FunctionCall: '[' Identifier Arguments ']' Arguments: Insertion* Type: 'int' | 'string' | 'pointer' | 'long' | 'short' | 'char' | 'float' | 'double' Optional: '{' Item+ '}'
Note: A
The following additional alternative for
PatternSpec: PatternName ':' Type+ '[' [ Identifier ] ']'If you have old specifications that use this pattern style, rewrite them by pattern specifications as describe above, e.g.
MyLeaf: int string [] YourLeaf: int string [YourFct]should be rewritten into
MyLeaf: $ int $ string YourLeaf: [YourFct $ int $ string]
|