A Delusion of Control

From Esolang
Jump to navigation Jump to search

A Delusion of Control or ADoC, is an esoteric language, devised by User:Yayimhere, as a strange stack based language.

Command set

Using the following notation: stack - stack after command , program after command:

  • ƒ: a b c - a c c b , *
Celements, then copy the top of the stack, and move the two top elements of the stack to right below the element below the original and copy.
  • : a b - a b , ... ≠ a b
Run the top two elements of the stack.
  • Ë: a b c - a b p , ... c
Push the program to the top of the stack, and then pop the second element of the stack(after pushing mind you) and run that element.
  • \x: a - a x , *
Push the single character following the slash
  • ¢: a b - ab , *

Note that ° represents the empty string.