Tool for programming and translating LOLCODE, a programming language written with words from English forums/slang, such as OMG, O RLY, I HAS...
LOLCODE Language - dCode
Tag(s) : Programming Language
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Tool for programming and translating LOLCODE, a programming language written with words from English forums/slang, such as OMG, O RLY, I HAS...
Lolcode is a programming language, it is not an encryption, it follows a syntax similar to other programming languages but is very verbose and misuses keywords that are usually replaced by symbols in programming.
Example: I HAS A VAR ITZ 0 corresponds to VAR = 0
Like any language, its practice requires learning the syntax and its functions, theoretically the source code starts with HAI (which could translate to Hello) and ends with KTHXBYE (which could be translate by OK, thanks, bye.).
The lolcode is of relatively low level, it implements the basic functions like the variable declaration or the loops of IM IN YR up to IM OUTTA YR (which could be translated as I am inside of and I'm outside of).
Here are some other key words in the lolcode language:
lolcode | equivalent |
---|---|
ALWAYZ const IZ value | define a constante: define |
CAN HAS | include a file: include |
MUST HAS | include a file: require |
VISIBLE | show/ouput: print/stdout |
I HAS variable | variable declaration: var = null |
IZ value | variable affectation: = value |
UPUP! | incrementation: ++ |
DOWNDOWN! | decrementation: -- |
IM IN UR | start loop: for/foreach |
IM OUTTA UR | end loop |
I FOUND MAH value | return value |
BTW comment | indicate a comment |
KTHX | end loop or object declaration |
Like any programming language the lolcode has an interpreter and a compiler that can translate the code into a machine language for a computer.
To allow reading to a human, dCode proposes to convert the code into Javascript (but it requires to know this language).
Finally, if the code displays an output value, then dCode displays it automatically (the default example on this page is a Caesar Cipher in Lolcode).
dCode uses a Javascript library loljs 1.1 (a LOLCODe to JavaScript translator) created by Mark Watkinson.
The lolcode contains many slang words from the English language, including spelling or grammatical errors: I HAS, IS, ALWAYZ, and so on.
dCode retains ownership of the online 'LOLCODE Language' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for LOLCODE Language download for offline use on PC, tablet, iPhone or Android !
Please, check our community Discord for help requests!