SHARE
TWEET

TM

Vercility Aug 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //LOAD AN EXAMPLE TO TRY
  2. //then load an input and click play
  3.  
  4. //Syntax:
  5.  
  6. //-------CONFIGURATION
  7. name: [name_of_machine]
  8. init: q0
  9. accept: q6
  10.  
  11. //-------DELTA FUNCTION:
  12. //[current_state],[read_symbol]
  13. //[new_state],[write_symbol],[>|<|-]
  14. q0,1
  15. q0,1,>
  16.  
  17. q0,0
  18. q0,X,>
  19.  
  20. q0,_
  21. q1,_,<
  22.  
  23. q1,0
  24. q1,0,<
  25.  
  26. q1,1
  27. q1,1,<
  28.  
  29. q1,e
  30. q1,e,<
  31.  
  32. q1,_
  33. q5,_,>
  34.  
  35. q1,X
  36. q2,1,<
  37.  
  38. q2,0
  39. q2,0,<
  40.  
  41. q2,1
  42. q2,1,<
  43.  
  44. q2,X
  45. q2,X,<
  46.  
  47. q2,e
  48. q2,e,<
  49.  
  50. q2,_
  51. q3,_,>
  52.  
  53. q3,0
  54. q3,0,>
  55.  
  56. q3,X
  57. q3,X,>
  58.  
  59. q3,e
  60. q3,e,>
  61.  
  62. q3,1
  63. q4,e,>
  64.  
  65. q4,0
  66. q4,0,>
  67.  
  68. q4,1
  69. q4,1,>
  70.  
  71. q4,X
  72. q4,X,>
  73.  
  74. q4,e
  75. q4,e,>
  76.  
  77. q4,_
  78. q1,_,<
  79.  
  80. q5,e
  81. q5,_,>
  82.  
  83. q5,1
  84. q5,1,>
  85.  
  86. q5,_
  87. q6,_,-
  88.  
  89. // < = left
  90. // > = right
  91. // - = hold
  92. // use underscore for blank cells
  93.  
  94. //States and symbols are case-sensitive
  95.  
  96. //Load your code and click COMPILE.
  97. //or load an example (top-right).
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top