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

View File

@ -67,7 +67,11 @@ impl AstNode for ArrayExpr {
} }
impl ArrayExpr {} impl ArrayExpr {
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
super::children(self)
}
}
// ArrayType // ArrayType
#[derive(Debug, PartialEq, Eq, Hash)] #[derive(Debug, PartialEq, Eq, Hash)]

View File

@ -360,7 +360,9 @@ Grammar(
"TupleExpr": ( "TupleExpr": (
collections: [["exprs", "Expr"]] collections: [["exprs", "Expr"]]
), ),
"ArrayExpr": (), "ArrayExpr": (
collections: [["exprs", "Expr"]]
),
"ParenExpr": (options: ["Expr"]), "ParenExpr": (options: ["Expr"]),
"PathExpr": (options: ["Path"]), "PathExpr": (options: ["Path"]),
"LambdaExpr": ( "LambdaExpr": (