How to use

 

Text mode

$ python tm.py <tmdescription.tm> <input.tape>

or

$ python tm.py <tmdescription.tm> 

The commands available are

s/s#     Single step or step # steps
t ###    Sets a new tape
r          Resets machine
R        Reloads machine and tape from files
g        Executes a LARGE number of step not showing a trace

Graphical Interface

It is developed with the wxPython GUI. To run

$ python wxTM.py

It allows the execution of a Turing machine. A Turing machine description file must be opened and an input string given. The start blue arrow loads the string into the turing machine tape, and the red arrow steps the execution (the number of steps can be set). Traced steps are shown in the log window.

An external editor can be called, if exists. The global variable EDITOR, in file wxTMFrame.py, contains the path and can be edited. By default gedit is called.
http://wxpython.orghttp://livepage.apple.com/http://www.ncc.up.pt/~rvr/FAdo/TM_examples/an2.tmshapeimage_2_link_0shapeimage_2_link_1