wisp-lang / wisp

A little Clojure-like LISP in JavaScript
https://gozala.github.io/wisp/
Other
980 stars 68 forks source link

compile-file doesn't work if run noninteractively #140

Open sjl opened 8 years ago

sjl commented 8 years ago

I'm trying to run wisp -c foo.wisp from make, but the cond here says that if we're running non-interactively we should always compile from stdin (and so it just ignores my -c foo.wisp and compiles the (empty) stdin into void 0):

https://github.com/Gozala/wisp/blob/master/src/wisp.wisp#L97-L102

It would be nice to reorder this so the check for -c comes first.