Answer the question
In order to leave comments, you need to log in
How is the CoffeeScript/TypeScript translator built?
This is not the first time I hear that the "compilers" of CoffeeScript and TypeScript are written in the same languages that they "compile" themselves.
But after all, in order for everything to work, first you need to "compile" this same "compiler", which is written in a language that must "compile" itself. So how does it work?
Answer the question
In order to leave comments, you need to log in
Well, the first versions were written in other languages, and only then, when the compiler became more or less sane, they rewrote it in itself. It turns out that the previous version of the "compiler" collects the next one.
CoffeeScript was originally in Ruby, for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question