- ctfeGetNameOr
string ctfeGetNameOr()
Undocumented in source. Be warned that the author may not have intended to support it.
- or
ParseTree or(ParseTree p)
Undocumented in source. Be warned that the author may not have intended to support it.
- or
ParseTree or(string input)
Undocumented in source. Be warned that the author may not have intended to support it.
- or
string or(GetName g)
Undocumented in source. Be warned that the author may not have intended to support it.
Basic operator: it matches if one of its subrules (stored in the rules template parameter tuple) match the input. The subrules are tested in order, from rules[0] to rules[$-1].
The matching subrule parse trees is stored as its only child and its matches field will contain all the subrule matches, in order.
If it fails, the last children will contain the failed node that matched furthest (longes match). That way, when printing, as sort of diagnostic is given:
So we know 'or' failed, that the 'and' sub-rule had the longest match, matching 'ab' and failing for [0-9] on index 2.