Fix NFA#to_s
This commit is contained in:
1 parent
b6e3a5c151
commit
e7f8c3726c
1 file changed
+2
-2
@@ -104,8 +104,8 @@ module Imbecile
|
||||
range_s += "-" + chr[transition.code_point_range.last]
|
||||
end
|
||||
end
|
||||
accepts_s = dest_state.accepts ? " *" : ""
|
||||
rv += " #{range_s} => #{state_id[dest_state]}#{accepts_s}\n"
|
||||
accepts_s = transition.destination.accepts ? " *" : ""
|
||||
rv += " #{range_s} => #{state_id[transition.destination]}#{accepts_s}\n"
|
||||
end
|
||||
end
|
||||
while to_visit.size > 0
|
||||
|
||||
Reference in new issue
Block a user