From 7f2a90738b0f94a477bf643a71c90c352d5a1ec8 Mon Sep 17 00:00:00 2001 From: Eatswap Date: Thu, 8 Dec 2022 00:55:46 +0800 Subject: [PATCH] add: init --- .clang-format | 8 ++++++++ Makefile | 6 ++++++ sample.lisp | 14 ++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .clang-format create mode 100644 Makefile create mode 100644 sample.lisp diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..0bcdc29 --- /dev/null +++ b/.clang-format @@ -0,0 +1,8 @@ +UseTab: true +IndentWidth: 4 +--- +Language: Cpp +# Force pointers to the type for C++. +DerivePointerAlignment: false +PointerAlignment: Left +--- \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6c8f54a --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +all: + echo "Working" + +clean: + echo "Cleaning" + diff --git a/sample.lisp b/sample.lisp new file mode 100644 index 0000000..4efd288 --- /dev/null +++ b/sample.lisp @@ -0,0 +1,14 @@ +( + defun f (x) + ( + if (<= x 1) + 1 + ( + + + (f (- x 1)) + (f (- x 2)) + ) + ) +) + +(f 15)