Science Fair Project Encyclopedia
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 | code) or [code2 | code1]. Means IF a[p] THEN code1 ELSE code2.
- New instructions:
| Character | Meaning |
|---|---|
| ; : | input/output 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) |
External links
Last updated: 08-22-2005 18:43:19
10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details


