castl icon indicating copy to clipboard operation
castl copied to clipboard

JavaScript to Lua compiler with runtime library.

Results 16 castl issues
Sort by recently updated
recently updated
newest added

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...

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...

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...