class Pegmatite::Pattern::MatchState
- Pegmatite::Pattern::MatchState
- Reference
- Object
Overview
MatchState is a class that carries some state through a match method. It's not meant to be used as part of any public API.
Defined in:
pegmatite/pattern.crConstructors
Instance Method Summary
- #dynamic_matches : Array(Tuple(Symbol, String))
- #dynamic_matches=(dynamic_matches : Array(Tuple(Symbol, String)))
- #highest_fail : Tuple(Int32, Pattern)
- #memos : Hash({Pegmatite::Pattern, Int32}, {Int32, Array({Symbol, Int32, Int32}) | Pegmatite::Pattern | {Symbol, Int32, Int32} | Nil})
- #memos=(memos : Hash(Tuple(Pegmatite::Pattern, Int32), Tuple(Int32, Array(Tuple(Symbol, Int32, Int32)) | Pegmatite::Pattern | Tuple(Symbol, Int32, Int32) | Nil)))
- #observe_fail(offset, pattern)
- #tokenize : Bool
- #tokenize=(tokenize : Bool)
- #trace : Bool
- #trace=(trace : Bool)
- #traces : Array(MatchTrace)
- #traces=(traces : Array(MatchTrace))
Constructor Detail
Instance Method Detail
def memos : Hash({Pegmatite::Pattern, Int32}, {Int32, Array({Symbol, Int32, Int32}) | Pegmatite::Pattern | {Symbol, Int32, Int32} | Nil})
#
def memos=(memos : Hash(Tuple(Pegmatite::Pattern, Int32), Tuple(Int32, Array(Tuple(Symbol, Int32, Int32)) | Pegmatite::Pattern | Tuple(Symbol, Int32, Int32) | Nil)))
#