From 4759a61a8049d9297414e761b0ca3b057095b8e3 Mon Sep 17 00:00:00 2001 From: Christian Barthel Date: Thu, 4 Jul 2019 16:09:13 +0200 Subject: [PATCH] sample code --- sample.llm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sample.llm diff --git a/sample.llm b/sample.llm new file mode 100644 index 0000000..65a7fde --- /dev/null +++ b/sample.llm @@ -0,0 +1,29 @@ +(def and + (lm (a b) + (nand (nand a b) (nand a b)))) + +(def or + (lm (a b) + (nand (nand a a) (nand b b)))) + +(def not + (lm (a) + (nand a a))) + +(def nor + (lm (a b) + (not (or a b)))) + + +;; XXX ((lambda (x) (add x 1)) 5) + + +;; Local Variables: +;; mode: scheme +;; eval: (message "main()") +;; fill-column: 55 +;; comment-column: 40 +;; indent-tabs-mode: nil +;; tab-width: 2 +;; c-basic-offset: 2 +;; End: