Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shen, Siran
wacc
Commits
93728637
Commit
93728637
authored
Mar 19, 2021
by
Tom Zhao
Browse files
xz1919: changed new struct grammar from curly bracket to parenthesis
parent
707be08f
Changes
1
Hide whitespace changes
Inline
Side-by-side
antlr_config/WACCParser.g4
View file @
93728637
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment