473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Making your own programming language

Hey everybody,

I want to create my own programming language, using C#. Could anyone
give me some tips, advice on this goal?

Let's say that in my programming language uses the keyword, integer
instead of int.

Thanks,
Seen Sharp

Nov 17 '05 #1
3 5384
Are you trying to create a scripting language? Implement the
functionality you want and then compile it. Use your dll to interpret
the commands that you send to it. (have fun parsing!!!)

New Langauage? Advice: Go back to school.

Nov 17 '05 #2

"Visually Seen #" <al*****************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hey everybody,

I want to create my own programming language, using C#. Could anyone
give me some tips, advice on this goal?

Let's say that in my programming language uses the keyword, integer
instead of int.


Only one piece of advice worth taking: Start small.

I would recommend finding a compiler for a langauge that you like and
modifying it to add some of the features you want in your new language, one
at a time. Mono's C# compiler is a good option for modifying C#, although I
find it a little messy structurally attimes. Working with an existing
compiler will give you a good hobbiest base in compiler theory and will get
you working much faster than taking a course will. Play with a few, get a
feel for what real people do.

Once you've done that, try building a langauge on your own that does the
simple things: assignments, basic arithmetic, comparisons, and slowly add
onto that foundation classes, methods, and whatever other advanced features
you want.

Through trial and error combined with the existing compilers you played
with, you will likely start to find things that work and start to understand
how your grand idea would work inside of a compiler and you can start to
build it. You will likely rewrite more than once, but as you learn what you
are doing that will hurt less and less as you go on.

The most valuable tool you will find is a parser generator, I recommend
starting with GOLD Parser Builder[1] once you start building grammars from
scratch, as it has some very nice tools you can use to visually debug the
grammar and figure your ideas out, but I find it a little over complicated
in general practice.

The mono compiler uses a Yacc port called Jay, and one I always liked was
Coco/R[2]. However if you just do a search for something like "C# parser
generator" you will find loads of options.

Good luck on your langauge.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Zach Shutters | last post by:
I am new to python and working my way through the van Rossum tutorial. I am cursios though about if you can program windows with python? I know I shouldn't worry about this right now but I am...
7
by: TTA | last post by:
I'm an intermediate C++ programmer. My skills are good but they need to be fine-tuned and my software methodologies in theory are good but I need more practical experience . I am still in...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
85
by: masood.iqbal | last post by:
I know that this topic may inflame the "C language Taleban", but is there any prospect of some of the neat features of C++ getting incorporated in C? No I am not talking out the OO stuff. I am...
10
by: Jeff Grills | last post by:
I am an experienced C++ programmer with over 12 years of development, and I think I know C++ quite well. I'm changing jobs at the moment, and I have about a month between leaving my last job and...
351
by: CBFalconer | last post by:
We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
10
by: Antha | last post by:
Hi! I have a small e-commerce site but for everything else webrelated I'm practically virgin... I'd like to offer some sort of quiz in my shop so people can interactively find out which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.