We accidentally lost the ability to detect ambiguities
katef opened this issue · 4 comments
katef commented
This should error:
; echo '/ab?c/ -> $t1; /abc/ -> $t2;' | ./build/bin/lx > /dev/null
;
The error code is still there (calling fsm_example
), but it's never reached.
Equivalent stuff in re(1), I'm suspicious about using just one element from the array in find_first_match_for_end_state()
, rather than checking them all:
return find_match_with_id(end_id_buf[0]);
silentbicycle commented
Do you have an example input & set of CLI flags handy for re? Otherwise I'll figure it out later.
katef commented
silentbicycle commented
katef commented
Oh I think fsm_example()
is broken.