Pattern Based Text Generator Specifications
The Pattern-Based Text Generator PTG supports
translations into any kind of structured text.
Typical patterns:
Pair: "(" $ "." $ ")" /* ordinary pattern */
Decl: $2 ":" $1 ";" /* indexed pattern */
Ident: $ string $ int /* typed pattern */
CommaSeq: $1 {", "} $2 /* optional pattern */
IndText: [Indent $2 int] $1 /* function call pattern */
Typical Error Situations
- Wrong number of parameters in PTG function application:
==> ERROR: prototype mismatch: 3 args passed, 2 expected
- Wrong type of parameters in PTG function application:
==> argument #3 is incompatible with prototype
- Correct PTG function signature but wrong parameter order:
==> Runtime surprise
Back to Typical Eli Errors
|