diff options
author | Case Duckworth | 2024-02-21 09:33:15 -0600 |
---|---|---|
committer | Case Duckworth | 2024-02-21 09:33:15 -0600 |
commit | 7ba9d95408b55a76bcda4da8d356da02a102813c (patch) | |
tree | 243210d59f43f35d6ec1d0cd5a5019fedf8b1e80 | |
parent | Initial commit (diff) | |
download | lam-7ba9d95408b55a76bcda4da8d356da02a102813c.tar.gz lam-7ba9d95408b55a76bcda4da8d356da02a102813c.zip |
add readme
-rw-r--r-- | readme.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..20b41cf --- /dev/null +++ b/readme.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | lam --- a lisp in lua | ||
2 | by C. Duckworth | ||
3 | |||
4 | lam(n.) -- where you go when a scheme goes bad | ||
5 | |||
6 | major work in progress. as of right now ( 2024-02-21 ): | ||
7 | - (define sq (lambda (x) (* x x))) | ||
8 | |||
9 | (sq 4) ;=> 16 | ||
10 | (sq (sq 4)) ;=> 256 | ||
11 | |||
12 | - (define rep (lambda (f) (lambda (x) (f (f x))))) | ||
13 | |||
14 | ((rep sq) 4) ;=> ERROR -- trying to call a string value (Symbol, I think, x) | ||
15 | |||
16 | sad face. | ||
17 | |||
18 | however, +, *, all math.* functions and constants, begin, define, work. | ||
19 | |||
20 | apply also works, i'm pretty sure. scheme-style.(was up late last night, think i got that in) | ||
21 | |||
22 | contributions/help WELCOME! | ||