From 7ba9d95408b55a76bcda4da8d356da02a102813c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 21 Feb 2024 09:33:15 -0600 Subject: add readme --- readme.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 readme.txt diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..20b41cf --- /dev/null +++ b/readme.txt @@ -0,0 +1,22 @@ +lam --- a lisp in lua +by C. Duckworth + +lam(n.) -- where you go when a scheme goes bad + +major work in progress. as of right now ( 2024-02-21 ): +- (define sq (lambda (x) (* x x))) + +(sq 4) ;=> 16 +(sq (sq 4)) ;=> 256 + +- (define rep (lambda (f) (lambda (x) (f (f x))))) + +((rep sq) 4) ;=> ERROR -- trying to call a string value (Symbol, I think, x) + +sad face. + +however, +, *, all math.* functions and constants, begin, define, work. + +apply also works, i'm pretty sure. scheme-style.(was up late last night, think i got that in) + +contributions/help WELCOME! -- cgit 1.4.1-21-gabe81