longest_match

Basic operator: it matches if one of its subrules (stored in the rules template parameter tuple) match the input. All subrules are tested and the one producing the longest match is taken.

The longest matching subrule's parse tree is stored as its only child and its matches field will contain all the subrule matches, in order.

  1. ParseTree longest_match(ParseTree p)
    template longest_match(rules...)
    longest_match
    if (
    rules.length > 0
    )
  2. ParseTree longest_match(string input)
  3. string longest_match(GetName g)

Members

Functions

ctfeGetNameOr
string ctfeGetNameOr()
Undocumented in source. Be warned that the author may not have intended to support it.
longest_match
ParseTree longest_match(ParseTree p)
Undocumented in source. Be warned that the author may not have intended to support it.
longest_match
ParseTree longest_match(string input)
Undocumented in source. Be warned that the author may not have intended to support it.
longest_match
string longest_match(GetName g)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

name
enum name;
Undocumented in source.

Meta