This commit is contained in:
Quentin Leonetti
2019-07-14 05:56:02 +02:00
parent 88bf708ed2
commit 530bd1a2d9
4 changed files with 14 additions and 1 deletions

View File

@@ -34,6 +34,10 @@ function Lisp (input, lib) {
return interpret(input[2], letContext)
},
def: function (input, context) {
context.scope[input[1].value] = input[2].value
return input[2]
},
lambda: function (input, context) {
return function () {
const lambdaArguments = arguments