castl
castl copied to clipboard
JavaScript to Lua compiler with runtime library.
It would be nice to be able to have lua load node.js modules on the fly. i.e. `runtime:require("../foo.js")`. - It should take care of relative paths etc. - It should...
Indexing and indexed assignment have slightly different semantics in JS vs Lua. This will also help with #3. Instead of compiling `a = foo.bar` to `a = foo.bar`, it should...
@zeen thought it would be cool to compile React.JS into Lua. The JS source file: http://fb.me/react-0.11.1.js The first error is ``` lua: ./castl/prototype/regexp.lua:110: bad argument #1 to 'find' (string, table...
for instance in castl/core_objects.lua#338 the string __index override breaks indexing strings:likethis()
Would be cool to be able to install CASTL via luarocks.
Valid JS code ```js export { map, void } from "../Data.Functor/index.js"; ``` causes transpilation error: ``` Control.Apply /home/renegatto/castl/bin/castl.js:170 throw new SyntaxError("Couldn't transpile JS code: " + e); ^ SyntaxError: Couldn't...