LOLCODE

LOLCODE是一种建立在高度缩写的网络英语之上的编程语言,如果能理解这种网络英语,一般就能在未经训练的情况下读懂LOLCODE程序的源代码。

LOLCODE 所用之标识

例子

HAI WORLD!

在屏幕上打印"HAI WORLD!":

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

count-1

演示变量和循环

 HAI
 CAN HAS STDIO?
 I HAS A VAR
 IM IN YR LOOP
 	UP VAR!!1
 	VISIBLE VAR
 	IZ VAR BIGGER THAN 10? KTHXBYE
 IM OUTTA YR LOOP
 KTHXBYE

参考链接(英文)

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.