summaryrefslogtreecommitdiff
path: root/bnf/rust_expr.y_tree.h
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-03 23:23:54 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-03 23:24:23 +0800
commit6791cb4e605fbccb36a160c350420fc693c36b92 (patch)
treee20fdbfbd821eb36d9713d3237cd623d786d6307 /bnf/rust_expr.y_tree.h
parent1a5a20e963cae77e652eacdfbb3c8abfd38778f3 (diff)
downloadmrust-6791cb4e605fbccb36a160c350420fc693c36b92.tar.gz
BNF - Improved grammar, removed some conflicts
Diffstat (limited to 'bnf/rust_expr.y_tree.h')
-rw-r--r--bnf/rust_expr.y_tree.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bnf/rust_expr.y_tree.h b/bnf/rust_expr.y_tree.h
index 09256f3e..c3635830 100644
--- a/bnf/rust_expr.y_tree.h
+++ b/bnf/rust_expr.y_tree.h
@@ -112,7 +112,10 @@ _(expr_value)
#endif
| '(' ')'
| '(' expr ',' expr_list ')'
- | '[' expr_list opt_comma ']'
+ | '[' ']'
+ | '[' expr ']'
+ | '[' expr ',' ']'
+ | '[' expr ',' expr_list_p opt_comma ']'
| '[' expr ';' expr ']'
| MACRO tt_paren { bnf_trace(context, "Expr macro invocation"); }
| MACRO tt_square { bnf_trace(context, "Expr macro invocation"); }