4 ms·
These are more like transpiling, right? That is, there is a direct translation from <language> into JS? I was thinking more along the lines of how a compiler
by mmanulis 9y ago
These are more like transpiling, right? That is, there is a direct translation from <language> into JS?
I was thinking more along the lines of how a compiler works, translating into some kind of AST and then converting into JS from the AST.
- acemarke 9y ago"Transpiling" _is_ compiling. The term is just used to refer to output that is another high-level language, rather than some kind of assembly or bytecode. While I haven't looked at the implementations of any of those compilers, I would assume that most of them do actually parse their source language into an appropriate AST, and write out JS based on that AST.
- mmanulis 9y agoGot it. Thanks for the links too, helps to get some context around this.