Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a .Net programming language? [closed]

I have created a few different full programming languages using some of the various parsing tools available. However, how would someone create a programming language that runs the .Net framework? Would I have to output the .Net IL and compile that or is there a higher level of abstraction?

Also, is there an easy way to get the language working in Visual Studio?

like image 588
Telavian Avatar asked Oct 04 '10 17:10

Telavian


People also ask

Why .NET is not a programming language?

NET Framework is a platform for building software. It is not a language itself. The primary (but not only) languages developers use to build software on the . NET Framework are C# and Visual Basic.

What language is .NET coded in?

C# (pronounced “see-sharp”) is the actual coding language that we write inside of the . NET framework.

Is C# closed source?

C# is a modern, innovative, open-source, cross-platform object-oriented programming language and one of the top 5 programming languages on GitHub.


1 Answers

You'll want to take a look at the Microsoft Research Common Compiler Infrastructure (CCI) project. It provides everything you need to generate the metadata and the MSIL for an assembly. And the debugging .pdb file, rather important to get your language going.

There's a sister project, CCI Code Model and AST, that might be useful as well, depends how far along you got.

like image 193
Hans Passant Avatar answered Oct 12 '22 10:10

Hans Passant