954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how would you make your own programming language

how would you start to make your own programming language.

mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
 

Here's one link that might help you out: http://www.free2code.net/tutorials/programming/1/Creating_a_Programming_Language.php

And another: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-cooltools.html

Were you trying to write a scripting language or an actual full blown language?

One thing I thought of that you'll need to consider, is your language just a wrapper for another one (aka parses into C and compiles the C verision) or would it actually compile your language straight into a machine code?

Let us know where you go with this! It's an interesting project. I sure there are some great books out there on Compiler Theory as well.

C#Coder
Newbie Poster
19 posts since Sep 2004
Reputation Points: 11
Solved Threads: 0
 

yeah i have thought of just making a full blown language i havent thought of the compiler options and i figured i should study up on how they make things like c++ so i recruited my bro who knows a little more about programming than me.

mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
 

Have you made your own programming language yet?
I'm doing a computing project for A2 coursework and creating your own language is one of the suggested options.
Is yours stack-based?
If you created your own how did you create it?

aliNinteTySeven
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 
Have you made your own programming language yet? I'm doing a computing project for A2 coursework and creating your own language is one of the suggested options. Is yours stack-based? If you created your own how did you create it?

This thread is over 5 years old -- I doubt the OP will answer you.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
cartman714
Light Poster
43 posts since Jun 2009
Reputation Points: -32
Solved Threads: 3
 

so... what's so cool about ressurecting dead threads?

ganbree
Light Poster
28 posts since Apr 2007
Reputation Points: 17
Solved Threads: 0
 

making them alive

cartman714
Light Poster
43 posts since Jun 2009
Reputation Points: -32
Solved Threads: 3
 

I also have ambition of making my own programming language one day eventually :)

I wish I could know someone who is a great machine code programming and who would share the same vision AND most importantly who'd be a good person and friend.

But the more I seek for that the more I understand how super impossible that is in this sad world...

VEGETA_DTX
Newbie Poster
5 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 

>But the more I seek for that the more I understand
>how super impossible that is in this sad world...
Then learn "great machine code programming" and be your own friend. Because with that attitude, your standards are too high for real friends.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

learn assembly first and then think of making it

hawash
Junior Poster in Training
62 posts since Jun 2007
Reputation Points: 9
Solved Threads: 1
 

Hey, thank you for your reply!

"Because with that attitude, your standards are too high for real friends. "
Was this in negative context?(sorry my English is still pretty bad)
Cause the last thing I wanted to say is to have friends just to use them...
I just wanted to say, how great it would be to share vision with someone who is a good person and friend, instead of having bunch of businessmen who will just do their job and forget about you in no time, as its all functioning that way today.

And yes I would like to learn machine code, but I am so hesitant, I just don't know if that's gonna pay off and I don't want to spend about 5 years of my life on something that doesn't pay off, while for that time I could do something more useful :/

Also I'm not sure how to start learning machine code, is there some guide? :)

VEGETA_DTX
Newbie Poster
5 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 
And yes I would like to learn machine code, but I am so hesitant, I just don't know if that's gonna pay off and I don't want to spend about 5 years of my life on something that doesn't pay off, while for that time I could do something more useful :/


Do people learn to play a musical instrument because they want to be paid off? Learning the skill itself is the pay off. If that isn't enough, I'd suggest learning something else.

Colin Mac
Posting Whiz
327 posts since Sep 2006
Reputation Points: 78
Solved Threads: 22
 

If you're looking for the payday, research the job market and see what's most in demand.

sloan31
Junior Poster in Training
65 posts since Apr 2008
Reputation Points: 14
Solved Threads: 3
 

I also have ambition of making my own programming language one day eventually

I wish I could know someone who is a great machine code programming and who would share the same vision AND most importantly who'd be a good person and friend.

But the more I seek for that the more I understand how super impossible that is in this sad world... we have something in commin hey.(RE: to VEGETA_DTX
)

Niclan
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

Yes Niclan long time no see, and this topic as well :)

I was thinking lately about an ultimate programing language and I actually can't believe how every single thinking-session ends with "but that is SO possible! I can't understand why nobody so far actually made an ultimate, fully visual, easy-to use programming language".
I believe that making an ultimate, easy to use, visual, all-purpose programming language is absolutely negligibly harder than was the making of C++, for example.

Healthy logic says:
What do we have to have to make all-purpose programming language that can do ANYTHING?
-You have to have absolutely the lowest level of control!

Do we have a programming language that has the lowest level of control which we would eventually use for making this new easier programming language?
-Yes we do, its called Assembly(am I correct? please correct me if I'm wrong about anything).

So, here is what healthy logic says further - Make a good structure and a hierarchy of a programming language, and then just make a visual representation for each element. For example a brown frame is a group, a blue box is a variable, a green frame is a function, a red line between functions/groups is a transfer that happens between them. On each element you could double click and change its name or whatever(which would change only that particular copy) OR you could change that variable in the library window(located, for example, on the right side) and with that change all copies and instances of that variable.

Is that so bloody hard? I mean IT IS itself, but with today's technology and budget nobody ever tried to do that so far? I am absolutely amazed. If I ever somehow get a chance to gather a team of programmers and do something like this, I would, I know its a very ambitions especially for somebody who is actually a drop above "C++ newbie" rank, but I am like that, I achieved many things in my life thanks to "never give up"-philosophy and I don't plan on ever changing it, whether I succeed or fail, I'll sleep peacefully knowing that at least I TRIED.

Heck, look at the Unreal Developement Kit! A single video game company successfully made something like a prototype of what I am talking about, called - Kismet!
How come the whole world of programmers never did that too but just for all purposes? Is it the concurrency thing? like "everybody would be able to program then" - SO WHAT!? isn't that a bit selfish! Besides don't worry, you'll always be in front of those newbies for that certain knowledge of yours, knowledge never goes to waste ;)

Again, don't get me wrong, I know how ridiculously hard it could all get, but I just want to say that there are even way harder things to program in this world, like some 3D applications, yet they exist since long ago.
Like I've concluded many times: 3D has Maya, Max, XSI, Cinema4D etc...Web Design has Dreamweaver, Frontpage etc...but programing has one big NOTHING, its still at the numbers and letters level, yet its older than both 3D and Web design together...isn't that absurd?

VEGETA_DTX
Newbie Poster
5 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 
Is that so bloody hard?


What an ignorant rant. Of course visual programming languages have been tried before. Some are even in active use, but for the most part they're awkward and less productive than the code based languages such that serious developers don't care enough to push for more. Not to mention the inherent difficulty in defining a generic visual language that's powerful enough to be useful without being so low level that you end up with the drag and drop version of assembly.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

^I believe there is lot of misunderstanding in your post Narue, also I really don't know what you have against me?

Why are those visual languages less productive? because they didn't have the low level control.
But can we really have a simple to use visual language with a lowest level of control - why not!?
Look at the Dreamweaver, you can do things in few clicks and if you think that its way to simple and not complex, you can always go into the HTML code itself and change it. If nothing else it at least speeds up the process of programming and keeps your mind focused easier, in a natural, visual matter.
All of those visual elements of that language I imagined could be fully editable code-wise as well! right click - "edit code" and that's it.

If that is possible for HTML, it is possible for assembly language or anything else for that matter, there is no obstacle besides concurrency and stingy knowledge, I strongly believe that.

But people will ALWAYS rather criticize ideas instead of supporting the ambition and spirit. Still I believe its just a matter of few years when somebody will finally start something like that.

VEGETA_DTX
Newbie Poster
5 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 
I believe there is lot of misunderstanding in your post Narue


You believe a lot of things that simply aren't true, as evidenced by your (I'll say it again) ignorant rant. Apparently you took the word "ignorant" as an insult, which is stupid.also I really don't know what you have against me?
I had nothing against you until you started getting whiny. Now I'm finding you childish and annoying.Why are those visual languages less productive?
Because any reasonably competent programmer can churn out working code much quicker than dragging and dropping icons into a visual designer.Look at the DreamweaverDreamweaver is a far cry from a general programming language.
A good use of visual designers is for user interfaces because it's simpler than back end logic and there's a direct correlation between the designer elements and the resulting interface.
there is no obstacle besides concurrency and stingy knowledge, I strongly believe that.
Then you're too stubborn to listen to reason and I won't waste any more of my valuable time.Still I believe its just a matter of few years when somebody will finally start something like that.
These things already exist, genius. Go do a search on google.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

You believe a lot of things that simply aren't true, as evidenced by your (I'll say it again) ignorant rant. Apparently you took the word "ignorant" as an insult, which is stupid.

I had nothing against you until you started getting whiny. Now I'm finding you childish and annoying.

Because any reasonably competent programmer can churn out working code much quicker than dragging and dropping icons into a visual designer.

  • Dreamweaver is a far cry from a general programming language.
  • A good use of visual designers is for user interfaces because it's simpler than back end logic and there's a direct correlation between the designer elements and the resulting interface.

Then you're too stubborn to listen to reason and I won't waste any more of my valuable time.

These things already exist, genius. Go do a search on google.

My dear god! What an insolent person you are Narue, do you even hear yourself?
I think that any further discussion with somebody as insolent and as poor-mannered as you, especially for a female, would be ultimately ridiculous.

VEGETA_DTX
Newbie Poster
5 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
 

Post: Markdown Syntax: Formatting Help
You