4 ms·
Can you perhaps point to it? Sounds interesting to read that code!
by harperlee 7y ago
Can you perhaps point to it? Sounds interesting to read that code!
- juskrey 7y agoYes. Can't share the whole repo (it's our internal product), but here are two files (FSM macro and FSM itself) you can explore. Let me know it that helps. https://gist.github.com/juskrey/61148c98bdde871a8d3743f54b822ae5 https://gist.github.com/juskrey/61148c98bdde871a8d3743f54b82... https://gist.github.com/juskrey/127cf8456fc527d20ed5e244ce01e312 https://gist.github.com/juskrey/127cf8456fc527d20ed5e244ce01...
- diggan 7y agoInteresting, thanks a lot for being able to share those examples! I think you managed to find a bug in the GitHub syntax highlighter, as https://gist.github.com/juskrey/61148c98bdde871a8d3743f54b822ae5 https://gist.github.com/juskrey/61148c98bdde871a8d3743f54b82... has no colors after line ~108.
- diggan 7y agoNot OP but there is tons of FSM implementations/libs in Clojure scattered around GitHub and GitLab if you search for them. Some of them: - https://github.com/ztellman/automat https://github.com/ztellman/automat - https://github.com/metosin/tilakone https://github.com/metosin/tilakone - https://github.com/cdorrat/reduce-fsm https://github.com/cdorrat/reduce-fsm