| | hey is there a way to create a new language, like are there any programs or anything? |
| Nov 23, 2009 |
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 ma...
read more.
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.
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
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
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.
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).
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 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!! 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.
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? Latest Entrieshey is there a way to create a new language, like are there any programs or anything? 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. Like this: Astahost lol Funny -Lewis 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.
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.
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~ 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
Similar Topics
Keywords : creating, language, programming
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 questions about future programming (6) okay my father is a computer programmer for a large company and recently he said that we soon will Must see for any dedicated coder (5) Hi, Those who are into serious pogramming and/or are involved in large programming projects should (0) There is a book named: "Balancing Agility and Discipline", in which Boehm suggest a mixture between Looking for creating, language, programming
|
![]() Creating A New Language? - programming |
Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com