Skip to content

Commit 7c5f3f9

Browse files
bors[bot]sasurau4
andauthored
Merge #19
19: Add YieldExpr r=lnicola a=sasurau4 Adding YieldExpr Part of #7209 ref: https://doc.rust-lang.org/beta/unstable-book/language-features/generators.html Co-authored-by: Daiki Ihara <sasurau4@gmail.com>
2 parents 57cc080 + c332d9d commit 7c5f3f9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ungrammar"
33
description = "A DSL for describing concrete syntax trees"
4-
version = "1.6.0"
4+
version = "1.7.0"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]

rust.ungram

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ Expr =
351351
| TryExpr
352352
| TupleExpr
353353
| WhileExpr
354+
| YieldExpr
354355

355356
Literal =
356357
Attr* value:(
@@ -491,6 +492,9 @@ MatchGuard =
491492
ReturnExpr =
492493
Attr* 'return' Expr?
493494

495+
YieldExpr =
496+
Attr* 'yield' Expr?
497+
494498
AwaitExpr =
495499
Attr* Expr '.' 'await'
496500

0 commit comments

Comments
 (0)