mherkender / lua.js

An ECMAscript framework to compile and run Lua code, allowing Lua to run in a browser or in Flash
http://blog.brokenfunction.com/
600 stars 73 forks source link

Can't pipe input through lua2js #3

Closed 8bitDesigner closed 12 years ago

8bitDesigner commented 12 years ago

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.

8bitDesigner commented 12 years ago

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