soasme / PeppaPEG

PEG Parser in ANSI C
https://soasme.com/PeppaPEG
MIT License
55 stars 7 forks source link

[Feature Request] Optional Unicode Category #76

Closed soasme closed 3 years ago

soasme commented 3 years ago

Is your feature request related to a problem? Please describe. In some cases, embedding range pattern tables load a lot of data into memory and it's unnecessary. It's up to the user to decide whether to enable range patterns.

Describe the solution you'd like Add a new macro: ENABLE_UNISTR. If it's enabled, peppapeg will load unicode categories from libunistring, otherwise, [\p{..}] only supports some built-in categories.

Describe alternatives you've considered N/A

Additional context

soasme commented 3 years ago

See #99