class

Kleene::MultiMatchDFA

Inherits Kleene::DSL < Reference < Object

Constructors

new(nfas : Array(NFA))
Source

Instance methods

composite_dfa
Source
composite_dfa=(composite_dfa : DFA)
Source
composite_nfa
Source
composite_nfa=(composite_nfa : NFA)
Source
create_composite_nfa(nfas)

create a composite NFA as the union of all the NFAs with epsilon transitions from every NFA state back to the union NFA's start state

Source
dead_end_nfa_state_to_dead_end_nfa
Source
dead_end_nfa_state_to_dead_end_nfa=(dead_end_nfa_state_to_dead_end_nfa : Hash(State, NFA))
Source
dfa_to_index
Source
dfa_to_index=(dfa_to_index : Hash(DFA, Int32))
Source
machines_by_index
Source
machines_by_index=(machines_by_index : Hash(Int32, MachineTuple))
Source
machines_from_dfa(dfa) : MachineTuple
Source
machines_from_nfa(nfa) : MachineTuple
Source
machines_from_nfa_with_dead_err(nfa_with_dead_err) : MachineTuple
Source
match_tracker(input : String) : MatchTracker
Source
matches(input : String) : Hash(NFA, Array(MatchRef))
Source
nfa_to_index
Source
nfa_to_index=(nfa_to_index : Hash(NFA, Int32))
Source
nfa_with_dead_err_to_index
Source
nfa_with_dead_err_to_index=(nfa_with_dead_err_to_index : Hash(NFA, Int32))
Source
nfas_with_err_state
Source
setup_callbacks(dfa)
Source