v2.0.0 π
·
22 commits
to refs/heads/main
since this release
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
- 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