From 35cd48b86b5cf2dcaec06215f7b0330b11ff2ba0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 28 Oct 2016 09:47:22 +0200 Subject: [PATCH] - fixed grammar rule for two-dimensional vectors. --- src/scripting/zscript/zcc-parse.lemon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/zscript/zcc-parse.lemon b/src/scripting/zscript/zcc-parse.lemon index 3f70799ec6..bbed008dd3 100644 --- a/src/scripting/zscript/zcc-parse.lemon +++ b/src/scripting/zscript/zcc-parse.lemon @@ -979,7 +979,7 @@ primary(XX) ::= LPAREN expr(A) COMMA expr(B) COMMA expr(C) RPAREN. } -primary(X) ::= LPAREN expr(A) COMMA expr(B) RPAREN. +primary(XX) ::= LPAREN expr(A) COMMA expr(B) RPAREN. { NEW_AST_NODE(VectorInitializer, expr, A); expr->Operation = PEX_Vector; @@ -987,7 +987,7 @@ primary(X) ::= LPAREN expr(A) COMMA expr(B) RPAREN. expr->X = A; expr->Y = B; expr->Z = nullptr; - X = expr; + XX = expr; } primary(X) ::= LPAREN expr(A) RPAREN.