Closed osa1 closed 2 years ago
It would be easier to debug bugs like #16 if NFA and DFA simulations worked more like the implementation (generated code). Currently simulations only accept the whole input, so we can't test the NFA or DFA for the lexer in #16.
Secondly, we should return matched substrings in simulations. That way we can also test match_ behavior.
match_
Implemented in 979f7f1277b248b0eb1c0472f90403d5269da0b.
It would be easier to debug bugs like #16 if NFA and DFA simulations worked more like the implementation (generated code). Currently simulations only accept the whole input, so we can't test the NFA or DFA for the lexer in #16.