LOLScript

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

LOLScript is a joke programming language created by User:RyanDolan123 in 2013. It is based off of the Lua scripting language and is similar to LOLCODE, though with more recent memes and such.

Keywords

Keyword Standard Lua Counterpart
IF LE if
DEN then
PLZ do
MAH local
LOLK end
INDIS in
YA true
NOP false
NOTHING nil
IS ==
ISNT ~=
LOL print
THREAD.XXXX coroutine.XXXX
NAWT not
LESS <
MOAR >
LETIME os.clock
AND and
OR or
PCALL pcall
UNTIL until
SOMETHING function
PLZ do
FER for
INDIS in
OR ELSE... else
OR ELSE IFDIS elseif
GET OUT return
THREAD coroutine
INFINITY math.huge
LE PAIRS pairs
SHUD BE =
LOL WHILE while
BREAK ME KK break

Examples

Hello World in LOLScript:

LOL "Hello World!"

99 bottles of beer in LOLScript:

FER I = 99, 0, -1 PLZ
 IF LE I IS 0 DEN
  LOL "No more bottles of beer on the wall."
  GET OUT
 OR ELSE...
  LOL I.." bottles of beer on the wall."
  LOL I.." bottles of beer."
  LOL "Take one down, pass it around,"
 LOLK
LOLK

Truth-machine in LOLScript:

MAH ENTERED SHUD BE NOP
LOL WHILE YA PLZ
 IF LE NOT ENTERED DEN
  LOL "Input 1 or 0"
 LOLK
 MAH K SHUD BE io.read()
 IF LE K ISNT 0 AND LE K ISNT 1 DEN
  LOL "Y U NO PRINT 1 OR 0"
  ENTERED SHUD BE YA
 OR ELSE IF LE K IS 0 DEN
  LOL "0"
  BREAK ME PLZ
 OR ELSE IF LE K IS 1 DEN
  LOL WHILE YA PLZ
   LOL "1"
  LOLK
 LOLK
LOLK