abnf_parsec v2.1.0 Release Notes
Release Date: 2025-11-03 // about 1 year agoPrevious changes from v2.0.0
-
Highlights ๐
๐ Core rules are no longer special-cased, they are brought in via parsing and compiling
core.abnf- hence they can now be transformed, ignored, just like other rules
0๏ธโฃ Core rules are now all transformed to string format by default
- so when matching
*HEXDIGon"1A", instead of getting[49, 65], you get["1", "A"] - however, performing
List.to_stringon either one gives you the same result -"1A"
- so when matching
Core rules are defined only when they are not already defined in your abnf
- if they are already defined in your abnf, they will be skipped
- note the way we generate the functions unifies cases, so if you have
chardefined,
the core ruleCHARwill be ignored as well - this also makes it possible to override core rules