ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Оффтоп > Forum for discussion of ANTICHAT
   
 
 
Опции темы Поиск в этой теме Опции просмотра

LOLCODE - the weirdest programming language
  #1  
Старый 01.11.2008, 16:11
Аватар для [Raz0r]
[Raz0r]
Members of Antichat - Level 5
Регистрация: 25.02.2007
Сообщений: 495
Провел на форуме:
3244717

Репутация: 1980
Отправить сообщение для [Raz0r] с помощью ICQ
По умолчанию LOLCODE - the weirdest programming language




LOLCODE is a programming language created in 2007 which uses English internet slang (also knows as LOLCAT) as its operators and programme constructions.
I found this language the funniest one I ve ever seen =) Examples of LOLCODE programmes:

Код:
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
HAI specifies that it is LOLCODE programme like <? in PHP
CAN HAS <file>? preforms inclusion of STDIO lib
VISIBLE is analog of print()
KTHXBYE Ok, Thanks, Bye - the end of programme

One more example:

Код:
HAI
CAN HAS STDIO?
BTW lolcode example =)
PLZ OPEN FILE "file.lol"?
    AWSUM THX
        VISIBLE FILE
    O NOES
        INVISIBLE "Error!"
KTHXBYE
BTW by the way - comments =)
[CAN|PLZ]? is condition statement
OPEN opens the file, error handling goes below
AWSUM THX Awesome, Thanks
O NOES Oh, no - goes to stderr

And the last one, with a loop printing the numbers from 1 to 10:

Код:
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
   UP VAR!!1
   IZ VAR BIGGER THAN 10? KTHX
   VISIBLE VAR
IM OUTTA YR LOOP
KTHXBYE
I HAS A [VAR] declares the variable
UP VAR!!1 my favorite operator =) is equal to $var++

For more examples check the official site http://lolcode.com/
Have fun! =)
 
Ответить с цитированием
 



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
50 years of Lisp Sinay Forum for discussion of ANTICHAT 0 26.10.2008 10:12
Сборник пыльной библиотеки \буржуйская\ xcedz Болталка 5 12.07.2008 18:12



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ