1.11M Members

Create Own Programming Language

 
0
 

Hello Friends,

I want to create our own object oriented programming language using C#. Is it possible?How?
I want to know what are the steps used to create the languages.

Please guide me.

Thanking you.

Regards,

Shridhar

 
0
 

This is the code for a console calculator I posted here.
It knows what a named variable is and has a notion of functions.
You could try to add an If statement or a loop statement to it.
http://www.daniweb.com/software-development/csharp/code/217185
http://www.daniweb.com/software-development/csharp/code/217186
http://www.daniweb.com/software-development/csharp/code/217187
I hope it will give you a little insight of what compiler building means.

 
0
 

well the very first thing you need to know is how to make a compiler, search about compiler design or some thing, and after that you need to be a c# guru if even it is possible to make a compiler with a HLL like C#, but you have to know how to code in assembler, that is mandatory, and you also need to know about operating systems, then you will get a picture of where you should start.
have fun!

 
0
 

i have one in C, but its not yet finished. wanna see it for reference? lolz

 
0
 

if even it is possible to make a compiler with a HLL like C#, but you have to know how to code in assembler, that is mandatory

It is very possible to create a compiler in C# and you don't need to know assembler at all. Using the Emit methods you can generate IL code and save it to a file (just like the C# compiler does). Developing a simple language wouldn't be too hard, and then you can build on it from there.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: