lolcode
Inspired by David McRaney, Anil Dash, and my dear friend Anne, I started thinking of kitty pidgin and its simple grammar, the idea struck me, what else deals with simple grammars?
I bring to you LOLCODE, an as-yet unspecified and unimplemented programming language.
The first step is always Hello World:
HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
Oh. That was quite easy. The next thing people learn to do is count to ten:
HAI I HAS A VAR IM IN YR LOOP UP VAR!!1 VISIBLE VAR IZ VAR BIGGER THAN 10? KTHXBYE IM OUTTA YR LOOP KTHXBYE
I suppose you could count the even numbers by saying "UP VAR!!2".
Error checking on file open (and then conditionally printing the file) would be the next thing to implement:
HAI CAN HAS STDIO? PLZ OPEN FILE "LOLCATS.TXT"? AWSUM THX VISIBLE FILE O NOES INVISIBLE "ERROR!" KTHXBYE
Have any other contributions? Keep on the lookout for lolcode.com....
[Update: That was the soft launch. Did you miss it?]
Comments
Awesome! Can't wait for the first interpreter. Then you'll need to get a web framework.
KTHXBYE
fark me lolcode is frikken brilliant! also cant wait for first interpreter! w00tz im in ur commentz.. postin shizz
David
@ 29.05.2007 19:46 London/GMT
It sure is doable as a preprocessor layer on top of another language (developing a compiler for a parody language is overkill). If anyone's got about a week's worth of free time on their hands they could churn one out for GCC or MSBuild.
But there needs to be some kind of formal specification first though.
It sure is doable as a preprocessor layer on top of another language (developing a compiler for a parody language is overkill). If anyone's got about a week's worth of free time on their hands they could churn one out for GCC or MSBuild.
But there needs to be some kind of formal specification first though.
Vasili Sviridov
@ 29.05.2007 21:52 London/GMT
How about adding exception handling
Gotta use that DO NOT WANT!!! somewhere!
and increments can be done with MOAR
How about adding exception handling
Gotta use that DO NOT WANT!!! somewhere!
and increments can be done with MOAR
I'm looking forward to the byte-code compiler and/or interpreter.
Your sidebar, what did you use for that, I'm wanting to use that for a project of my own.
I think I may have the first webpage running LOL code. LOL source and PHP source available.
http://www.tetraboy.com/lolcode/
she
@ 06.06.2007 18:09 London/GMT
GIMME VAR is great for user input
There is a little dispute over
comments...
Personally not sure about BTW
meant for a comment
BTW CAN YOU PLZ COLLECT LOLCODE LINX?
KTHXBYE!
GIMME VAR is great for user input
There is a little dispute over
comments...
Personally not sure about BTW
meant for a comment
BTW CAN YOU PLZ COLLECT LOLCODE LINX?
KTHXBYE!
No new comments allowed (anymore) on this post.