Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LOLCODE C++ Header by Entar
- // Version 1.0
- // http://entardev.wordpress.com
- // Loosely based on LOLCODE by Adam Lindsay - http://www.lolcode.com
- // Include in your project for instant LOLCODE keywords and syntax in C++
- // For best results, you may want to turn Caps Lock ON.
- // This code is released under the BSD License. For any other arrangements, please contact the author.
- // OPTIONS
- //#define LOLCODE_LOWER to enable lowercase equivalents
- //#define LOLCODE_LOWER
- //#define LOLCODE_CPLUSPLUS to enable C++ keywords
- #define LOLCODE_CPLUSPLUS
- //
- // functions
- #define HAI {
- #define KTHXBYE }
- #define WIF (
- #define ALL (
- #define KDONE );
- #define DONE )
- #define FOUNDYR return
- // classes
- #ifdef LOLCODE_CPLUSPLUS
- #define DOOHICKY class
- #define MINE private:
- #define SHARE protected:
- #define ALLCANHAS public:
- #define DOES ::
- // inheritance
- #define LRNS :
- #endif
- // misc
- #define OHHAI int main (int ARGC, char *ARGV[])
- #define DIAF exit(0);
- #define MAEK new
- #define NEWONE new
- #define DELEET delete
- #define OMNOM delete
- #define STAY static
- #define WIN true
- #define FAIL false
- #define PRT .
- #define LOOK ->
- // conditional
- #define IZ if(
- #define ORLY )
- #define KTHX }
- #define YARLY {
- #define NOWAI } else {
- #define SRSLY ?
- #define NOPE :
- #define CHOOS switch (
- #define PICK case
- // use KTHX to close curly braces mid program/function - HAI ... IZ(...) YARLY ... NOWAI ... KTHX ... KTHXBYE
- /* loops - example:
- IM IN YR LOOP
- IZ A BIGR THAN B ORLY
- YARLY
- OKBYE
- NOWAI
- A UP MKAY
- KTHX
- KTHX
- */
- #define IM while
- #define IN (
- #define YR 1
- #define LOOP ) {
- #define OKBYE break;
- #define KEEPGOIN continue;
- // operators
- #define BIGR >
- #define SMALR <
- #define LIEK ==
- #define BIGRLIEK >=
- #define SMALRLIEK <=
- #define MKAY ;
- #define K ;
- #define R =
- #define ITZ =
- #define UPD ++
- #define DOWND --
- #define LEFTOVRZ %
- #define NOT !
- #define UP +
- #define UPZ +=
- #define NERF -
- #define NERFZ -=
- #define TIEMZ *
- #define TIEMZD *=
- #define OVAR /
- #define OVARZ /=
- #define AND &&
- #define OR ||
- // bitwise (itteh bitteh kitteh committeh)
- #define MOOVLEFT <<
- #define MOOVRIGHT >>
- #define ANDBITTEH &
- #define ORBITTEH |
- #define XORBITTEH ^
- #define NOTBITTEH ~
- // syntactic sugar
- #define CALLED
- #define LOL
- #define THAN
- #define AS
- #define OF
- #define ALSO ,
- #define IHASA
- #define I
- #define HAS
- #define A
- #define U
- // variables
- #define VOID void
- #define IHASAVOID void
- #define NUFFIN void
- #define NUMBR int
- #define INT int
- #define IHASAINT int
- #define NUMBAR float
- #define FLOAT float
- #define IHASAFLOAT float
- #define DOUBLE double
- #define IHASADOUBLE double
- #define CHAR char
- #define IHASACHAR char
- #define TROOF bool
- #define IHASATROOF bool
- #define THISCALLED typedef
- #define IHASASTRUCT struct
- #define STRUKSHUR struct
- #define POINTY *
- #define RLY &
- // array indexing
- // creating
- #define THISBIG [
- #define WOW ]
- // accessing
- #define WHICH [
- #define OKAI ]
- // output
- #define VISIBLE printf(
- #define SEEZ printf(
- // input
- #define GIMMEH gets(
- #ifdef LOLCODE_LOWER
- // functions
- #define hai {
- #define kthxbye }
- #define wif (
- #define all (
- #define kdone );
- #define done )
- #define foundyr return
- // classes
- #ifdef LOLCODE_CPLUSPLUS
- #define doohicky class
- #define mine private:
- #define share protected:
- #define allcanhas public:
- #define does ::
- // inheritance
- #define lrns :
- #endif
- // misc
- #define ohhai int main (int argc, char *argv[])
- #define diaf exit(0);
- #define maek new
- #define newone new
- #define deleet delete
- #define omnom delete
- #define stay static
- #define win true
- #define fail false
- #define prt .
- #define look ->
- // conditional
- #define iz if(
- #define orly )
- #define kthx }
- #define yarly {
- #define nowai } else {
- #define srsly ?
- #define nope :
- #define choos switch (
- #define pick case
- // loops
- #define im while
- #define in (
- #define yr 1
- #define loop ) {
- #define okbye break;
- #define keepgoin continue;
- // operators
- #define bigr >
- #define smalr <
- #define liek ==
- #define bigrliek >=
- #define smalrliek <=
- #define mkay ;
- #define k ;
- #define r =
- #define itz =
- #define upd ++
- #define downd --
- #define leftovrz %
- #define not !
- #define up +
- #define upz +=
- #define nerf -
- #define nerfz -=
- #define tiemz *
- #define tiemzd *=
- #define ovar /
- #define ovarz /=
- #ifndef and
- #define and &&
- #endif
- #ifndef or
- #define or ||
- #endif
- // bitwise (itteh bitteh kitteh committeh)
- #define moovleft <<
- #define moovright >>
- #define andbitteh &
- #define orbitteh |
- #define xorbitteh ^
- #define notbitteh ~
- // syntactic sugar
- #define called
- #define lol
- #define than
- #define as
- #define of
- #define also ,
- #define ihasa
- #define i
- #define has
- #define a
- #define u
- // variables
- #define ihasavoid void
- #define nuffin void
- #define ihasaint int
- #define ihasafloat float
- #define ihasadouble double
- #define ihasachar char
- #define ihasatroof bool
- #define thiscalled typedef
- #define ihasastruct struct
- #define strukshur struct
- #define pointy *
- #define rly &
- // array indexing
- // creating
- #define thisbig [
- #define wow ]
- // accessing
- #define which [
- #define okai ]
- // output
- #define visible printf(
- #define seez printf(
- // input
- #define gimmeh gets(
- #endif
- #include <stdlib.h>
- #include <stdio.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement