Creating A New Language? - programming

Pages: 1, 2
free web hosting

Latest Entry: (Post #18) by Lewisthemusician on Jan 17 2007, 08:18 PM. (Line Breaks Removed)
QUOTE(clovis @ Jun 11 2005, 01:55 AM) hey is there a way to create a new language, like are there any programs or anything?QUOTE(bob3695 @ Jun 11 2005, 02:04 AM) Well, there are no programs that i know of. One thing you could do is learn C++ or any other low-mid level language and write a program to reconize commands and do certain things. If you want to make a language that you ... read more.
Express your Opinion! Contribute Knowledge.

Free Web Hosting > Computers & Tech > Programming > Programming General > Design Practises, Patterns & Ideas

Creating A New Language? - programming

clovis
hey is there a way to create a new language, like are there any programs or anything?

Reply

bob3695
Well, there are no programs that i know of. One thing you could do is learn C++ or any other low-mid level language and write a program to reconize commands and do certain things. If you want to make a language that you compile the programs with you will need to go learn ASM and do a lot of coding. It is possible to make a language but it is very difficult and it will take a long time unless you have a team of like 10+ people working on it.

Reply

yungblood
do you want to create a simple scripting language, or do you want to make something more complex? either is possible, but if you want to be able to compile programs made with your language, it will be extremely difficult. If you want to be able to do scripting, it might be easier to tie a scripting language out there to whatever you are making. I have worked with a scripting language named "TCL" tied to several different programs.

YB smile.gif

Reply

vizskywalker
all a programming language is is a set of instructions and a compiler or interpreter that turns those instructions into machine code in some form or another. any language can be used to write any other language.

~Viz

Reply

FearfullyMade
I'm not an expert on this, but here is my understanding of what you would need to create a language.

Like vizskywalker said, all you need to create your own language is make up the rules and syntax and then write a compiler that will take the code and turn it into something that can be run by the computer. For example, a C++ compiler takes your code and breaks it into assembly, and eventually bytecode. Your compiler would have to something similar. I guess you could have your compiler translate your code to C++ and then use a C++ compiler to do the rest. That might work and it could be a little easier since you wouldn't have to work with assembly (I think). As far as the rules and syntax goes, you can do whatever you want, just remember the more complicated you make it, the harder it will be to write your compiler.

I always thought it would be cool to create my own language, but I don't know if I'll ever get around to it. Good luck, and I hope you succeed.

Reply

twitch
I have thought of this before, but with the introduction of the XML series, it hardly seems the point. Being able to put in your own format of coding then backing it up with information behind it is as good as it will get.

Or you could always take a pre-existing language and modify it to your needs, remember that you need to have the appropriate files to containt information (e.g. .dll and .sys).

Reply

vizskywalker
If anyone wants to learn more about creating a new language, I'm in the process of creating a new language from scratch, using assembly. I should have some assembly tutorials forthcoming, so lack of assembly knowledge is not a problem. I can always use more hands, if you are interested see antilost.org, as I will soon have the language project hosted there.

~Viz

Reply

Esmaeel Ibraheem
QUOTE
guess you could have your compiler translate your code to C++ and then use a C++ compiler to do the rest. That might work and it could be a little easier

the same idea I have.. I want to make a parser to check the syntax and after that translate "my" language to C++ and the C++ compiler will do the rest...
but my problem is : I want my language to be in Arabic, (Right to left lang).
does any one have Ideas that can deliver me to the "barrier tat I will face!"!



Sorry for my Bad English!!

Reply

evought
QUOTE(bob3695 @ Jun 10 2005, 08:04 PM) *

Well, there are no programs that i know of. One thing you could do is learn C++ or any other low-mid level language and write a program to reconize commands and do certain things. If you want to make a language that you compile the programs with you will need to go learn ASM and do a lot of coding. It is possible to make a language but it is very difficult and it will take a long time unless you have a team of like 10+ people working on it.


If you are really interested in this sort of thing, you need to read the "Dragon Book". It is a computer science classic and is still the best source. Be aware that creating a language is not hard (relatively), but making a good and useful one is.

The biggest problem is coming up with a grammar and syntax which is simple enough to be easy to learn and complex enough to do what it has to do. You also need to balance ease of use, elegance, consistency, and orthogonality. In general, getting it right takes about ten years of careful testing and feedback. This is one of the reasons that Java has had a lot of growing pains: it was not fully cooked when released. In the early days of a language you want a relatively small group of dedicated users who are willing to deal with you breaking their code on a regular basis to fix language problems. When a language is released to the public early, the temptation is to leave the mistakes in rather than break a lot of other people's code.

 

 

 


Reply

Fixxxer
So much I know, the best way to make good language is to learn yacc, bison (which you have on some pragramming oriented linux distros like slackware), and to read Chomsky's articles on language, semantic, syntax and description of language. That is just small step in understendig language making.
But what kind of language you want to make, what's ideal you searching for and what will your language have that other languages don't?

Reply

Latest Entries

Lewisthemusician
QUOTE(clovis @ Jun 11 2005, 01:55 AM) *

hey is there a way to create a new language, like are there any programs or anything?



QUOTE(bob3695 @ Jun 11 2005, 02:04 AM) *

Well, there are no programs that i know of. One thing you could do is learn C++ or any other low-mid level language and write a program to reconize commands and do certain things. If you want to make a language that you compile the programs with you will need to go learn ASM and do a lot of coding. It is possible to make a language but it is very difficult and it will take a long time unless you have a team of like 10+ people working on it.


I could help you with your own language.
The thing is, we should create a language which is easy to learn like,

(link=www.astahost.com<Astahost) and it would be really easy, that would say there's a link to astahost and the text that shows up will be on the right in this case it would be Astahost. biggrin.gif
Like this:

Astahost

lol Funny

-Lewis

Reply

ignite
QUOTE(SKYISHIGH(ro) @ Oct 24 2006, 11:23 AM) *

hy all,

first of all please excuse my bad english, i will try to write as correct as i can.

here is the problem, i must make an parser, and maybe a small compiler for school an until now i searched a lot after a tutorial or a website where to find some documentation. as fixxxer wrote it is more easy to learn yacc and to make this "new" language. but if i must create the language in Borland Delphi 5, which is your advise? and probably i didn't understood, but fixxer can you be more exactly on who is Chomsky's?(and to read Chomsky's articles on language, semantic, syntax and description of language)
thanks and best regards,


After some thinking and taking into account learning propose of project i went into this new idea: if a language style is not specified why should you stick with pascal-like syntax? Hardest part of implementing this style syntax is to parse expressions, all that infix, prefix, postfix operators, operator precedence and such. So avoid all of this difficalties by choosing lisp-like syntax. It will be very easy to implement parser, evaluation can be implemented as simple procedure wich traverse parsed syntax tree and evaluate each node. Just piece of cake. wink.gif

Reply

bluefish
You can create a simple "language" pretty easily, you just need a parser, which usually doesn't take long - for example, I created a simple format to show links on web pages by parsing a text file, it would show links in the current directory and parent directories only. That took me less than an hour to get right. If you want a "real" language, I have no experience in that - like previously said, it takes a lot of work to create a good language from complete scratch. But translation is a much easier solution, but not always what you need - in that case, the only thing you could really do is simplify the language.

Reply

sparkx
I always wondered that myself. Could someone please P.M. me about how to make a new programming language? Do you have to make an exterior file naming ALL the variables and what to do in case of a variable. Then have that load every time someone uses the language? Or do you have to get the browser to upload it (FireFox ect) so that you can simply set a global language (example javascript or C++). Is it even more complex to get it to work on all operating systems (windows ext) I have so many questions. If you could give me a time Ill log onto the shout panel that would be so cool! Website link would also be appreciated.
Thanks
~Sparkx~

Reply

vizskywalker
QUOTE(knight17)
@vizskywalker
Your site is returning an ERROR while visiting.Please fix that

So, antilost.org was a new open source web site that some of the astahost members were putting together. I didn't have control of the site, so I don't know why it is down. As such, within a couple of weeks, I will be posting assembly tutorials here at astahost.

~Viz

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. creating a new computer language - 42.30 hr back. (1)
  2. creating a new language - 76.63 hr back. (4)
  3. create a programming language - 172.94 hr back. (1)
  4. making my own programming language tutorial - 176.76 hr back. (1)
Similar Topics

Keywords : creating, language, programming

  1. CS Engineers = Programming Engineers?
    Should CS Engineers be qualified to program algorithms? (7)
  2. Object Orientated Programming Help!
    I just can't understand OOP!! (2)
    I'm coming here not because I expect anyone to post a step by step of what it is but because
    hopefully someone here has links to a website that explains it really well or maybe knows of a
    script that uses it in a clear example. Any links would be greatly appreciated. I just need to
    understand it to see if using it could save me some time and effort. Thanks Kage This topic
    deals with General Programming Concept. So I guess it should be in Programming > General. Topic
    moved. Oopsadaisies. I should have mentioned that I want to learn the use of OOP in PHP, such ....
  3. Should I Follow?
    questions about future programming (6)
    okay my father is a computer programmer for a large company and recently he said that we soon will
    all need to know how to 'speak' if that the word to use, perl now i understand that
    programming is a big thing but if i decide to learn programming and such what would be a good
    program to start with. He had me on perl and it seemed pretty easy I just wanted some feed back from
    others on what they thought on all this. Thanks, Anne....
  4. Xtreme Programming
    Must see for any dedicated coder (5)
    Hi, Those who are into serious pogramming and/or are involved in large programming projects should
    check out this site: http://www.xprogramming.com - while this isn't one of those code
    repository sites with thousands of code snippets, this site deals with the various facets of
    programming and programming models, common design patterns, effecient project organization and
    execution and loads more... See for yourself. A must see site for all the hardcore programmers.
    Believe me, this would open up a completely new avenue to extreme programming /smile.gif' border='....
  5. Agility Or Discipline In Programming
    (0)
    There is a book named: "Balancing Agility and Discipline", in which Boehm suggest a mixture between
    the different processes. When reading the top considering about the "programming job", I start to
    think what our programmers should do in software development: just follow the discipline, such as
    code standard, design pattern or we could try to be more agile sometime, to build an perfect article
    freely?....

    1. Looking for creating, language, programming

Searching Video's for creating, language, programming
advertisement




Creating A New Language? - programming



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE