summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_builtin.txt
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-11-16 17:49:47 -0800
committerKeith Packard <keithp@keithp.com>2017-11-16 18:40:31 -0800
commitb3b4731fcb89cb404433f37a7704a503567c43bd (patch)
tree74f0a214725905c7556a735127f01a4b4b0926be /src/lisp/ao_lisp_builtin.txt
parentbd881a5b85d7cd4fb82127f92f32e089499b50cb (diff)
altos/lisp: Add scheme-style bools (#t and #f)
Cond and while compare against #f, just like scheme says to. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_builtin.txt')
-rw-r--r--src/lisp/ao_lisp_builtin.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/lisp/ao_lisp_builtin.txt b/src/lisp/ao_lisp_builtin.txt
new file mode 100644
index 00000000..02320df0
--- /dev/null
+++ b/src/lisp/ao_lisp_builtin.txt
@@ -0,0 +1,40 @@
+lambda eval
+lambda read
+nlambda lambda
+nlambda lexpr
+nlambda nlambda
+nlambda macro
+lambda car
+lambda cdr
+lambda cons
+lambda last
+lambda length
+nlambda quote
+lambda set
+macro setq
+nlambda cond
+nlambda progn
+nlambda while
+lexpr print
+lexpr patom
+lexpr plus +
+lexpr minus -
+lexpr times *
+lexpr divide /
+lexpr mod %
+lexpr equal =
+lexpr less <
+lexpr greater >
+lexpr less_equal <=
+lexpr greater_equal >=
+lambda pack
+lambda unpack
+lambda flush
+lambda delay
+lexpr led
+lambda save
+lambda restore
+lambda call_cc call/cc
+lambda collect
+lambda nullp null?
+lambda not