Lolcode

Andrew Robinson EMAIL_HIDDEN
Thu Dec 18 00:20:07 CET 2008


Maybe I've been looking to too many lolcats, but Lolcode makes a lot
more sense than objective-C to me...

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

that's a simple hello-world app in Lolcode, (lolcode.com for full syntax)

This example shows conditional execution and user input (GIMMEH), and
the comment syntax (BTW)

HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?
	YARLY
		BTW this is true
		VISIBLE "BIG NUMBER!"
	NOWAI
		BTW this is false
		VISIBLE "LITTLE NUMBER!"
	KTHX
KTHXBYE

here are loops and conditional breaks

HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
	UPZ VAR!!1
	VISIBLE VAR
	IZ VAR BIGR THAN 10? GTFO. KTHX
KTHX
KTHXBYE

Variables are integers, unless specified as strings (YARN) or arrays (BUKKIT)

- Andy_R



More information about the music-bar mailing list