Skip to content

Instantly share code, notes, and snippets.

@cogumbreiro
Last active October 19, 2019 22:15
Show Gist options
  • Save cogumbreiro/a4c7e6e42a02e0f5ca7d1c70268134a6 to your computer and use it in GitHub Desktop.
Save cogumbreiro/a4c7e6e42a02e0f5ca7d1c70268134a6 to your computer and use it in GitHub Desktop.
name: Example 2
source code: |
input: '0011'
blank: ' '
start state: S
table:
S:
0: {write: 'x', R: B}
'y': {write: 'y', R: D}
' ': {write: ' ', L: accept}
B:
0: {write: '0', R: B}
'y': {write: 'y', R: B}
'1': {write: 'y', L: C}
C:
0: {write: '0', L: C}
'y': {write: 'y', L: C}
'x': {write: 'x', R: S}
D:
'y': {write: 'y', R: D}
' ': {write: ' ', L: accept}
accept:
positions:
S: {x: 335.65, y: 297.07}
B: {x: 139.85, y: 298.91}
C: {x: 245.13, y: 193.27, fixed: false}
D: {x: 436.38, y: 191.53, fixed: false}
accept: {x: 527.4, y: 298.8}
@cogumbreiro
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment