4 ms·
I like the simplicity of that gist. Very cool hack. However if I was to implement a Python to JavaScript compiler, would there be some benefits in transforming
by ville 14y ago
I like the simplicity of that gist. Very cool hack.
However if I was to implement a Python to JavaScript compiler, would there be some benefits in transforming the Python AST into a JS AST first?
There are existing code generators such as escodegen that transform that AST to JavaScript code.