Skip to content

Instantly share code, notes, and snippets.

@ADCDS
Created November 30, 2018 11:45
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 ADCDS/25207dcf875d82b0ffb7fb1cf13f9931 to your computer and use it in GitHub Desktop.
Save ADCDS/25207dcf875d82b0ffb7fb1cf13f9931 to your computer and use it in GitHub Desktop.
name: anbn
source code: |
input: '<aaabbb'
blank: ' '
start state: start
table:
start:
<: {write: <, R: I}
I:
a: {write: a, R: B}
b: {write: b, R: A}
A:
B:
a: {write: a, R: B}
b: {write: x, L: C}
x: {write: x, R: B}
C:
a: {write: x, R: D}
x: {write: x, L: C}
D:
x: {write: x, L: D}
<: {write: <, R: E}
a: {write: a, L: T}
T:
a: {write: a, R: B}
b: {write: b, R: B}
x: {write: x, R: B}
<: {write: <, R: B}
E:
x: {write: x, R: E}
' ': {write: ' ', R: F}
F:
positions:
start: {x: 89.96, y: 262.78}
I: {x: 214.84, y: 257.99}
A: {x: 294.6, y: 178.17}
B: {x: 300.69, y: 345.1}
C: {x: 470.82, y: 341.76}
D: {x: 590.74, y: 343.32}
T: {x: 492.01, y: 439.54}
E: {x: 560.96, y: 201.09}
F: {x: 728.51, y: 200.91}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment