it uses the same syntax used in the official turing competition in Italy. you can find the syntax here
it doesn't fully support the syntax expansion but is WIP! (here)
The data it reads and writes is case-sensitive!
Argument | Description | Parameter | Default | Optional |
---|---|---|---|---|
-t |
verbose | (Optional) float : seconds to wait between each instruction |
0.02 |
✅ |
-f |
read from a file | file path : the file path |
istruzioni.txt |
✅ |
./a.out -t
Verbose with default wait time
./a.out -t -f a.txt
Verbose with default wait time, reading from file
./a.out -f ./sadasd/fdksf/c.txt
Reading from file
./a.out -f ./sadasd/fdksf/c.txt -t 0.1
Reading from file with verbose and wait time 0.1s
istruzioni.txt
DJBPG
(0, [B..F][H..Z]G, 0, [A..E][G..Y]-, >)
First line: initial tape --> DJBPG
Everything below: instructions --> (0, [B..F][H..Z]G, 0, [A..E][G..Y]-, >)
You can find many examples in
problemi_risolti/
It works on every OS (in theory)
Just compile it with
g++ turing_simulator.cpp
If you're on Windows and it doesnt work, also add
-std=c++14
when compiling