HAI
LOLCODE is proceeding fast and this post sums up a bit, what is it and what’s happening.
Background
First there were the lolcats that took over the world.
Then there was the coding language
Now there are implementations, like LOL Code PHP Parser and especially the .NET language implementation. The CLR-version can be debugged and it was recently presented at the TechEd 2007 Australia.
You can find the official specs from the lolcode.com. Also, be sure to check out the 99 Bottles of Beer implementation with the LOL Code.
Examples
Types in LOLCODE:
“The variable types that LOLCODE currently recognizes are: strings (YARN), integers (NUMBR), floats (NUMBAR), and booleans (TROOF) (Arrays (BUKKIT) are reserved for future expansion.) Typing is handled dynamically. Until a variable is given an initial value, it is untyped (NOOB).”
You can initialize a variable like this:
I HAS A VAR ITZ 42
If-then constructs are simple enough:
<expression> O RLY? YA RLY <code block> NO WAI <code block> OICBOTH SAEM ANIMAL AN "CAT", O RLY? YA RLY, VISIBLE "J00 HAV A CAT" NO WAI, VISIBLE "J00 SUX" OIChttp://lolcode.com/specs/1.2#flow-control
Hai world
HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
More examples
I wonder who’ll be the first brave project manager that chooses lolcats code for the official language of the project.
Maybe when it comes with the .NET Framework. Only a matter of time, I believe…
Finally there is a language that I could teach to our cats.
KTHXBYE

