Swordfish

Swordfish is a 2D language created by User:Numeri in 2013. It was based loosely off of ><>.

Name
It is called Swordfish to give homage to ><> and because swordfish sounds better than tunafish (yum!), catfish (complications with the meaning of a cat program), koi (though that would be cool), or Jaws (too cheesy). The official reason for its name is that it cuts away at the unnecessary parts of ><>; in reality, Swordfish is just simpler than ><> and isn't as versatile.

Mechanics
Like many two dimensional programming languages, Swordfish has a Instruction Pointer (IP) and a direction the IP travels in. In Swordfish, the IP can travel up, down, right, and left and it initializes at (0,0) heading right. If the it leaves the borders of the program, it will wrap around to the opposite side – left to right, top to bottom, and vice versa. To simplify things, each line must be the same length.

Data Structures
Available to the esoteric programmer (whether I was referring to your age or your language, you'll never know!) while programming in Swordfish are the following.


 * The stack, with a first-on last-off order
 * The current variable (var), which can hold anything you give it!
 * The register (reg), which acts as a secondary variable. It is as versatile as the var.

When a value is pushed onto the stack from the var, the var is cleared. When a value is pushed onto the stack from the reg, the reg retains its value.

Commands
All commands are a single character.

Any other character is added to var. If it is an integer and var holds an integer, var = var*10 + character's value. Otherwise append it the string in var.

Examples
Hello, World! Hello:, \ ,,/#;,,,W ,,\!dlro/

Hello, World! but more boring. Hello:, World!#;

This calculates triangular numbers, or in other words, outputs 1, 1+2, 1+2+3, 1+2+3+4, and etc. 1~[0,,,,,v ]+#~500$%\ 1]+~[@,,,\

A cat program >?#v ^,,<

Computational Class
Because a two-register Minsky Machine can be implemented in Swordfish, this language is Turing Complete. A way to see this is that every Minsky Machine can be encoded as a graph, which can then be translated to Swordfish easily.