Skip to content

Instantly share code, notes, and snippets.

@connorjclark
Created June 18, 2021 21:43
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 connorjclark/5d458e9ec1160cecf5ef2a780c1f9a79 to your computer and use it in GitHub Desktop.
Save connorjclark/5d458e9ec1160cecf5ef2a780c1f9a79 to your computer and use it in GitHub Desktop.
cfg twitter fun
http://ivanzuzak.info/noam/webapps/fsm2regex/
result:
r(u(l(d(rd)*l)*u)*r)*u(l(d(rd)*l)*u)*l(d(rd)*l)*(d+d(rd)*($+rd))
#states
s1
s2
s3
s4
s5
s6
#initial
s1
#accepting
s5
#alphabet
r
l
u
d
#transitions
s1:r>s2
s2:u>s3
s3:r>s2
s3:l>s4
s4:u>s3
s4:d>s5
s5:r>s6
s5:l>s4
s6:d>s5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment