home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pyth_os2.zip
/
python-1.0.2
/
Demo
/
turing
/
add.tm
next >
Wrap
Text File
|
1994-03-02
|
251b
|
11 lines
;
; This turing machine takes two sequences of a's and adds them together.
; The output is always at the start of the tape.
<1, 'a'> --> <1, R>
<1, ','> --> <2, 'a'>
<1, ' '> --> <0, ' '>
<2, 'a'> --> <2, R>
<2, ' '> --> <3, L>
<3, 'a'> --> <0, ' '>