Skip to content

Instantly share code, notes, and snippets.

@cogumbreiro
Last active October 16, 2019 21:45
Show Gist options
  • Save cogumbreiro/0612b8163bcb78c0f7ff70148cf07040 to your computer and use it in GitHub Desktop.
Save cogumbreiro/0612b8163bcb78c0f7ff70148cf07040 to your computer and use it in GitHub Desktop.
name: Example 3
source code: |
input: 'aabbcc'
blank: ' '
start state: S
table:
S:
'x': {R: S}
'a': {write: 'x', R: A}
' ': {R: accept}
A:
'a': R
'x': R
'b': {write: 'x', R: B}
B:
'b': R
'x': R
'c': {write: 'x', R: C}
C:
'c': R
'x': R
' ': {L: R}
R:
['a', 'b', 'x', 'c']: L
' ': {R: S}
accept:
positions:
S: {x: 299.88, y: 278.94}
A: {x: 461.94, y: 278.1}
B: {x: 388.19, y: 95.66}
C: {x: 220.84, y: 96.85}
R: {x: 125.16, y: 278.98}
accept: {x: 297.4, y: 415.88}
@cogumbreiro
Copy link
Author

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