Class: Kleene::MachineTuple

Inherits:
Object
  • Object
show all
Defined in:
lib/kleene/online_dfa.rb,
lib/kleene/multi_match_dfa.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nfa, nfa_with_dead_err, dfa) ⇒ MachineTuple

Returns a new instance of MachineTuple.



10
11
12
# File 'lib/kleene/online_dfa.rb', line 10

def initialize(nfa, nfa_with_dead_err, dfa)
  @nfa, @nfa_with_dead_err, @dfa = nfa, nfa_with_dead_err, dfa
end

Instance Attribute Details

#dfaObject

: DFA



8
9
10
# File 'lib/kleene/online_dfa.rb', line 8

def dfa
  @dfa
end

#nfaObject

: NFA



6
7
8
# File 'lib/kleene/online_dfa.rb', line 6

def nfa
  @nfa
end

#nfa_with_dead_errObject

: NFA



7
8
9
# File 'lib/kleene/online_dfa.rb', line 7

def nfa_with_dead_err
  @nfa_with_dead_err
end