summaryrefslogtreecommitdiff
path: root/src/CoreBindings.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CoreBindings.kt')
-rw-r--r--src/CoreBindings.kt5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/CoreBindings.kt b/src/CoreBindings.kt
index cf4fc50..f139e2e 100644
--- a/src/CoreBindings.kt
+++ b/src/CoreBindings.kt
@@ -1,7 +1,6 @@
package moe.nea.lisp
object CoreBindings {
- val nil = LispData.LispNil
val def = LispData.externalRawCall { context, callsite, stackFrame, args ->
if (args.size != 2) {
return@externalRawCall context.reportError("Function define expects exactly two arguments", callsite)
@@ -182,10 +181,8 @@ object CoreBindings {
}
fun offerAllTo(bindings: StackFrame) {
- bindings.setValueLocal("true", trueValue)
- bindings.setValueLocal("false", falseValue)
bindings.setValueLocal("if", ifFun)
- bindings.setValueLocal("nil", nil)
+ bindings.setValueLocal("nil", LispData.LispNil)
bindings.setValueLocal("def", def)
bindings.setValueLocal("pure", pure)
bindings.setValueLocal("lambda", lambda)