Replaced builtin store function with a new syntax

This commit is contained in:
Eduard Urbach 2025-04-11 14:21:51 +02:00
parent 013d3dd8cd
commit 3da61f5c69
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 54 additions and 46 deletions

View file

@ -112,6 +112,11 @@ func TestParse(t *testing.T) {
{"Array access 6", "a.b()[c]", "(@ (λ (. a b)) c)"},
{"Array access 7", "a.b(c)[d]", "(@ (λ (. a b) c) d)"},
{"Array access 8", "a.b(c)[d][e]", "(@ (@ (λ (. a b) c) d) e)"},
{"Dereferencing", "[a]", "(@ a)"},
{"Dereferencing 2", "[a+b]", "(@ (+ a b))"},
{"Dereferencing 3", "[a+b]=c", "(= (@ (+ a b)) c)"},
{"Dereferencing 3", "[a+b]=c+d", "(= (@ (+ a b)) (+ c d))"},
}
for _, test := range tests {