Store tokens in Hash by name

This commit is contained in:
josh committed 2021-09-27 21:40:12 -04:00
1 parent 280b749e38
commit f3ed678fe1
3 files changed
+13 -15

No files matched your search

+1 -1
View File
@@ -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 = {}