Skip to content

Instantly share code, notes, and snippets.

@deciode
Created August 5, 2013 13:11
Show Gist options
  • Save deciode/6155815 to your computer and use it in GitHub Desktop.
Save deciode/6155815 to your computer and use it in GitHub Desktop.
msm=->s{s=[*s.chars];(e=s.shift;e==?;?s<<s[-1]:e==?:?s.concat(s.pop.split''):e==?,?s.pop: e==?/?s.insert(-2,s.pop):e==?.?s<<s.pop+s.pop: s<<(e!=?'?e:s.shift))while s[1];s}
@plugnburn
Copy link

Updated the implementation and article with new ? instruction, time to update your port ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment