Skip to content

Instantly share code, notes, and snippets.

@mattecapu
Last active April 28, 2022 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattecapu/05b73de1799f190575bc1de83242ad06 to your computer and use it in GitHub Desktop.
Save mattecapu/05b73de1799f190575bc1de83242ad06 to your computer and use it in GitHub Desktop.
name: exam simulation
source code: |
input: 'aaaabb'
blank: ' '
start state: q0
table:
q0:
'a' : {write: 'b', R: q1}
'b' : {R: rej}
' ' : {R: rej}
q1:
'a' : {write: 'b', R: q1}
'b' : {write: 'a', R: acc}
' ' : {write: 'b', R: rej}
acc:
'a' : {R: rej}
'b' : {R: rej}
rej:
positions:
q0: {x: 349.47, y: 360.44, fixed: false}
q1: {x: 472.23, y: 289.63, fixed: false}
acc: {x: 466.01, y: 148.05, fixed: false}
rej: {x: 345.2, y: 219.93, fixed: false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment