anko / eslisp

un-opinionated S-expression syntax and macro system for JavaScript
ISC License
528 stars 31 forks source link

We should have a REPL #17

Closed anko closed 8 years ago

anko commented 8 years ago

@jkleiser requested this on gitter and I agree. A read-eval-print-loop would be great to have especially for quick tests.

anko commented 8 years ago

Simple REPL merged. However, it doesn't yet support macro definitions: leaving this open for now.

anko commented 8 years ago

Macros now persist in the REPL too.

$ eslc
> (macro x (function (x) (return 'a)))
undefined
> (var a 1)
undefined
> (x)
1