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
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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user