So... this is an experiment with making a full-blown Javascript to Lua translator, preserving semantics and so on. It's a single-pass transpiler that directly generates Lua code from the Esprima AST, without any kind of IR. Quick-and-dirty, cutting corners, etc etc - don't expect much of this code :) For example, each ternary expression (?:) generates 4 function calls and a closure - too lazy to i