LOLCODE, the LOLCat Programming Language

by Joey deVilla on May 28, 2007

Cat at computer: “I can has programming language?”

The moment Anil Dash published his now-famous blog entry on the grammar used by lolcats, Cats Can Has Grammar, the door to studies that were equal parts silly and serious was opened. Not to be content with mere lexical and semiotic analysis of lolcats, some folks have taken it to the next level: the LOLCODE programming language.

LOLCODE is your standard Algol-style programming language (Algol is the grandfather of just about every popular current programming language) married to the lolcat captioning style — that is, ALL CAPS and I CAN HAS SILLY CAT GRAMMER AND SPELING KTHXBYE.

Here’s HAI WORLD, the LOLCODE version of “Hello, World!”:

Here’s something that outputs the numbers 1 through 10, a classic beginner’s exercise:

And finally, here’s a program to print the contents of a specified file:

If someone’s working on an IDE for this language, I have very important stylistic advice: it should make heavy use of the Impact font, just like all those lolcat captions. Bonus points if it’s Impact with a white fill and black stroke!

{ 18 comments… read them below or add one }

Leave a Comment

Previous post:

Next post: