Class: Peggy::Predicate

Inherits:
Element show all
Includes:
OneChild
Defined in:
lib/parse/builder.rb

Overview

An element which tries its single child but does not advance the index if found. Predicates control parse decisions.

Direct Known Subclasses

Negative, Positive

Instance Attribute Summary

Attributes included from OneChild

#child

Method Summary

Methods included from OneChild

#to_s, #wrap

Methods inherited from Element

build, #match, #report