Was the C # compiler written in C ++?

Was the C # compiler written in C ++?

+41
compiler-construction c # roslyn
Mar 10 '09 at 16:20
source share
5 answers

Yes, but there are plans to write a C # compiler in C #, which I believe has been discussed in this podcast .

+35
Mar 10 '09 at 16:22
source share

Yes.

The Mono C # compiler is written in C #.

+22
Mar 10 '09 at 16:42
source share

The .NET framework was written in Simple Managed C (SMC)

Story

During the development of the .NET Framework, class libraries were originally written using a managed code compiler system called Simple Managed C (SMC). In January 1999, Anders Halesberg formed a team to create a new language at the time it was called Cool, which meant "C-like object-oriented language." [16] Microsoft believed that the name “Cool” is considered the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was published at the July conference of professional developers, the language was renamed C #, and the class libraries and the ASP.NET runtime were ported to C #.

From: http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29

+18
07 Oct 2018-11-11T00:
source share

There is a new (as of late 2011) C # and VB compiler written by Microsoft under the name Roslyn , which is written in C # and VB.NET respectively. The project page is here . The Roslyn compiler is written as a library providing a rich public API. There is a news article here about this from InfoWorld.

UPDATE: As of April 3, 2014, Roslyn is open source under the Apache 2.0 license.

+9
May 02 '12 at 5:22
source share

Yes, that was - like most CLRs. If you want to see the internals of the CLR and / or compilers, I highly recommend the Microsoft CLI (aka Rotor):

But actually there is a compiler written in C #. I think Mono is written that way. Download Mono Sources and find out for yourself.

+8
Mar 10 '09 at 16:42
source share



All Articles