define(['./bytecode-table'], function(bytecode_table) {
var bops = [];
while(true) {
var bc = bytecode_table.for_num(bops.length);
if (!bc) { break; }
bops.push(bc);
}
var comma = function(i) { return (i < (bops.length-1)) ? ',' : ''; };
var luaName = function(bc) {
var name = bc.name.toUpperCase();
if (name==='2DUP') { return 'DUP2'; }
return name;
};
console.log('-- generated by TurtleScript write-lua-ops.js');
console.log('');
console.log('local ops = {}');
console.log('');