Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you perhaps point to it? Sounds interesting to read that code!


Yes. 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/61148c98bdde871a8d3743f54b82...

https://gist.github.com/juskrey/127cf8456fc527d20ed5e244ce01...


Interesting, 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/61148c98bdde871a8d3743f54b82... has no colors after line ~108.


Not 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/metosin/tilakone

- https://github.com/cdorrat/reduce-fsm




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: