summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-11-08 18:35:55 +0100
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-11-08 18:35:55 +0100
commitd2a33fd80e293ae0de86d2973f80b56a10dbccb0 (patch)
tree222ba421beb085105ddc304cd77a0912f85c361e
parentAdded structs and array indexing (diff)
Fix multi variable declaration
-rw-r--r--source/mod_student/parser.mly2
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 }] }