v2.6.0: node tags #847
tomtau
announced in
Announcements
Replies: 1 comment
-
This version was yanked, you can still use the feature in 2.7.0 under a feature flag: #876
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
node_tag
, iterator, and meta grammar by @tomtau in Add basic support fornode_tag
, iterator, and meta grammar #832//!
,///
or//
, allow writing empty pest grammar. by @huacnlee in Fix #838 grammar error when only have//!
,///
or//
, allow writing empty pest grammar. #839ExactSizeIterator
forPair
iterators by @MucTepDayH16 in ImplementExactSizeIterator
forPair
iterators #833New Contributors
ExactSizeIterator
forPair
iterators #833Full Changelog: v2.5.7...v2.6.0
Introducing node tags
pest v2.6.0's grammar includes a new (optional) feature for labelling parts of rules (based on this idea posted by @oovm : #550 ), e.g.:
This feature can help to distinguish tokens by labels instead of positions (which can help to reduce boilerplate code). You can read more about it here: https://pest.rs/book/grammars/syntax.html#tags
Warning: Semantic Versioning
Note that the node tag feature in 2.6.0 is a technically semver-breaking change even though it is a backwards-compatible / non-breaking change in the meta-grammar. There may be similar non-breaking changes to the meta-grammar between minor versions in the future. These non-breaking changes, however, may translate into semver-breaking changes due to the additional variants propagated from the generated
Rule
enum. This is a known issue and will be fixed in the future (e.g. by increasing MSRV and non_exhaustive annotations).This discussion was created from the release v2.6.0: node tags.
Beta Was this translation helpful? Give feedback.
All reactions