1 Gturing is a very simple turing machine simulator that takes a simple
2 ASCII file as its input:
4 Any empty line or any line beginning with a hash (#) is ignored. In other
5 case, five tokens, each separated by a space, are expected. These are the
6 state number, the expected symbol, the symbol to write, the direction to
7 move, and the new state. Anything following these tokens is ignored.
9 Expected symbols and symbols to write can be any printable character.
10 The blank character is represented by the underscore (_). States are
11 integer numbers, starting from 0. The possible directions to move are
12 left and right, represented by 'l' and 'r', respectively.
14 The machine starts at state 0 and stops when it cannot find the new
15 state or the new state doesn't expect the read symbol.