timtadh / lexmachine

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

Statically prevent matching the empty string #23

Closed timtadh closed 6 years ago

timtadh commented 6 years ago

in response to #22 and #20 this prevents compilation of patterns which match the empty strings. At the moment it does not determine the exact pattern which is responsible for matching the empty string. That would be a good project (and I would welcome the contribution!!).

timtadh commented 6 years ago

@xaionaro ok. this should prevent putting in tokens which match the empty string. Let me know if it works for you.

xaionaro commented 6 years ago

@timtadh yep, works, thanks)