Skip to content

Instantly share code, notes, and snippets.

@ADCDS
Created November 30, 2018 12:05
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/e973706d41116e7d688d7aec55f21f68 to your computer and use it in GitHub Desktop.
Save ADCDS/e973706d41116e7d688d7aec55f21f68 to your computer and use it in GitHub Desktop.
name: concat_w
source code: |
input: '<aaaaa'
blank: ' '
start state: start
table:
start:
<: {write: <, R: A}
A:
a: {write: x, R: B}
y: {write: y, R: D}
B:
a: {write: a, R: B}
y: {write: y, R: B}
' ': {write: y, L: C}
C:
a: {write: a, L: C}
y: {write: y, L: C}
x: {write: x, R: A}
D:
y: {write: y, R: D}
' ': {write: ' ', L: E}
E:
x: {write: a, L: E}
y: {write: a, L: E}
<: {write: <, R: F}
F:
positions:
start: {x: 197.21, y: 245.67}
A: {x: 322.68, y: 223.66}
B: {x: 449.45, y: 96.96}
C: {x: 615.99, y: 213.07}
D: {x: 341.25, y: 398.8}
E: {x: 521.38, y: 402.48}
F: {x: 760.49, y: 401.74}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment