Method: Journey::NFA::TransitionTable#move
- Defined in:
- lib/journey/nfa/transition_table.rb
#move(t, a) ⇒ Object
Returns set of NFA states to which there is a transition on ast symbol a
from some state s
in t
.
103 104 105 106 107 108 109 |
# File 'lib/journey/nfa/transition_table.rb', line 103 def move t, a Array(t).map { |s| inverted[s].keys.compact.find_all { |sym| sym === a }.map { |sym| inverted[s][sym] } }.flatten.uniq end |