diff options
author | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2018-11-08 18:35:55 +0100 |
---|---|---|
committer | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2018-11-08 18:35:55 +0100 |
commit | d2a33fd80e293ae0de86d2973f80b56a10dbccb0 (patch) | |
tree | 222ba421beb085105ddc304cd77a0912f85c361e | |
parent | Added structs and array indexing (diff) |
Fix multi variable declaration
-rw-r--r-- | source/mod_student/parser.mly | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mod_student/parser.mly b/source/mod_student/parser.mly index f8a71eb..7f9174a 100644 --- a/source/mod_student/parser.mly +++ b/source/mod_student/parser.mly @@ -201,7 +201,7 @@ statement: { STMT_If {loc=mkLocation $startpos;cond=cond;then_branch=then_branch; else_branch=else_branch } } | head=option_var_decl COMMA tail=separated_nonempty_list(COMMA, option_var_decl) ASSIGN call=call - { STMT_MultiVarDecl {loc=mkLocation $startpos; vars= (*head::*)tail; init=call } } + { STMT_MultiVarDecl {loc=mkLocation $startpos; vars= head::tail; init=call } } return_stmt: | RETURN values=separated_list(COMMA,expression) { [STMT_Return { loc=mkLocation $startpos; values=values }] } |