diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-03 23:23:54 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-03 23:24:23 +0800 |
commit | 6791cb4e605fbccb36a160c350420fc693c36b92 (patch) | |
tree | e20fdbfbd821eb36d9713d3237cd623d786d6307 /bnf/rust_expr.y_tree.h | |
parent | 1a5a20e963cae77e652eacdfbb3c8abfd38778f3 (diff) | |
download | mrust-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.h | 5 |
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"); } |