Documentation Syntax
General notations used for documentation.

plain text     Enter this literally, exactly as shown.
<argName> An argument that should be replaced with an appropriate value.
[entry]     This entry is optional.
[<argName=default>] An optional argument with a default value.
(entry|entry)     (Required) Pick one of the entries that is shown.
[entry|entry]     (Optional) Pick one of the entries that is shown.
entry ...     Prior entry repeats.

The M-tuples for all transition functions. Each one takes up a single line.
Components are seperated by a space

<currentState> <currentSymbol> <newState> <newSymbol> [<dimIndex> (-|=|+)] ...
The sign (-|=|+) following a dimension index indicates a negative move, no move, or a positive move.
Any number of dimension indicies can be specified given that they are all followed by a sign.
If a dimension is not specified, the head will not move across that dimension.
state0 A state1 B 0 + 1 = 3 -
Placed at the end of a delta to signify IDE intervention.
Does not impact how the TM++ code functions.

Creates a breakpoint for the delta function.
The IDE will pause whenever the delta function is used.

Comments at the top of the file used to load IDE settings.
Does not impact how the TM++ code functions.
Special types of comments that modify the behavior or appearence of the machine

#--view (<dim0Pos>|x|y|z) ... (<dimNPos>|x|y|z)

#--grid (true|false)
Show or hide the gridlines.

#--color (|grid|background|head) <primaryColor> []
Set the color of the given object.
If a symbol is provided with only a primary color, it will fill the entire cell.
Otherwise, it will apply the primary color to the background and the secondary color to the text.

#--key <keyName> <state>
When the machine is halted and the given key is pressed,
the state will be overident and the machine will start again.

#--start <state>
Sets the starting state of the machine.

#--halt <state>
Sets a halting state. The machine halts as soon as it reaches a halting state.

#--timeout <numIterations>
Sets the number of iterations that can occur before the machine forcefully halts.

#--tape (set|fill|print) <dim0Pos> ... <dimNPos> [<dim0Pos> ... <dimNPos>]
Generators are contained within curly braces and expand into multiple delta functions.
Arguments within a generator are seperated by commas, colons, and semicolons.
Generator Basics
{ (<value>|<slice>) [, ...] }
The syntax of a basic generator. Repeats for every listed value.

[] : <stop> [: ]
An element of a list that expands into one or more values.
Expands into all integers from inclusive to <stop> exclusive incrimenting by each time.
:5 => 0, 1, 2, 3, 4
:5: => 0, 1, 2, 3, 4
1:5 => 1, 2, 3, 4
:5:2 => 0, 2, 4
5::-1 => 5, 4, 3, 2, 1
:5:-1 =>

a {:3} b 0
a 0 b 0
a 1 b 0
a 2 b 0
a {:3,5} b 0
a 0 b 0
a 1 b 0
a 2 b 0
a 5 b 0
Generator Arguments
{ [<argName=items> :] <argValue> [; ...] }
Adds a argument to the generator that influences behavior.
The following are valid arguments:

items | @
Generators can only conatin arguments.
By default, the "items" argName is applied to any argument without one.
This is how basic generators are parsed and able to function.
{items: 0,:3} => {items: 0,0,1,2}
{@: 0,:3} => {items: 0,0,1,2}
{0,:3} => {items: 0,0,1,2}

track | &
Designate the track of the generator.
Generators with the same track are run in parallel.
Generators with different track are run for each value of the others.
The default track of a generator is equal to it's number of items preceded by an underscore.
a {track:0; 1,2} b {track:1; 3,4}
a 1 b 3
a 1 b 4
a 2 b 3
a 2 b 4
a {track:0; 1,2} b {track:0; 3,4}
a 1 b 3
a 2 b 4
a {1,2} b {3,4}
a 1 b 3
a 1 b 4
a {1,2} b {track:_2; 3,4}
a 1 b 3
a 1 b 4

symbols | %
Designate the symbols of the generator.
Symbols are sperated by a comma.
The symbol to use is calculated by the generator value mod the number of symbols
{symbols: a,b,c; 0,2,1} => {a, c, b}
{symbols: a,b,c; 1,4,-2} => {b, b, b}

store | ?
Save all arguments of the generator.
This includes the default track if it is used.
{store:myGen0; 0,1,2}
{store:myGen1; symbols:a,b; track:0; 1,2,4}

recall | $
Load all arguments from a stored generator that have not been specified by this generator.
{recall:myGen0} => {track:_3; items:0,1,2} => {0,1,2}
{recall:myGen1} => {symbols:a,b; track:0; items:1,2,4} => {b,a,a}
{recall:myGen0; symbols:x,y} => {symbols:x,y; track:_3; items:0,1,2} => {x,y,x}
{recall:myGen1; items:2,1,0} => {symbols:a,b; track:0; items:2,1,0} => {c,b,a}

Please login to post.