Dan-wanna-M / kbnf

A fast constrained decoding engine based on context free grammar in Rust
Other
2 stars 0 forks source link

Replace `except!` by #e"<regex>" #8

Open Dan-wanna-M opened 1 month ago

Dan-wanna-M commented 1 month ago

except! is ugly. It can be substituted by a regex that operates under eager exit mode(i.e. exits immediately when a match happens and do not advance itself to the next Earley set.)