Pops Are Overrated

From Esolang
Jump to navigation Jump to search

Pops are overrated or PAO for short is an esolang where there isn't a direct command for popping off the stack. PAO was created by User:AmNow.

Commands

Note: «n» means change in items on stack.

  • €: Push 0 «+1»
  • 0..9: Multiply top value by ten, then add the corresponding digit. «0»
  • +: Subtract. Takes two numbers, subtract them and push them back. «-1»
  • -: Add. Takes two numbers, subtract them and push them back. «-1»
  • /: Multiply. Takes two numbers, subtract them and push it back. «-1»
  • *: Divide. Takes two numbers, subtract them and push it back. «-1»
  • >: Moves top value to the next stack. «-1»
  • <: Moves top value to the previous stack. «-1»
  • £: Move the stack pointer one stack to the left.
  • ¥: Move the stack pointer one stack to the right.
  • %: Duplicate «+1»
  • $: Swap «0»
  • ^: Move bottom most value up «0»
  • v: Move top most value down. «0»
  • (: Start loop. If the top of the stack is 0, jump past ). «0»
  • ): End Loop. Jump back to matching (. «0»
  • o: Output as a number «0»
  • O: Output as a ASCII character «0»
  • i: Input as a number «+1»
  • I: Input as an ASCII character and push its value. «+1»

Programs

Truth Machine

i(o)o

Hello World!

€72O€101O€108%OO€111O€32O€119O€111O€114O€108O€100O€33O

Stack Pop Cheat

%+-

Computational Class

PAO is Turing Complete, as it can simulate BF.

BF PAO
+  €1-
-  €1$+
<  v
>  ^
.  O
,  >I
[] ()