mherkender/lua.js

Can't pipe input through lua2js

8bitDesigner opened this issue · 1 comments

Just a thought, if lua2js listened on stdin and returned data on stdout, it could be used as part of a unix pipe; eg:

for i in `1.lua 2.lua 3.lua`; do
  cat $i | lua2js > "$i.js"
done

I'm working on a pull request which should implement this.

Urk, Jison generated parsers expect a single parameter for a file to parse - no way to get around that without tweaking Jison itself!