Skip to content

Instantly share code, notes, and snippets.

@kyleconroy
Created January 14, 2013 03:12
Show Gist options
  • Save kyleconroy/4527516 to your computer and use it in GitHub Desktop.
Save kyleconroy/4527516 to your computer and use it in GitHub Desktop.
automatically generated javascript from lua
var lua = require('../lib/core');
var tmp = null;
var _math_1 = lua.newtable();
var _check_1 = lua.call(lua.require, ['luascripts/checkers'])[0];
lua.tableset(_math_1, 'add', (function (_x, _y) {
var tmp;
return [lua.add(_x, _y)];
return [];
}))
lua.tablegetcall(_check_1, 'eq', [lua.tablegetcall(_math_1, 'add', [3, 3])[0], 6]);
lua.tablegetcall(_check_1, 'eq', [lua.tablegetcall(_math_1, 'add', [0, 3])[0], 3]);
lua.tablegetcall(_check_1, 'eq', [lua.tablegetcall(_math_1, 'add', [0, 0])[0], 0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment