D
D
Dmitry Demin2015-01-04 09:33:14
JavaScript
Dmitry Demin, 2015-01-04 09:33:14

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

2 answer(s)
Z
zenwarr, 2015-01-04
@keksmen

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.

A
Alexander Taratin, 2015-01-04
@Taraflex

The time machine is no different.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question