From f37b5e22f81c0ac8faa4402a665a522de432f1aa Mon Sep 17 00:00:00 2001 From: cynic Date: Tue, 4 Oct 2022 20:11:47 -0400 Subject: [PATCH] restructure std library into different files --- lib/aids.klambda | 12 ++---------- lib/kokoro.klambda | 9 +++++++++ lib/lists.klambda | 3 +++ 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 lib/kokoro.klambda create mode 100644 lib/lists.klambda diff --git a/lib/aids.klambda b/lib/aids.klambda index 6309254..a6ba3dc 100644 --- a/lib/aids.klambda +++ b/lib/aids.klambda @@ -2,13 +2,5 @@ : i'm hilarious. INCLUDE:./loop.klambda - -(defun spit - (miracle - "builtins" "print" (id $1))) -(defun input - (miracle - "builtins" "input" (""))) -(defun thesis - (spit - ("this language belongs to makise kurisu. there are many like it, but this one is hers."))) \ No newline at end of file +INCLUDE:./lists.klambda +INCLUDE:./kokoro.klambda \ No newline at end of file diff --git a/lib/kokoro.klambda b/lib/kokoro.klambda new file mode 100644 index 0000000..a032fd0 --- /dev/null +++ b/lib/kokoro.klambda @@ -0,0 +1,9 @@ +(defun spit + (miracle + "builtins" "print" (id $1))) +(defun input + (miracle + "builtins" "input" (""))) +(defun thesis + (spit + ("this language belongs to makise kurisu. there are many like it, but this one is hers."))) \ No newline at end of file diff --git a/lib/lists.klambda b/lib/lists.klambda new file mode 100644 index 0000000..bc1896f --- /dev/null +++ b/lib/lists.klambda @@ -0,0 +1,3 @@ +(defun length + (miracle + "builtins" "len" ((id $1)))) \ No newline at end of file