L00P
From Free net encyclopedia
(Redirected from L00P programming language)
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] |
@ | a[p] = a[p + a[[p]] |
$ | a[p + a[[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 |
[edit]