Replaced builtin store function with a new syntax
This commit is contained in:
parent
013d3dd8cd
commit
3da61f5c69
12 changed files with 54 additions and 46 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue