osa1 / lexgen

A fully-featured lexer generator, implemented as a proc macro
MIT License
63 stars 7 forks source link

Implement returning multiple values in NFA and DFA simulations #17

Closed osa1 closed 2 years ago

osa1 commented 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.

osa1 commented 2 years ago

Secondly, we should return matched substrings in simulations. That way we can also test match_ behavior.

osa1 commented 2 years ago

Implemented in 979f7f1277b248b0eb1c0472f90403d5269da0b.