Had to share:
http://eleks.github.io/js2js/#home
So funny...
I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming
My Twitter: https://twitter.com/indieprogram
My Book: http://amzn.com/1305076532
Js2JsCompiler.prototype.compileCode = function(code) {
return code; // as we need to compile javascript to javascript, we do nothing here :)
};
"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"
My journals: dustArtemis ECS framework and Making a Terrain Generator
Sure, anyone can translate from C to assembly, from Java to C, and from javascript to javascript, but the real challenge has always been in translating back.
Sure, anyone can translate from C to assembly, from Java to C, and from javascript to javascript, but the real challenge has always been in translating back.
There's a backend for LLVM that generates C and C++ code that works pretty well, but of course, the resulting code is quite different from what you had in the first place. Maybe someone should implement a LLVM JavaScript generator.