diff options
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/turing_machine/TuringMachine.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/turing_machine/TuringMachine.in b/sample/turing_machine/TuringMachine.in index 260f609..1f87bc0 100644 --- a/sample/turing_machine/TuringMachine.in +++ b/sample/turing_machine/TuringMachine.in @@ -1,7 +1,7 @@ // ------------------------------------------------------------- // Turing Machine // ------------------------------------------------------------- -// Every 1 on tapes becomes 0. +// Every 1 on the tape becomes 0. // It finishes when the head reads a tape cell whose value is 0. // // Rule @@ -22,7 +22,7 @@ // getRule // rule << getRule( (int state, int sym) ) // NOTE: getRule needs a pair (state, sym). -// So it should be called such as +// So it should be called like this: // ret << getRule( (state, sym) ); // ----------------------------------------- @@ -126,6 +126,6 @@ allCycle(r) >< STOP_Configure(tape, state, headPos) => // main // ----------------------------------------- -configure ~ Configure([1,1,1,1,1,0], 0, 0), //(tape, state, headPos) -r << allCycle(configure); +conf ~ Configure([1,1,1,1,1,0], 0, 0), //(tape, state, headPos) +r << allCycle(conf); r; // -->* Configure([0,0,0,0,0,0,0],2,5) |
