From c16530c988e817c5596fa38ebe9e12a302886a8f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 27 Aug 2018 10:12:28 +0300 Subject: visitor-less scopes --- crates/libsyntax2/src/grammar.ron | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/libsyntax2/src/grammar.ron') diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index aa2742b3e..f3c3d3036 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron @@ -437,9 +437,13 @@ Grammar( ["pat", "Pat"], ["initializer", "Expr"], ]), + "Stmt": ( + enum: ["ExprStmt", "LetStmt"], + ), "Block": ( + options: [["expr", "Expr"]], collections: [ - ["let_stmts", "LetStmt"], + ["statements", "Stmt"], ] ), "ParamList": ( -- cgit v1.2.3