|
|
State: |
»_«
This is based on this turing machine
simulator. It is a rewrite using my programming style.
Setup
- use space-sepreated values with one
value prefixed with "][" to place the head0li>
- the symbol "???" is reserved for wildcard, using it will give undesired results
Language
- The commands are in the order of <current state> <current symbol> <new symbol>
<direction> <new state>
- States can be any string, excluding those that start with semicolons.
- Symbols can be any string excluding those that start with "][".
- When <current symbol> is the symbol "???", it behaves like a wildcard.
- <direction> can be "l", "h", "r", "il", or "ir" for left, hold, right, insert left, and insert
right
respectively.
- "???" can be used in <new symbol> to prevent the machine from writting.
In this state, "il" and
"ir" are replaced with "dl" and "dr" for deleting
- If a line starts with a semicolon, then the line is a comment.
- Any text after a command is ignored and therefor is also a comment.
- If two or more lines start with the same state and symbol, then the last one will be used.