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