Module peg
[hide private]
[frames] | no frames]

Module peg

source code

Classes [hide private]
  Pattern
A PEG pattern or set of patterns.
  PatternBackRef
Creates and returns a reference in the current PEG grammar for the given name (valid only inside a PEG grammar).
  SimpleCapture
Creates and returns a capture for the text of the given pattern.
  PositionCapture
Creates and returns a position capture at the point of insertion in a PEG pattern (matches the empty string).
  ConstantCapture
Creates and returns a constant capture at the point of insertion in a PEG pattern (matches the empty string).
  ListCapture
Creates and returns a list capture for the Captures in a given pattern.
Variables [hide private]
  LITERAL_STRING = 0
  CHARACTER_CLASS = 1
  ANY_CHARACTER = 2
  OPTIONAL = 3
  ZERO_OR_MORE = 4
  ONE_OR_MORE = 5
  AND_PREDICATE = 6
  NOT_PREDICATE = 7
  PRIORITIZED_CHOICE = 8
  BACKREF = 9
  CALLABLE = 10
  SIMPLE_CAPTURE = 11
  POSITION_CAPTURE = 12
  CONSTANT_CAPTURE = 13
  LIST_CAPTURE = 14