jimmyhmiller / fsm-maker

Simple UI for making Finite State Machines
MIT License
16 stars 0 forks source link

Add finite states #1

Open Karlemami opened 1 year ago

Karlemami commented 1 year ago

Hi

Is there a way to add a final state ? For instance have the middle state be a possible final state as well; graphically make it a double circle.

jimmyhmiller commented 1 year ago

Sadly not with the current implementation of the library. This was a bit of a hack over an existing library (hence the :s in all the names). My graph-maker is less opinionated, but also more verbose syntax. The one thing I didn't add was graph attributes, so right now there is no way to make it go left to right.

I'd happily accept a PR if you are interested in doing so. Or help out in whatever way I can in making something for yourself. Also interested in what syntax you'd like for it.

I would say I'd add it, but if I'm honest with myself, I probably won't get around to it. These are tools I use for quick stuff. So unlikely I'll take the time to add features.