nklopstock611 / turing-machine-interpreter

Interpreter for a little Turing Machine like language.
1 stars 0 forks source link

New way to write string to evaluate #5

Closed nklopstock611 closed 10 months ago

nklopstock611 commented 10 months ago

Implement another way (maybe an optional argument on terminal) to write the string to be evaluated. The current way is not ideal...

nklopstock611 commented 10 months ago

done!

added: --string "<string>" := (String) If you want to pass a string to the program, use this argument. The string will be saved on the tape, starting on position 0.

example:

python tm.py examples/deterministic-turing-machines/zero_one_star.tm --tape-size 10 --show-full-tape --string "0101"