1,105,208 Community Members

Create Own Programming Language

Member Avatar
shridharmaster
Newbie Poster
6 posts since Dec 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
Ketsuekiame
Posting Virtuoso
1,674 posts since May 2010
Reputation Points: 793 [?]
Q&As Helped to Solve: 231 [?]
Skill Endorsements: 24 [?]
 
0
 
Member Avatar
ddanbe
Posting Expert
5,336 posts since Oct 2008
Reputation Points: 2,054 [?]
Q&As Helped to Solve: 904 [?]
Skill Endorsements: 46 [?]
Featured
 
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.

Member Avatar
DeathEater
Light Poster
33 posts since Sep 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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!

Member Avatar
kapojian
Junior Poster in Training
52 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
Momerath
Senior Poster
3,821 posts since Aug 2010
Reputation Points: 1,323 [?]
Q&As Helped to Solve: 661 [?]
Skill Endorsements: 19 [?]
Featured
 
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 three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: