nklopstock611 / turing-machine-interpreter

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

Console Parameters #3

Open nklopstock611 opened 10 months ago

nklopstock611 commented 10 months ago

Add parameters like initial-state-char or length-of-tape.

nklopstock611 commented 10 months ago

added: --h := (Help) Prints the help message.

--tape-size := (Tape Size) Sets the size of the tape. Default is 256.

--initial-state-char := (Initial State Char) Sets the initial char of the tape. Default is '#'.

It could be cool to add some args that, for example, prints HC after each line or print the complete tape after each line!

nklopstock611 commented 10 months ago

added:

--show-full-tape := (Show Full Tape) Prints the complete tape after each instruction of the program is executed. The current position of the head is indicated by '[ ]'. Default is False.

nklopstock611 commented 10 months ago

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.