|
|
|
|
![]() ![]() |
Oct 24 2006, 09:23 AM
Post
#11
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 24-October 06 Member No.: 16,747 |
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, |
|
|
|
Nov 17 2006, 11:26 AM
Post
#12
|
|
|
Member [ Level 1 ] Group: Members Posts: 34 Joined: 17-November 06 Member No.: 17,334 |
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, There is pascal version of lexx/yacc. I personally did exactly same thing: wrote simple pascal-like interpreter in Delphi 5. Not too hard, really. |
|
|
|
Nov 23 2006, 04:50 AM
Post
#13
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 3-November 06 From: USA, CA, Los Angeles Member No.: 16,947 |
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 Well im pretty young, i think i can dedicated my life for the next ten years to create a new language. Hey i might be written in books if its good enough lol. Give me a PM and ill help you out on starting the stream lining process. |
|
|
|
Nov 23 2006, 05:37 PM
Post
#14
|
|
|
Advanced Member Group: Members Posts: 145 Joined: 6-October 05 Member No.: 8,941 |
From what you are saying can I make a BASIC language syntax to do stuff in C++ (generate C++ source code) compiler
@vizskywalker Your site is returning an ERROR while visiting.Please fix that |
|
|
|
Nov 26 2006, 05:46 AM
Post
#15
|
|
|
Techno-Necromancer Group: Members Posts: 1,018 Joined: 13-January 05 From: The Net Member No.: 2,127 |
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 |
|
|
|
Nov 26 2006, 07:44 PM
Post
#16
|
|
|
Sparkx Group: [HOSTED] Posts: 340 Joined: 11-October 06 From: Dana Point, CA, USA Member No.: 16,496 |
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~ |
|
|
|
Jan 17 2007, 02:34 AM
Post
#17
|
|
|
Member [ Level 2 ] Group: Members Posts: 71 Joined: 16-December 06 Member No.: 18,419 |
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.
|
|
|
|
Jan 17 2007, 09:09 AM
Post
#18
|
|
|
Member [ Level 1 ] Group: Members Posts: 34 Joined: 17-November 06 Member No.: 17,334 |
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. |
|
|
|
Jan 17 2007, 08:18 PM
Post
#19
|
|
|
Member [ Level 2 ] Group: Members Posts: 51 Joined: 5-January 07 Member No.: 19,160 |
hey 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 |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 30th August 2008 - 02:56 PM |