klahnakoski / mo-parsing

fork of pyparsing
MIT License
3 stars 2 forks source link

Optimize NotAny(Or(Keywords)) expressions #5

Closed klahnakoski closed 3 years ago

klahnakoski commented 4 years ago

There are patterns like NotAny(Or(Keywords)) and NotAny(Or(Literals)) that can be reduced to regular expressions.

klahnakoski commented 3 years ago

fixed with https://github.com/klahnakoski/mo-parsing/commit/a14f3a3fcfdb624d52143ae8526b356740efab5d#diff-6539b19784b1ac94a2fa54710d203c8e80abda62d1ffadc65fc2f68405baee9cR142