- fixed grammar rule for two-dimensional vectors.

This commit is contained in:
Christoph Oelckers 2016-10-28 09:47:22 +02:00
parent 3fa315aaea
commit 35cd48b86b

View file

@ -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); NEW_AST_NODE(VectorInitializer, expr, A);
expr->Operation = PEX_Vector; expr->Operation = PEX_Vector;
@ -987,7 +987,7 @@ primary(X) ::= LPAREN expr(A) COMMA expr(B) RPAREN.
expr->X = A; expr->X = A;
expr->Y = B; expr->Y = B;
expr->Z = nullptr; expr->Z = nullptr;
X = expr; XX = expr;
} }
primary(X) ::= LPAREN expr(A) RPAREN. primary(X) ::= LPAREN expr(A) RPAREN.