Lenny
Press "X" to admire hat
Can anyone tell me what this does:
How about this:
No?
Exhibit A is (boviously) "Hello World!" in this different language, and Exhibit B is an example of an IF conditional (O RLY? YA RLY, NO WAI, MEBBE, OIC == if, true, false, elseif, endif.
The language is LOLCODE - a higher level language based extremely loosely on C/C++, written in LOL, and in ALL CAPS (apart from variables... though they can be a mixture of any case), because CAPS LOCK IS CRUISE CONTROL FOR COOL.
http://lolcode.com/specs/1.2
LOLCODE, which is obviously inspired by the LOLCAT meme, has been around for a couple of years, and is currently in the finalisation stages of v1.3 (has been for a couple of years, actually - the forum is still seeing lots of discussions about various things to implement, like variable scopes using I and ME, arrays with BUKKITS, and various different thises and thats).
It just goes to show that you can turn anything into a workable programming language (part of my course next year involves creating my own compilers! I can't wait. )! I'm half-tempted to try and define various data structures in LOLCODE when I've got some spare time (I've been spending the last few days building lists and trees in Java because I realised that, for a CS student, I had a terrifying lack of code examples! Time to build up my library of code, methinks!).
Code:
HAI
CAN HAS STDIO?
VISIBLE "HAI WURLD!"
KTHXBYE
How about this:
Code:
BOTH SAEM ANIMAL AN "CAT"
O RLY?
YA RLY, VISIBLE "J00 HAV A CAT"
MEBBE BOTH SAEM ANIMAL AN "MAUS"
VISIBLE "NOM NOM NOM. I EATED IT."
OIC
No?
Exhibit A is (boviously) "Hello World!" in this different language, and Exhibit B is an example of an IF conditional (O RLY? YA RLY, NO WAI, MEBBE, OIC == if, true, false, elseif, endif.
The language is LOLCODE - a higher level language based extremely loosely on C/C++, written in LOL, and in ALL CAPS (apart from variables... though they can be a mixture of any case), because CAPS LOCK IS CRUISE CONTROL FOR COOL.
http://lolcode.com/specs/1.2
LOLCODE, which is obviously inspired by the LOLCAT meme, has been around for a couple of years, and is currently in the finalisation stages of v1.3 (has been for a couple of years, actually - the forum is still seeing lots of discussions about various things to implement, like variable scopes using I and ME, arrays with BUKKITS, and various different thises and thats).
It just goes to show that you can turn anything into a workable programming language (part of my course next year involves creating my own compilers! I can't wait. )! I'm half-tempted to try and define various data structures in LOLCODE when I've got some spare time (I've been spending the last few days building lists and trees in Java because I realised that, for a CS student, I had a terrifying lack of code examples! Time to build up my library of code, methinks!).