implement 'var' for interp2
Some checks failed
CI / test-core (14, ubuntu-latest, 3.x, interp) (push) Failing after 2m2s
CI / test-core (14, ubuntu-latest, 3.x, nodejs) (push) Failing after 2m8s
CI / test-core (14, ubuntu-latest, 3.x, js) (push) Failing after 2m28s
CI / test-core (14, ubuntu-latest, 3.x, py) (push) Failing after 2m27s
CI / test-core (14, ubuntu-latest, 3.x, cpp) (push) Failing after 3m52s

This commit is contained in:
2025-09-16 13:21:32 -05:00
parent a300d758a9
commit 5da754d5ab

View File

@@ -32,6 +32,10 @@
->[args cc]
(_evalAllCC args ->values
(cc (values.pop)))
=>"var"
->[args cc]
(let [name (symbolNameValue (first args))]
(evalCC (second args) ->val {(dictSet globals name val) (cc val)}))
])
(method :ReaderExp read [:Dynamic input]