Full Keyword List

Keyword
Description
Usage
Scope

awareness

Prints the machine's awareness.

setCommand( ... ?awareness() ... );

Future

AWARENESS

Set a command's awareness.

setCommand( AWARENESS=0, PAGE=0, ... );

Future

const

Set a constant in the program.

const myValue = 3;

Present

define

Set a macro.

define(MACHINE_SYMBOL, "!"); define("!print("Tape:");!print();", "out;");

Present

goToPage

Moves the machine to a page.

setCommand( ... ?goToPage(10) ... );

Future

move

Move the head of the machine

move(3); or ?move(3)

Present, Future

nextSection

Move right to the next section marker (#).

setCommand( ... ?nextSection() ... );

Future

PAGE

Set a command's page number.

setCommand( AWARENESS=0, PAGE=1, ... );

Future

position

Prints the machine's awareness.

setCommand( ... ?position() ... );

Future

prevSection

Move left to the next section marker (#).

setCommand( ... ?prevSection() ... );

Future

print

Print out the tape (if no args) or the args.

print();, print("Hello");, ?print();, ?print("Hello);

Present, Future

readTape

Prints out what the head currently reads on the tape

setCommand( ... ?readTape() ... );

Future

run

Executes the machine.

run();

Present

setCommand

Creates a command at a page/awareness combination.

setCommand( PAGE=0, AWARENESS=0 ... );

Present

setPosition

Sets the starting position of the machine.

setPosition(0);

Present

setTape

Sets the tape at the current position to a value.

setCommand( ... ?setTape(3) ... );

Future

setValues

Set the starting values of the Turing machine.

setValues(# 1 0 9 -4 # 4);

Present

stop

Halts the execution of the Turing machine.

setCommand( ... ?stop() );

Future

Last updated