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.
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.
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.