can a compiler of a language L be implemented in the same language L ?

I know many languages that compilers are implemented in the same language: - The C# Roslyn Compiler is implemented in C# - The F# Compiler is implemented in F#

Now, I think that is possible for example implement the compiler of C# 6.0 in C# 5.0

Then my question is about the same version of the language, that is:

can a compiler of a language L be implemented in the same language L ? 

I ask this because I hear that typescript compiler is implemented in typescript, but there are no previous version of the typescript language.

Thanks in advance.

Upvotes: 1

Views: 101

Answers (1)

Justin Niessner
Justin Niessner

Reputation: 245389

Yes, it is possible. The term is known as bootstrapping:

Bootstrapping (compilers): Wikipedia

Upvotes: 5

Related Questions