|
|
|
|
![]() ![]() |
Jun 11 2005, 01:55 AM
Post
#1
|
|
|
Member [ Level 1 ] Group: Members Posts: 30 Joined: 29-April 05 Member No.: 4,516 |
hey is there a way to create a new language, like are there any programs or anything?
|
|
|
|
Jun 11 2005, 02:04 AM
Post
#2
|
|
|
Member [ Level 1 ] Group: Members Posts: 35 Joined: 10-June 05 Member No.: 6,038 |
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.
|
|
|
|
Jun 11 2005, 04:57 PM
Post
#3
|
|
|
Member - Active Contributor Group: Members Posts: 84 Joined: 7-June 05 From: Antioch, California Member No.: 5,943 |
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 |
|
|
|
Jun 12 2005, 10:50 PM
Post
#4
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Jun 13 2005, 06:10 PM
Post
#5
|
|
|
Member [ Level 1 ] Group: Members Posts: 45 Joined: 9-April 05 Member No.: 3,791 |
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. |
|
|
|
| twitch |
Jun 14 2005, 04:18 AM
Post
#6
|
|
Guests |
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). |
|
|
|
Jun 15 2005, 02:11 AM
Post
#7
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Mar 27 2006, 12:46 PM
Post
#8
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 27-March 06 Member No.: 12,296 |
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!! |
|
|
|
Mar 27 2006, 02:15 PM
Post
#9
|
|
|
Advanced Member Group: Members Posts: 199 Joined: 3-October 05 Member No.: 8,888 |
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. |
|
|
|
Aug 19 2006, 10:34 AM
Post
#10
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 19 Joined: 14-July 06 Member No.: 14,491 |
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? |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 5th September 2008 - 07:11 AM |