Teen Programmers Unite  
 

 

Return to forum top

A New Language

Posted by LordZero [send private reply] at September 25, 2002, 11:39:05 PM

Hello, im new to this forum, but i was wondering if i could get your suggestions on syntax for my language im creating. anything and everything will help, thanks a lot for anything.

Posted by gian [send private reply] at September 26, 2002, 01:08:52 AM

SML.

Posted by buzgub [send private reply] at September 26, 2002, 03:23:27 AM

I would suggest that if you don't have a firm idea of the syntax you want your language to have, you should not be designing a language.

Posted by gian [send private reply] at September 26, 2002, 05:36:19 AM

Indeed. If you don't know what you want a language to do, then there is probably no need for one.

Posted by DragonWolf [send private reply] at September 26, 2002, 06:27:26 AM

LordZero: Syntax all depends on what your language is for. Logic, Prodcedural, Object Orientated, Markup, etc style languages all have different sytaxes. Also depends on whether it is a high or low level programming language.

Posted by LordZero [send private reply] at September 27, 2002, 09:39:56 PM

I dont think you understand....I am asking for suggestions on syntax/markup..ie:
int main(void)
{
///blah...some code
}
etc... thats syntax, i know what the language is todo, i just want suggestions on how it should look

Posted by LordZero [send private reply] at September 27, 2002, 09:40:46 PM

btw, its a low level language, for the most part, its sorta a mixture...but not really...

Posted by buzgub [send private reply] at September 27, 2002, 09:49:15 PM

LordZero, I fail to see how my post indicates any lack of understanding of your question. If you don't know what syntax you want, don't try to design a language.

Posted by RedX [send private reply] at September 28, 2002, 07:15:18 AM

LordZero you may know what your language is going to do, but if you don't explain this to us, how can we give any meaningful suggestions on it?

Posted by buzgub [send private reply] at September 28, 2002, 07:20:14 AM

What it's going to do is not the issue.

A small piece of advice: Think about what you want to be easy in your language. Now think about what sort of syntax would be conducive to making this easy.

Posted by Psion [send private reply] at September 28, 2002, 08:45:20 AM

Well, if "what it's going to do" includes the abstract syntax (the expression trees that result from parsing), then that is certainly quite influential on the concrete syntax.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.