Fix NFA#to_s

This commit is contained in:
Josh Holtrop 2021-05-25 16:14:19 -04:00
parent b6e3a5c151
commit e7f8c3726c

View File

@ -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