Home > HAI WURLD! LOL

HAI WURLD! LOL

October 7th, 2007

So, today I was stumbling around and I found an implementation of 99 bottles in LOLCODE! Wow, time to get the interpreter. I really need to make a deb for this, but that can wait. Anyway, first I tried some simple hello world sort of stuff:


BTW OMFG A LOLCODE!!oen!111
BTW THIS IS WROTE BY ERIK GREGG 10/07/07
BTW LOL FROM HTTP://WWW.RALREE.INFO
HAI
  VISIBLE "HAI WURLD! LOL"
KTHXBYE

Then I moved on to something even more awesome…

So, today I was stumbling around and I found an implementation of 99 bottles in LOLCODE! Wow, time to get the interpreter. I really need to make a deb for this, but that can wait. Anyway, first I tried some simple hello world sort of stuff:


BTW OMFG A LOLCODE!!oen!111
BTW THIS IS WROTE BY ERIK GREGG 10/07/07
BTW LOL FROM HTTP://WWW.RALREE.INFO
HAI
  VISIBLE "HAI WURLD! LOL"
KTHXBYE

Then I moved on to something even more awesome:


BTW THIS MAKES FIBOYAHTZEE LOL
BTW THIS IS WROTE BY ERIK GREGG 10/07/07
BTW LOL FROM HTTP://WWW.RALREE.INFO
HAI
  I HAS A HOWMANYZ
  I HAS A BUNNIEZ
  I HAS A NEWBUNNIEZ
  I HAS A OLDBUNNIEZ

  LOL BUNNIEZ R 0
  LOL NEWBUNNIEZ R 1
  IM IN YR MATINGSEASON
    VISIBLE BUNNIEZ!
    LOL OLDBUNNIEZ R BUNNIEZ
    LOL BUNNIEZ R NEWBUNNIEZ
    LOL NEWBUNNIEZ R NEWBUNNIEZ UP OLDBUNNIEZ
    IZ BUNNIEZ BIGR THAN 1000?
      YARLY
        VISIBLE ""
        GTFO
      NOWAI
        VISIBLE ", "!
    KTHX
  KTHX
KTHXBYE

Here’s some delicious output:


hank@rofl:~/repos/hank/code/LOLCODE$ ./sjlol.py FIBOYAHTZEE.LOL
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987

I also found a small bug in the BIGR THAN and SMALR THAN functions – the mappings in the parser were spelled wrong. If you just use the scripts in my repository it all works:


svn co https://modzer0.cs.uaf.edu/repos/hank/code/LOLCODE


,

Comments are closed.