[Include] LOLCode - Admittedly not the most useful release.
#1

Introduction

Background

"LOLCODE is an esoteric programming language inspired by the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.

The language is not clearly defined in terms of operator priorities and correct syntax, but several functioning interpreters and compilers already exist. One interpretation of the language has been proven Turing-complete."


Read more: http://en.wikipedia.org/wiki/LOLCODE

Proper introduction

I've written this with macros and have attempted to continue the meme-like syntax, but it doesn't conform completely to the LOLCODE standards according to Wikipedia.

Download

Download here: http://pastebin.com/ZHckCDqh

Code

Here's a short script written with the LOLCode include for Pawn:

pawn Код:
#include <a_samp>
#include <lolcode-2.0>

main() FURBALLCUMIN
    FAX("[debug] LOLCode 2.0 initialised.")OK
    SPACECATGOHOME
ITCAME

WWW OnGameModeInit() FURBALLCUMIN
    CATCOLLARS3D("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
   
    SPACECATGOHOME
ITCAME

WWW OnPlayerConnect(playerid) FURBALLCUMIN
    CANHAS szPlayerName[MAX_PLAYER_NAME]OK
    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME)OK
    if(!ISCATSAME(szPlayerName, "MaTrIx4057")) FURBALLCUMIN
        // u critic u mad
        UMAD(playerid)OK
    ITCAME
   
    if(!ISCATSAME(szPlayerName, "Max_Coldheart")) FURBALLCUMIN
        UEVENMADDER(playerid)OK
    ITCAME
   
    SENDCLIENTCATS(playerid, DATWHITECAT, "sup brew?")OK
ITCAME
Summary

The main aim of this is to promote usage of macros - and how effective they can be, this may be completely useless, but the usage of macros are completely under rated. Macros aren't just for undefining and redefining MAX_PLAYERS, they can play a huge part in your script.
Reply
#2

Quote:
Originally Posted by Calgon
Посмотреть сообщение
http://en.wikipedia.org/wiki/LOLCODE

I've written this with macros, pretty much completely useless, but it's somewhat of an expansion to LOLCode!

http://pastebin.com/jwdqdAN7

Enjoy. I wrote an untested script in LOLCode (which compiled):

pawn Код:
#include <a_samp>
#include <lolcode>

main() ITSCUMIN
OKDEN

CANHAS turdburger;

WWW OnGameModeInit() ITSCUMIN
CANHAS FILE aH EQA PLZOPENFILE("cheezburgr.txt", io_write)OK
RITE(aH, "KITTY KAT EAT 2 MANY CHEEZBURGR")OK
AWESOMETHX(aH)OK
GIVEBAK FAX("OKTY")OK
OKDEN

WWW OnPlayerSpawn(playerid) ITSCUMIN
SENDCLIENTCATS(playerid, 0, "OK U SPAWND")OK
OKDEN
lol-ed hard.

This is funny.
Reply
#3

lmfaoooooooooo.

+1
Reply
#4

Fail xDDD
Reply
#5

I made something like this once... it's amazing what boredom can do.

Although...
Код:
#define                 NOWAY                   { else }
^ I think there's a slight problem there.

And FUKUGUISE won't do much.
Reply
#6

I can't stop laughing
Reply
#7

This is funny
Reply
#8

ROFLMAO, nice xDDD
Reply
#9

LOL! XD

<8 Character Rule>
Reply
#10

u realy maked my day with this, not gonna use it but it looks realy funny
Reply
#11

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
I made something like this once... it's amazing what boredom can do.

Although...
Код:
#define                 NOWAY                   { else }
^ I think there's a slight problem there.

And FUKUGUISE won't do much.
Indeed. 'NOWAY' can be used in conjunction with 'OKDEN'?
Reply
#12

You have the braces the wrong way around.
Reply
#13

haha, i like this better cause it aint got no brackets
Reply
#14

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
You have the braces the wrong way around.
No sir.

{ else }

{

Another macro for the other }.
Reply
#15

Quote:
Originally Posted by ev0lutionnn
Посмотреть сообщение
You have the braces the wrong way around.
Fail. Fixed, thanks.
Reply
#16

well thats just lame DDD
Reply
#17

Quote:
Originally Posted by kLx
View Post
well thats just lame DDD
You're just lame. LOLCODE is one of the most useful creations yet.
Reply
#18

Quote:
Originally Posted by Calgon
View Post
You're just lame. LOLCODE is one of the most useful creations yet.
AGGGGGGREEEED
Reply
#19

Quote:
Originally Posted by Calgon
View Post
You're just lame. LOLCODE is one of the most useful creations yet.
I don't actually get it.

Look at the title of the thread and look at your post And boom you realized it's opposite. In my opinion, this is not one of the most useful creation.

Don't be double minded and think before you write .. Mate

Edit: good brain for thinking such thing

Edit 1: sorry for such a big bump xd
Reply
#20

I made anticheat FS writen in this "Language",and it works great!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)