Last active
June 2, 2020 00:25
-
-
Save blackmius/86ed874c4995a08da497971eb25e79f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: remove last symbol | |
source code: | | |
input: 'babbaababbb' | |
blank: ' ' | |
start state: right | |
table: | |
# scan to the rightmost symbol | |
right: | |
['a','b']: R | |
' ' : {L: clear} | |
# then carry the 1 | |
clear: | |
' ' : {L} | |
['a','b']: {write: ' ', L: done} | |
done: | |
positions: | |
right: {x: 230, y: 250} | |
clear: {x: 390.36, y: 249.99, fixed: false} | |
done: {x: 570, y: 250} | |
editor contents: |- | |
input: 'babbaababbb' | |
blank: ' ' | |
start state: right | |
table: | |
# scan to the rightmost symbol | |
right: | |
['a','b']: R | |
' ' : {L: clear} | |
# then remove the last | |
clear: | |
' ' : {L} | |
['a','b']: {write: ' ', L: done} | |
done: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment