LOLCODE - the weirdest programming language

Discussion in 'Forum for discussion of ANTICHAT' started by [Raz0r], 1 Nov 2008.

  1. [Raz0r]

    [Raz0r] Elder - Старейшина

    Joined:
    25 Feb 2007
    Messages:
    425
    Likes Received:
    484
    Reputations:
    295
    [​IMG]


    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:

    Code:
    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:

    Code:
    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:

    Code:
    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! =)
     
    3 people like this.
  2. -=lebed=-

    -=lebed=- хэшкрякер

    Joined:
    21 Jun 2006
    Messages:
    3,804
    Likes Received:
    1,960
    Reputations:
    594
    Cool!
    Code:
    10.1 == lol
    
    :D

    Code:
    HAI
    CAN HAS MOA?
    BTW my fist lolcode example =)
    PLZ OPEN PART "privat.razdel.1.01"?
        AWSUM THX
            VISIBLE PART
        O NOES
            INVISIBLE "nick.name.lebed"
    KTHXBYE
    
     
    #2 -=lebed=-, 1 Nov 2008
    Last edited: 1 Nov 2008
    1 person likes this.
  3. Dimi4

    Dimi4 Чайный пакетик

    Joined:
    19 Mar 2007
    Messages:
    750
    Likes Received:
    1,046
    Reputations:
    291
    :DDD Cool
    Perfect language ;D
     
  4. Sinay

    Sinay Elder - Старейшина

    Joined:
    1 Sep 2007
    Messages:
    356
    Likes Received:
    365
    Reputations:
    20
    lolCODE xD
     
  5. iddqd

    iddqd Banned

    Joined:
    19 Dec 2007
    Messages:
    637
    Likes Received:
    519
    Reputations:
    19
    0day x-ploit? :rolleyes:
     
  6. -=lebed=-

    -=lebed=- хэшкрякер

    Joined:
    21 Jun 2006
    Messages:
    3,804
    Likes Received:
    1,960
    Reputations:
    594
    Code:
    HAI
    CAN HAS Antichat?
    BTW my second lolcode example =)
    PLZ RETURN TO MY "status.MOA"
        AWSUM THX
            VISIBLE "I remain"
        O NOES
            INVISIBLE "quit"
    KTHXBYE