From 11458ecdaa3a8a1fba2479953ff666a6aad2a17b Mon Sep 17 00:00:00 2001 From: able Date: Fri, 3 May 2024 12:49:43 -0500 Subject: [PATCH] more examples --- examples/define.lisp | 3 +++ examples/quote.lisp | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 examples/define.lisp create mode 100644 examples/quote.lisp diff --git a/examples/define.lisp b/examples/define.lisp new file mode 100644 index 0000000..04d9686 --- /dev/null +++ b/examples/define.lisp @@ -0,0 +1,3 @@ +(define a 10) +(define b 20) +(define c (+ a b)) \ No newline at end of file diff --git a/examples/quote.lisp b/examples/quote.lisp new file mode 100644 index 0000000..922a3b7 --- /dev/null +++ b/examples/quote.lisp @@ -0,0 +1,4 @@ +; typical lisps support '() as shorthand for (quote ()) +; this lisp will not. Both from a practical standpoint and an idealogical one. +(' (1 2 3 4)) +(quote (1 2 3 4)) \ No newline at end of file