Go to file
2024-09-08 17:27:39 +09:00
.gitignore fix if 2024-09-08 11:52:55 +09:00
bltin.c add macro 2024-09-07 23:03:56 +09:00
dat.h add macro 2024-09-07 23:03:56 +09:00
eval.c return nil if false on cmp 2024-09-08 16:10:49 +09:00
fn.h add FILE* to parser 2024-09-08 16:52:11 +09:00
gc.c add FILE* to parser 2024-09-08 16:52:11 +09:00
macro.lisp can read external .lisp file 2024-09-08 17:06:08 +09:00
main.c move error.c to main.c 2024-09-08 17:27:39 +09:00
makefile move error.c to main.c 2024-09-08 17:27:39 +09:00
obj.c add macro 2024-09-07 23:03:56 +09:00
parser.c can read external .lisp file 2024-09-08 17:06:08 +09:00
README.md fix if 2024-09-08 11:52:55 +09:00
str.c rewrite GC 2024-09-04 12:20:58 +09:00

  • (define fac (lambda (n) (if (== n 0) 1 (* n (fac (+ n -1))))))

  • macro

    (macro and (expr . rest)
        (if rest (list 'if expr (cons 'and rest)) expr))

    (and (== 1 1) (== 0 0) (if nil nil 1) (+ 100 100))
    (and ())