timtadh / lexmachine

Lex machinary for go.
Other
405 stars 28 forks source link

Fixes DFA/NFA returning incorrect tc in some cases #21

Closed timtadh closed 6 years ago

timtadh commented 6 years ago

In response to #20 I added some test for python style strings to ensure that lexmachine can properly lex them now and in the future.

timtadh commented 6 years ago

@ty2 let me know if this helpful.

ty2 commented 6 years ago

Thanks. 😘

timtadh commented 6 years ago

@xaionaro this should now error if an empty string is matched. I will add the static checking as a separate pr.