castl
castl copied to clipboard
JavaScript to Lua compiler with runtime library.
I am trying to compile parinfer.js to lua. I am newbie in lua but it seems to be something wrong with the implementation of the split method from js to...
can you add roblox lua functions? cuz i suck at lua and would like to have lua functions in this pls
Hello, I'm trying to get a fully featured RegEx library for Lua that will run in a pure Lua environment (no `require`, no FFI, no `os` or `io` packages, etc.)...
``` function outer() { return function inner(x) { if(x == 10) return x; return inner.call(x, x+1); }(0); } console.log("Done: " + outer()); ``` Any thoughts? I tried to implement it,...
I want override the default `toString` in both lua and js. So normally I could do that in JavaScript with the `Object.setPrototypeOf` function, which finally call `Object.defineProperty` after [`babel-transformation`](https://babeljs.io/docs/plugins/transform-object-set-prototype-of-to-assign/), to...
The first argument of String.prototype.replace() is actually interpreted as a Lua search pattern, not as a string. For example, this code `console.log("String.prototype.replace()".replace("$", " is buggy"))` prints `String.prototype.replace() is buggy`, while...
Wanted to write by email, but given that there are two small tweaks worth reporting, I decided to write via github. So, firstly, big thanks for the tool! :) I...
I tried translating [KaTeX](https://github.com/Khan/KaTeX) (v0.7.1 from git) with [castl](https://github.com/PaulBernier/castl) (1.2.4). The translation "succeeded", with commands roughly as below: ``` $ cd katex $ git checkout v0.7.1 $ for f in...
Work towards #3
Trying to run without linking: ``` $ ./bin/castl.js lua5.2: cannot open ./.code.js.lua: No such file or directory ``` Trying to run after `npm link`: ``` $ castl lua5.2: ./.code.js.lua:1: module...