L00P
Encyclopedia : L : L0 : L00 : L00P
L00P is an esoteric programming language, a brainfuck-variant. The name is Leetspeak for "loop". Differences to brainfuck are as follows:
- An implicit loop around each L00P program (hence the name). A program can only be ended with an & symbol and brainfuck-style []-loops do not exist.
- If-else -structure. Syntax: (code1 | code2) or [code2 | code1]. Means IF a[p] THEN code1 ELSE code2.
- New instructions:
| Character | Meaning |
|---|---|
:
| output a[p] in decimal notation |
;
| input to a[p] in decimal notation |
0
| a[p] = 0 |
*
| a[p] *= 2 |
_
| a[p] = - a[p] |
#
| p = p + a[p] |
@
| |
$
| |
&
| terminate program |
S
| A = sign(A) |
These instructions are available along with the six remaining Brainfuck instructions:
| Character | Meaning |
|---|---|
>
| p++ |
<
| p-- |
+
| a[p]++ |
-
| a[p]-- |
.
| output a[p] in ASCII form |
,
| input to a[p] in ASCII form |
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
