Leet (programming language)
Leet (or L33t) is an esoteric programming language based loosely on Brainfuck and named for the resemblance of its source code to the symbolic language "L33t 5p34k".[src] L33t was designed by Stephen McGreal and Alex Mole to be as confusing as possible.[src] It is Turing-complete and has the possibility for self-modifying code.[src] Software written in the language can make network connections and may therefore be used to write malware.[src]
Leet (or L33t) is an esoteric programming language based loosely on Brainfuck and named for the resemblance of its source code to the symbolic language "L33t 5p34k".[src] L33t was designed by Stephen McGreal and Alex Mole to be as confusing as possible.[src] It is Turing-complete and has the possibility for self-modifying code.[src] Software written in the language can make network connections and may therefore be used to write malware.[src] ==Language specification== The basic data unit of L33t is the unsigned byte (big-endian), which can represent ASCII values and numbers in the range 0-255.[src] The source code is in "l33t 5p34k" and words are separated by spaces or carriage returns.[src] The language uses 10 opcodes and each word in the source code is translated into an opcode by adding all the digits in the word together, e.g.[src] l33t = 3 + 3 = 6.[src] It is not necessary to use anything but digits in the code.[src] The language uses a 64K block of memory, and 2 pointers - a memory pointer and an instruction pointer.[src] The l33t interpreter tokenizes all the words in the source to create a sequence of numerical opcodes, and places them in order into the memory block, starting at byte 0.[src] The instruction pointer will keep incrementing until it encounters an END.[src] The memory pointer starts at the first byte after the instructions.[src] Memory "wraps": incrementing the memory and the instruction pointer past 64K will cause it to run around to byte 0, and vice versa.[src] Memory pointers can also be moved into the area of memory occupied by the instructions, so code can be self modified at runtime.[src] Similarly, the instruction pointer will continue incrementing or jumping until it encounters an END, so code can be generated at runtime and subsequently executed.[src] ===Opcodes=== ==Bugs== F00l![src] c0d3 1s b1g3R th4n m3m0ry!!1![src] You tried to load a program that is too big to fit in the memory.[src] Note that at compile time, one byte is reserved for the memory buffer, so the program's size must be less than the memory size minus one byte.[src] Byt3 s1z3 must be at l34st 11, n00b![src] The byte_size argument of new() was less than 11.[src] The byte size of an interpreter must be at least 11 (to accommodate for the opcodes).[src] L0L!!1!1!![src] n0 l33t pr0gr4m l04d3d, sUxX0r![src] run() called before any program was loaded.[src] ==Interpreters== ===Python=== Written by Alex Mole.[src] Does not support the CON opcode, but otherwise considered the "definitive" interpreter.[src] ===Ruby=== Written by Eric Redmond.[src] This one contains an implementation of CON.[src] ===JavaScript=== By Phil McCarthy, it is based on the Python one but is a bit more interactive.[src] ===C=== Interpreters for C have been written by Kuisma Salonen (for use in Linux) and by Alecs King.[src] ===Perl 6=== By Gaal Yahas.[src] This interpreter is notable for being the first which comes with a debugger.[src] ==References== ==External links== Official Website Leet on Esolang Language-l33t-0.02 on CPAN[src]
39 sentences · 39 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Leet (programming language)." encyclopegia.org, 2024, https://encyclopegia.org/wiki/leet-programming-language. Accessed 27 November 2026.
Chicago
"Leet (programming language)." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/leet-programming-language.
APA
encyclopegia.org. (2024). Leet (programming language). Retrieved November 27, 2026, from https://encyclopegia.org/wiki/leet-programming-language
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON