From d2a33fd80e293ae0de86d2973f80b56a10dbccb0 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Thu, 8 Nov 2018 18:35:55 +0100 Subject: Fix multi variable declaration --- source/mod_student/parser.mly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }] } -- cgit 1.4.1