Prepositional Calculus

From Esolang
Jump to navigation Jump to search

Prepositional Calculus is a 4x4-matrix-based-but-somehow-also-stack-based esolang by User:Ϫ that is designed to break your brain.

Commands

There are only two commands, Ϫ and ϫ, but they form 8 different sets of 3. Technically you can use any letter, using its upper and lowercase forms, but Ϫ is what I've used for this example.

  • ϫϪϪ increases the X-value. (loops over)
  • ϪϪϫ increases the Y-value. (loops over)
  • ϫϪϫ pushes the current cell value to the stack and outputs the value of the current cell.
  • ϪϪϪ resets the current cell.
  • ϫϫϪ increases the value of the current cell by 1 and also pushes the user's input to the stack.
  • Ϫϫϫ pops a value and adds it to the value of the current cell.
  • ϫϫϫ skips the next program if the top value in the stack is 0.
  • ϪϫϪ ends the program.

Misc. Syntax

If the program reaches the end without hitting a halt, it loops back around.

Programs

CAT

ϫϫϪ
ϪϪϪ
Ϫϫϫ
ϫϪϫ
ϫϫϫ
ϪϫϪ
Ϫϫϫ