1 / 11

LOLCODE & OMGROFL

LOLCODE & OMGROFL. Pätris Halapuu Tartu Ülikool 2013. 2007 Adam Lindsay (Lanchesteri ülikoolist) Inspireeritud lolcat’ist Mitu erinevat funktsioneerivat interpretaatorit ja kompilaatorit Veebi progemiseks. LOLCODE. Esimene implementatsioon - PHP parser ( Jeff Jones )

marlis
Download Presentation

LOLCODE & OMGROFL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LOLCODE & OMGROFL Pätris Halapuu Tartu Ülikool 2013

  2. 2007 Adam Lindsay (Lanchesteri ülikoolist) • Inspireeritud lolcat’ist • Mitu erinevat funktsioneerivat interpretaatorit ja kompilaatorit • Veebi progemiseks LOLCODE

  3. Esimene implementatsioon - PHP parser (Jeff Jones) • PHP Works 2008 ettekanne PHP parseri kohta • .NET kompilaator NickJohnson 2007 TechEd • PL/LOLCODE JoshTolley projekt, serveri poolne programmeerimine PostgreSQLis • JavaScripti translaator • Jne… Kasutust leidnud

  4. Kasutab lühendatud sõnu ja slängi • Esolang (esotericprogramminglanguage) • SUURTÄHED • Taane pole oluline • Helloworld: • HAI <- programmi alguse märksõna • CAN HAS STDIO? <- kasuta faili • VISIBLE "HAI WORLD!" <- prindi • KTHXBYE <- programmi lõpetamine • http://lolcode.codeschool.com/ Keele eripära

  5. I HAZ COLOR1 <- tekita muutuja I HAZ COLOR2 IZ GREEN <- tekita muutuja ja lisa väärtus COLOR1 IZ RED <- määra muutuja väärtus BTW THIS IS COMMENT <- BTW järgi tuleb kommentaar VISIBLE „COLOR IS &COLOR1&“ <- prindib muutuja IVAR IZ 1 <- määrame muutuja IVAR väärtuseks 1 IVAR UPUP! <- suurendab IVARi ühe võrra Veel koodi

  6. CAN I HAZ SQL? DBASE IZ GETDB(‘lolz’) FUNNAHS IZ DBUCKET( &DBASE&, „CAN I PLZ GET joke ALL UP IN funnahs“) SQLite andmebaasidega ühilduvus

  7. 2006 Juraj Borza • OMGROFL – „Oh My God Rolling On the Floor Laughing“ OMGROFL

  8. Iga käsk on eraldi real • Kui real on kaks käsku, siis teist ignoreeritakse • Tühja rida ei loeta • Taane ei mängi rolli • Suur ja väiketähtedel erinevust ei teha • Kasutab järjekorda nagu Turingi masin kasutab linti Süntaks

  9. lol iz 1 <- uus muutuja nimega lol ja väärtus 1 wtf lol iz lick 1 <- kontrollib kas lol väärtus on 1 rofl lol <- prindi välja lol väärtusega tähe nagu brainfuck’is lmao lol <- suurenda ühe võrra lol’i brb <- lõpeta w00t <- alustab kommentaari Koodinäiteid

  10. loliz 72 rofllol loliz 101 rofllol loliz 108 rofllol rofllol lool iz 111 rofllool loooliz 44 roflloool loooliz 32 roflloool loooliz 87 roflloool rofllool lool iz 114 rofllool rofllol loliz 100 rofllol loliz 33 rofllol stfu Hello, world!

  11. Aitäh kuulamast! Pätris Halapuu

More Related