jspicl is a Javascript to PICO-8 Lua transpiler. The Javascript code is processed by Esprima which will create an AST that is used to generate Lua code as faithful to the original as possible.
npm install jspicl
import jspicl from "jspicl";
const javascriptCode = `...`;
const generatedLuaCode = jspicl(javascriptCode);
rollup-plugin-jspicl - Rollup plugin wrapper for jspicl
jspicl-mario-sample - Mario sample game using jspicl
ES2015+ | Not all ES2015+ features are supported. Run your code through a transpiler first such as bublé or babel. |
Array methods | Not all prototype methods have been polyfilled yet. |
Math.max | Only supports two arguments |
AST | Not all declarations, expressions and statements have been implemented. More will be added as needed. |
This project uses semantic versioning
MIT