C++ Lisp Interpreter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Rain Mark 6222908852 unify synatx and normal function impl 4 years ago
example unify synatx and normal function impl 4 years ago
.gitignore impl lispoo 4 years ago
LICENSE Initial commit 4 years ago
README.md unify synatx and normal function impl 4 years ago
build.sh impl lispoo 4 years ago
core.h unify synatx and normal function impl 4 years ago
lispoo.cpp unify synatx and normal function impl 4 years ago
lispoo.h unify synatx and normal function impl 4 years ago

README.md

lispoo

Code Oops Lisp Interpreter

build

$ ./build.sh

example

lambda.lisp

(progn
  (define abc (lambda (a b c) (+ a (+ b c))))
  (set! x (abc 1 2 3))
  (message x)
  (progn (+ 1.2 3.9) (define plus (lambda (a b) (+ a b))) (message (plus 9 9)))
  )
$ ./lispoo example/lambda.lisp
8
18

quote.lisp

(progn
  (define test (lambda (x) x))
  (if (test (quote (+ 1 -1)))
      (message (quote true))
    (message (quote false))
    )
  (message (quote (+ 1 2)))
  )
$ ./lispoo example/quote.lisp
false
(+ 1 2)

More Examples