Store tokens in Hash by name
This commit is contained in:
1 parent
280b749e38
commit
f3ed678fe1
3 files changed
+13
-15
No files matched your search
@@ -6,7 +6,7 @@ class Imbecile
|
||||
def initialize(tokens)
|
||||
super()
|
||||
start_nfa = Regex::NFA.new
|
||||
tokens.each do |token|
|
||||
tokens.each do |name, token|
|
||||
start_nfa.start_state.add_transition(nil, token.nfa.start_state)
|
||||
end
|
||||
@nfa_state_sets = {}
|
||||
|
||||
Reference in new issue
Block a user