Third Party Contractor Accused Of A Robbery
(Redirected from TPCAR)
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
TPCAOAR...
...is a 2D esoteric language with only two commands ( and &)
: Just increments the TOS
&, though is a whole different story, and actually uses the value of the TOS (modulo 8)
| Value | Action |
|---|---|
| 0 | changes itself to the second-to-top thing on the stack |
| 1 | rotates direction counter-clockwise (ie. if facing North, goes West; facing West, goes South; etc.) |
| 2 | outputs char((TOS - 2) / 8) |
| 3 | multiplies ((TOS - 3) / 8) |
| 4 | pops this value; turns clockwise if the new TOS is nonzero, then pops that |
| 6 | clears the stack |
| 7 | appends 0 to the stack after turning this into a zero |
The program only terminates if the stack contains "911"
Examples
Print “A”
This one-dimensional program outputs the letter “A” by first incrementing the top stack element (TOS) to the value 522, which, ensuing from the formula
(TOS - 2) / 8
reduces to 65, concurring with the ASCII code of “A”; subsequently, the top element is modulated to the value 911, such immediately aborts the execution.
&
Interpreter
- Common Lisp implementation of the Third Party Contractor Accused Of A Robbery programming language.