Looping regex can be given a final action
Closed this issue · 0 comments
jakobnissen commented
MWE:
julia> Automa.execute(compile(onfinal!(re"a+", :x)), "aaa")
(0, [:x, :x, :x])
On master
syntax:
julia> Automa.execute(Automa.compile((x = Automa.RegExp.parse("a+"); x.actions[:final] = [:x]; x)), "aaa")
(0, [:x, :x, :x])
The problem here is that in the regex re"a+"
, it's not clear what the final byte is. This should be fixed in re2nfa