RecurseMe

From Esolang

Jump to: navigation, search

RecurseMe is a esoteric programming language invented by User:Zzo38 that the program code can call itself recursively.

[edit] Commands

  • + - < > = Same as Brainfuck
  • [ ] = Mark beginning and end of entire program, anything after ] is comments
  • # = Call itself recursively
  • Lowercase letters = Swap value at pointer with value of a register (all registers start at zero)
  • Uppercase letters = If value of register is zero, then exit subroutine, if non-zero, then go back to beginning of subroutine
  • ; : = Input to/output from last register swapped (if none, then error)
  • Numbers 0 to 9 = Skip a number of commands if value at pointer is zero (so 0=NOP, 1=skips next command if value is zero, etc.)
  • & = Skip next 2 commands
  • / = Switch between main memory and auxilliary memory (only affects + - < > and numbers commands)

[edit] Examples

Cat program:

[z;:Z]
Personal tools