class Pegmatite::Pattern::MatchState

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tokenize : Bool = true, trace : Bool = false) #

[View source]

Instance Method Detail

def dynamic_matches : Array(Tuple(Symbol, String)) #

[View source]
def dynamic_matches=(dynamic_matches : Array(Tuple(Symbol, String))) #

[View source]
def highest_fail : Tuple(Int32, Pattern) #

[View source]
def memos : Hash({Pegmatite::Pattern, Int32}, {Int32, Array({Symbol, Int32, Int32}) | Pegmatite::Pattern | {Symbol, Int32, Int32} | Nil}) #

[View source]
def memos=(memos : Hash(Tuple(Pegmatite::Pattern, Int32), Tuple(Int32, Array(Tuple(Symbol, Int32, Int32)) | Pegmatite::Pattern | Tuple(Symbol, Int32, Int32) | Nil))) #

[View source]
def observe_fail(offset, pattern) #

[View source]
def tokenize : Bool #

[View source]
def tokenize=(tokenize : Bool) #

[View source]
def trace : Bool #

[View source]
def trace=(trace : Bool) #

[View source]
def traces : Array(MatchTrace) #

[View source]
def traces=(traces : Array(MatchTrace)) #

[View source]