User:DavidKendal/Unindexed

Unindexed is a programming language based around the concept of a stack of 3" by 5" index cards. Anything can be written on these cards, and the contents can be shown upon the screen. The top card in this stack is always the current one.

Here is "Hello world!" in Unindexed:

new Hello world! show

Instructions
In addition to these instructions, anything else which is found is written on the card on top, replacing anything already written on it. If an equation is found, such as 2+2, 5-2, 5*6 or 6/3, then it should be worked out and the result added to the stack instead. Other cards can be referenced in such cases by adding a # in front of the number, e.g. to reference the card whose index is set to 65, use #65.

The escape character for if you actually want to write a hash in front of a number, or actually want to write an equation to a card, is \. If you want to write "3+4" on the card, use 3\+4. If you want to write that to a card, use 3\\+4, etc. The same applies to index-references: \#64, \\#64, etc.

Turing-complete?
Hopefully.

Multiply two numbers together
new input index 1 new input index 2 new show
 * 1) 1 * #2