diff options
| author | Shinya Sato <shinnya.sato@gmail.com> | 2024-03-28 06:31:05 +0900 |
|---|---|---|
| committer | Shinya Sato <shinnya.sato@gmail.com> | 2024-03-28 06:31:05 +0900 |
| commit | 457e14786a4fcfc79cac063dec3fe45825e7513c (patch) | |
| tree | 41b8343a59060242d010901a5a9242e3063b9537 | |
| parent | b79de45557d7a70ed415c910d5c8a9929bcd8953 (diff) | |
| download | inpla-457e14786a4fcfc79cac063dec3fe45825e7513c.tar.gz inpla-457e14786a4fcfc79cac063dec3fe45825e7513c.zip | |
Update TuringMachine.in
Diffstat (limited to '')
| -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) |
