lispytunes-lang
v0.0.1
Published
ES6 Lisp
Readme
LispyTunes Core Language
Features
- Uses plain ES6 objects for hashmaps
- Multi-arity functions
- loop/recur
- Destructuring
Install
Requires Node.js.
npm i lispytunes-langUsage
REPL
node repl.jsRun a script
;; script.lisp
(defn yo [name]
(str "what up " name))
(println (yo "dawg"))$ node lispytunes.js script.lisp
what up dawgUse in ES6 module
import {evalString} from "lispytunes-lang"
// define a function
evalString('(defn add1 [n] (+ n 1))')
console.log(evalString('(add1 5)'))
// => 6Test
node test/test.js