How is it possible to write the compiler of a programming language with that language itself [closed]
- by tugberk
Possible Duplicate:
How could the first C++ compiler be written in C++?
You probably heard that Microsoft released a new language called TypeScript which is a the typed superset of JavaScript.
The most interesting thing that makes me wonder is the fact that its compiler writen in TypeScript itself.
Call me ignorant but I really couldn't figure out in my head how that is possible. This is just like chicken and egg problem in my head because there is no compiler to compile TypeScript's compiler in the first place. How is it possible to write a compiler of the compiler of a programming language with that language?