Has anyone here every created their own programming language? What was the syntax like, and what did you use to implement the language? Using Haskell to implement your language is cheating BTW, so don't even post here if your language is made from Haskell.
Name:
Anonymous2008-10-24 14:54
Here's a sample of my programming language. I used Bison/Flex to lex and parse it. Everything was done in C. It's very simple and similar to C.
I rewrote Tcl in QBasic once. Shit wasn't capable of more than two nested function calls, but it worked.
Name:
Anonymous2008-10-25 15:02
I rewrote LAMBDA CALCULUS in LAMBDA CALCULUS once. Shit wasn't capable of more than two nested function calls, but it worked.
Name:
Anonymous2008-10-25 15:12
Yo dawg I herd u like term substitution, so we put a lambda calculus in your lambda calculus so u can beta-reduct while u beta-reduct
Name:
Anonymous2008-10-25 15:38
>>14
I don't get this joke. It seems like it could be funny if you get it but I don't so fuck off.
Xarn, over and out.
Name:
Anonymous2008-10-25 16:10
>>14
The verb from which ``reduction'' is derived is not, oddly, ``to reduct''. That would just be something you could do after you removed the ducts from something.
Name:
Anonymous2008-10-25 16:35
Mine is the best
Public Shared Function AreYouAFag(ByVal You As Person) As Boolen
If TypeOf(You) Is Fag Then
Return True
End If
Return True
End Function
Name:
Anonymous2008-10-25 16:51
>>17
this language looks like Transformers
it's designed for kids and it's all fucking stupid and made of idiotic bits and peices that don't actually do anything
Name:
Anonymous2008-10-25 16:56
>>18
It's the "let's have lots of keywords instead of difficult mathematical-ish operators" school of language design. Too bad it makes code almost impossible eyeball.
Semicolins are the corner or a good programming laguage.
And parenthesis.
Case sensatvity. value and Value are obvoously completley different things.
And the inability to determine equality and and assigment based on context.
if(You == Fag)
{ //start of this if statement
return 1;
} //end of this if statement
else
{ //start of this if statement's else
return 1;
} //end of this if statement's else
I've pondered making my own. I explored a variety of paradigms and languages (Lisp, Java, C/C++, Objective-C, Python, Ruby, VB, C#, etc). I wanted a fairly easy to read language. I also debated over having the language also be its own macro language. For the syntax, I chose to allow nearly every character to be an identifier (parenthesis and brackets being the only exception). White space would be the only only delimiter. I also wanted commands separated by a linefeed (since nearly all lines of code use just one line) with a character for line extension. All 'operators' are simply just identifiers. Functions can be declared to allow for only prefix notation (outside of the parenthesis) or infix notation (like operators). I never quite concluded on how infix evaluation priority would be determined. I wanted inline, anonymous (lambda) functions. But again I wasn't sure how I could abstract program flow commands and declarations so everything use the same form.
Basically I wanted the consistency and flexibility of Lisp with an easier syntax like Python. However after using Netbeans, I realized the program syntax is almost irrelevant when you have an IDE that can be wielded like the raw power of a god.
Name:
292008-10-27 1:07
I see now that Seed7 does some of the things I was exploring. Interesting.
>>29 Lisp with an easier syntax like Python
Wat. It doesn't get easier than Lisp, except for maybe Forth, which is harder to follow even though there's less structure to bother with.