Skip to content

Instantly share code, notes, and snippets.

@ADCDS
Created November 30, 2018 12:49
Show Gist options
  • Save ADCDS/f9b7880cb1d56c197335aa4a884036fb to your computer and use it in GitHub Desktop.
Save ADCDS/f9b7880cb1d56c197335aa4a884036fb to your computer and use it in GitHub Desktop.
input: '<0011001001110'
blank: ' '
start state: start
table:
start:
<: {write: <, R: q0}
q0:
0: {write: 0, R: q0}
1: {write: 1, R: q1}
' ': {write: ' ', R: accept}
q1:
0: {write: 0, R: q0}
1: {write: 1, R: q1}
accept:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment