0.7.0 #257
kevinmehall
started this conversation in
General
0.7.0
#257
Replies: 1 comment
-
My first attempt at using rust-peg has been an absolute breeze. With barely any knowledge of Rust everything fit together intuitively and beautifully. I used it to port an old shell grammar written in yacc. Well done. |
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
-
New features
[MyToken(x)]
syntax for capturing variables from pattern expressions ( Add support for capturing variables from pattern expressions #245)[^ ]
inverted pattern syntax#[no_eof] pub rule() = ...
syntax to allow matching a prefix of the input rather than reporting a parse error if the rule does not reach end-of-file (Allow nonexhaustive rules #233)rule _ =
without parentheses when defining special underscore rule (How do "_" rules work? #243)PartialEq, PartialOrd, Eq, Ord, Debug, Hash
forRuleResult
(Derive more Implementations for RuleResult #217)Fixes
precedence!()
(Compile-time recursion check doesn't work inside precedence macro #238)return
and?
behave as expected (Control flow in {? } blocks #246)Breaking changes
is_eof()
method toParse
trait (Add is_eof() function to Parse trait #252)mixed_site
hygiene prevents action code from accessing internal parser state variables such as__input
,__pos
, etc.Contributors
@kevinmehall @dario23 @bgw @adrianwn
This discussion was created from the release 0.7.0.
Beta Was this translation helpful? Give feedback.
All reactions