Add suporrt for stdin -> compile -> stdout #11

Merged
merged 11 commits into from Aug 2, 2012

Projects

None yet

3 participants

@Gozala
Contributor
Gozala commented Jun 27, 2012

With this change input from stdin is compiled and output is written to stdout.

This makes few things a lot easier for example cat src/lispy.ls | lispy will print compile output.
This patch depends on other changes I have submitted (#10, #8, #7, #6), once their are pulled diff here will appear a lot smaller.

While working on this I have noticed that valid lisp (if true true) compiles to an invalid JS true ? true : ; so I fixed that so that it complies to true ? true : undefined; instead.

@Gozala
Contributor
Gozala commented Jun 27, 2012

I believe 9663ce0 solves #12

@rbgrouleff

This would be a really great addition to LispyScript as it would make it a lot easier to integrate it with other software.

@Gozala
Contributor
Gozala commented Jul 10, 2012

@rbgrouleff You could try them out in my fork https://github.com/gozala/lispyscript
Also I wrote a small web page that does translation on the fly http://jeditoolkit.com/lispyscript/

@santoshrajan santoshrajan merged commit f4dc278 into santoshrajan:master Aug 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment