L00P L00P

L00P - Definition

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:
CharacterMeaning
; :input/output a[p] in decimal notation.
0a[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
SA = sign(A)

External links

The L00P Programming Language (http://www.angelfire.com/geek/gwestenb/l00p/l00p.html)

Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.