literal

Represents a literal in a PEG, like "abc" or 'abc' (or even ''). It succeeds if a prefix of the input is equal to its template parameter and fails otherwise.

  1. ParseTree literal(ParseTree p)
    template literal(string s)
  2. ParseTree literal(string input)
  3. string literal(GetName g)

Members

Functions

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

Manifest constants

name
enum name;
Undocumented in source.

Meta