In which language is the C# compiler written?

前端 未结 3 484
死守一世寂寞
死守一世寂寞 2020-12-22 18:38

I looked at the source code at http://referencesource.microsoft.com/, and it appears all the source code is in C#.

I also looked at the source code for the new C# co

3条回答
  •  隐瞒了意图╮
    2020-12-22 19:16

    A compiler is just a program like any other program. There is nothing magical or special about it. It takes some input and produces some output. In this particular case, the input just happens to be C# and the output just happens to be CIL, but that's no different from the input being a series of tax returns and the output being a report.

提交回复
热议问题