Update ARRAY_EXPR grammar

This commit is contained in:
Hirokazu Hata
2019-01-13 22:46:10 +09:00
parent d75a0368f5
commit 4729a1b054
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -67,7 +67,11 @@ fn to_owned(&self) -> TreeArc<ArrayExpr> { TreeArc::cast(self.syntax.to_owned())
}
impl ArrayExpr {}
impl ArrayExpr {
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
super::children(self)
}
}
// ArrayType
#[derive(Debug, PartialEq, Eq, Hash)]
+3 -1
View File
@@ -360,7 +360,9 @@ Grammar(
"TupleExpr": (
collections: [["exprs", "Expr"]]
),
"ArrayExpr": (),
"ArrayExpr": (
collections: [["exprs", "Expr"]]
),
"ParenExpr": (options: ["Expr"]),
"PathExpr": (options: ["Path"]),
"LambdaExpr": (