configurable module name for rule definitions in pest3 early alpha prototype #1155
tomtau
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The new version of the early alpha prototype of pest3 was published on crates.io!
You can try it with:
Big thanks to @TheVeryDarkness for fixing a few bugs in the meta parser: pest-parser/pest3#27
Besides the bug fixes, the new version has a new
rules_modannotation to optionally customise a module name where your rule type definitions should go to, e.g.:You can then call:
Parser::try_parse::<my_rules::name_of_rule>(input).The most likely next steps for pest3 will remain as some refactoring with the goal of bootstrapping, i.e. the ability of specifying pest3’s meta-grammar in pest3 and parsing itself (right now, it uses the current version of pest).
As always, anyone's help in pest3 development would be much appreciated, so feel free to head to https://github.com/pest-parser/pest3/ and happy hacking!
Beta Was this translation helpful? Give feedback.
All reactions