nklopstock611 / turing-machine-interpreter

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

Change Syntax (C Instruction) #6

Closed nklopstock611 closed 10 months ago

nklopstock611 commented 11 months ago

I want to make an instruction that calls other Turing Machines. I think C works better for that instruction.

I'm thinking to change the current C instruction to TO or GOTO (i'd prefer TO, it's shorter -> I don't want instructions to be more than two letters, except for HALT).

The syntax would be the same:

? '#' label
HALT

label:
W '$'
TO label

and

? '#' label
HALT

label:
C 'examples/simple-instructions/simple_writing.tm'
TO label
nklopstock611 commented 11 months ago

C instruction changed to TO.

nklopstock611 commented 10 months ago

Done!