hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9b4925d12c298617495cd4d4191c208004fe11b7
parent 11f85693f4a3175f999555f2750fc9781a515d54
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 29 Sep 2023 22:19:54 -0400

hare::parse+test: add more assignment tests

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/+test/expr_test.ha | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/hare/parse/+test/expr_test.ha b/hare/parse/+test/expr_test.ha @@ -7,6 +7,12 @@ *x = *y + 10; *x = *foo(); *y() = bar(); + x[y] = z; + x[y][z] = foo(); + x.y = z; + x.y.z = foo(); + x[y].z = foo(); + x.y[z] = foo(); x += 10; x -= 10; x *= 10;