We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,111 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Create Own Programming Language

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

7
Contributors
5
Replies
1 Year
Discussion Span
8 Months Ago
Last Updated
7
Views
shridharmaster
Newbie Poster
6 posts since Dec 2009
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Ketsuekiame
Veteran Poster
1,195 posts since May 2010
Reputation Points: 541
Solved Threads: 153
Skill Endorsements: 8

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.

ddanbe
Industrious Poster
4,294 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26

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!

DeathEater
Light Poster
33 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

kapojian
Junior Poster in Training
52 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

Momerath
Senior Poster
3,729 posts since Aug 2010
Reputation Points: 1,322
Solved Threads: 624
Skill Endorsements: 13

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1034 seconds using 2.69MB