Commit 93728637 authored by Tom Zhao's avatar Tom Zhao
Browse files

xz1919: changed new struct grammar from curly bracket to parenthesis

parent 707be08f
......@@ -77,7 +77,7 @@ assign_rhs : expr #Expr
arg_list : expr (COMMA expr)*;
struct_elem : IDENT (DOT IDENT)+;
new_struct : NEW IDENT OPEN_CURLY_BRACKET arg_list? CLOSE_CURLY_BRACKET ;
new_struct : NEW IDENT OPEN_PARENTHESES arg_list? CLOSE_PARENTHESES ;
pair_elem : FST expr #FstExpr
| SND expr #SndExpr
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment