leo/tests/parser/statement/assign.leo
2022-03-28 07:31:53 -07:00

79 lines
441 B
Plaintext

/*
namespace: ParseStatement
expectation: Pass
*/
x = expr;
x = ();
x = x+y;
x = (x,y);
x = x();
x.y = y;
x += expr;
x += ();
x += x+y;
x += x();
x.0 += y;
x.y += y;
x -= expr;
x -= ();
x -= x+y;
x -= x();
x.y -= y;
x *= expr;
x *= ();
x *= x+y;
x *= x();
x.0 *= y;
x.y *= y;
x /= expr;
x /= ();
x /= x+y;
x /= x();
x.0 /= y;
x.y /= y;
x **= expr;
x **= ();
x **= x+y;
x **= x();
x.0 **= y;
x.y **= y;