Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LOAD AN EXAMPLE TO TRY
- //then load an input and click play
- //Syntax:
- //-------CONFIGURATION
- name: [name_of_machine]
- init: q0
- accept: q6
- //-------DELTA FUNCTION:
- //[current_state],[read_symbol]
- //[new_state],[write_symbol],[>|<|-]
- q0,1
- q0,1,>
- q0,0
- q0,X,>
- q0,_
- q1,_,<
- q1,0
- q1,0,<
- q1,1
- q1,1,<
- q1,e
- q1,e,<
- q1,_
- q5,_,>
- q1,X
- q2,1,<
- q2,0
- q2,0,<
- q2,1
- q2,1,<
- q2,X
- q2,X,<
- q2,e
- q2,e,<
- q2,_
- q3,_,>
- q3,0
- q3,0,>
- q3,X
- q3,X,>
- q3,e
- q3,e,>
- q3,1
- q4,e,>
- q4,0
- q4,0,>
- q4,1
- q4,1,>
- q4,X
- q4,X,>
- q4,e
- q4,e,>
- q4,_
- q1,_,<
- q5,e
- q5,_,>
- q5,1
- q5,1,>
- q5,_
- q6,_,-
- // < = left
- // > = right
- // - = hold
- // use underscore for blank cells
- //States and symbols are case-sensitive
- //Load your code and click COMPILE.
- //or load an example (top-right).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement