Edition codes
Edition codes are used to format the output of the rule processed. They allow users to
specify left margin values, carriage returns and various positioning movements in the
template file.
$d
Format: $d;
Action: Generates a dollar sign.
Example:
"Price: $d;$price;"
if $price; gives 50, generates "Price: $50"
Note: dollar signs are already used to define sub-rules, there-fore
to print out an actual dollar sign, you must use the $d;
edition code.
$m
Format: $m(+ or -) number;
Action: Increments/decrements the left margin according to the sign. Does not make a return;
the new setting takes effect at the next return code $n;.
Example:
$m+2;
Increments the left margin by 2 spaces.
$n
Format: $n
Action: Makes a return, and advances to the left margin. Does not change the left margin. Be careful, the margin must have a positive value. If it is negative, it will generate errors.
Example:
$n;
Makes a return, and advances to the left margin.
$q
Format: $q;
Action: Generates a double quote character.
Example:
"$q;TEMPL$q; is a keyword."
When processed, the template string generates
"TEMPL" is a keyword.
Note: Since double quotes are used to indicate the beginning
and the end of a template string, the only way to print out
actual double quotes is to use the $q; edition code.
$t
Format: $t;
Action: Generates a TAB character.
Example:
"$word1;$t;$word2;"
Prints the two words separated with a TAB character.