The comment indicator
Directives indicating acceptable halting commands, other than the default halt command
The tape initializer indicator
The initial state indicator
List of
Allowed characters with special meaning:
Allowed characters with special meaning:
1. Lines starting with 'DirectiveChar' ('#') - Directives indicating acceptable halting commands, other than the default halt command
2. Lines starting with 'CommentChar' (';') - Discarded as comments. Well, it is a Turing Machine Code program after all, so the assembler style is employed
3. Lines having a 'CommentChar' (';') in the middle - Only the part to the left is processed, rest is discarded as an inline comment
4. Line starting with 'InitialStateChar' ('~') - The initial state indicator
5. Line starting with 'FillerChar' ('@') - The tape initializer
This String
is split by whitespace after trimming indicator to get filler
String
s,
which are repeated in order to fill up the tape
Without such a line, the tape is initialized to logical blanks, represented by null
6. Empty Lines - Ignored and discarded
Raw Seq
of String
s of a Turing Machine Code
program
the (fixed) size of the tape. Wraparound is enabled
An UniversalTuringMachine object for evaluation of the argument program
Represents a universal Turing Machine