473,807 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5401
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.goo glegroups.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
1925
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 curious. If so, is there any recommended tutorials on this. I know I can search google but i figured I would see what some people who know the language well would recommend. One last thing, in order for a program I write in python to run on someones...
7
1552
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 university pursuing my bachelors in Comp Sci. My old (and favorite) prof used to tell us the best way to learn a language is to write a compiler. I know it's a big project, but the guy did have a point. If you write a C++ compiler, you will have...
3
2491
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 a QA in an MNC in India, since I graduated in September 2003. I am working in a QA role which requires me to do some Winrunner automation, and modifying/creating a framework in Perl for Automated Regression Testing of some command Line utilities...
134
8053
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 increasingly been using scripting languages (especially Python and Bourne shell) which offer the same speed and yet are far more simple and safe to use. I can no longer understand why anyone would willingly use C to program anything but the lowest...
85
3305
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 talking about the non-OO stuff, that seems to be handled much more elegantly in C++, as compared to C. For example new & delete, references, consts, declaring variables just before use etc. I am asking this question with a vested interest. I...
10
1872
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 starting my new one. In that time, I have decided to learn C#. I picked up the book, "Programming C# (4th Edition)" recently and have read most of it. I've written about 1,500 lines of C# now, and I've run into the first really ugly thing I...
351
13173
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 do) occur in any language. These assumptions are generally made because of familiarity with the language. As a non-code example, consider the idea that the faulty code is written by blackguards bent on foulling the language. The term...
669
26275
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
10
2073
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 products suits them best. They should be able to answer some short questions (type: is your skin a. oily b. sensitive c.dry d.normal) and their score should be added up, resulting in their best-matching (in this case skin care) program. A friend of mine...
0
9720
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.