class

Pegmatite::Pattern::MatchState

Inherits Reference < Object

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.

Constructors

new(tokenize : Bool = true, trace : Bool = false)
Source

Instance methods

dynamic_matches
Source
dynamic_matches=(dynamic_matches : Array(Tuple(Symbol, String)))
Source
highest_fail
Source
memos
Source
observe_fail(offset, pattern)
Source
tokenize
Source
tokenize=(tokenize : Bool)
Source
trace
Source
trace=(trace : Bool)
Source
traces
Source
traces=(traces : Array(MatchTrace))
Source