Arborist::MatchFailure
Inherits Reference / Object
Constructors
new(pos : Int32, expr : Arborist::Apply | Arborist::Choice | Arborist::Dot | Arborist::MutexAlt | Arborist::NegLookAhead | Arborist::Optional | Arborist::PosLookAhead | Arborist::Repetition | Arborist::RepetitionOnePlus | Arborist::Sequence | Arborist::Terminal, apply_calls_in_call_stack : Array(Arborist::ApplyCall))
SourceInstance methods
active_rule_name
Sourceactive_rule_name=(active_rule_name : String)
Sourceapply_calls_in_call_stack
Sourceapply_calls_in_call_stack=(apply_calls_in_call_stack : Array(ApplyCall))
Sourceexpr
Sourceexpr=(expr : Expr)
Sourcehash
Generates an UInt64 hash value for this object.
This method must have the property that a == b implies a.hash == b.hash.
The hash value is used along with == by the Hash class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher),
though usually the macro def_hash can be used to generate this method.
pos
Sourcepos=(pos : Int32)
Source