DEV Community

Discussion on: Side Project Sunday! Hacking on anything?

Collapse
 
bertilmuth profile image
Bertil Muth

A language for describing simple behavior, hierarchical state machines and workflows.

Collapse
 
drsensor profile image
૮༼⚆︿⚆༽つ
Collapse
 
bertilmuth profile image
Bertil Muth

Interesting, thanks for sharing. I‘ll have a look at it - at first it looks a bit like what PlantUML is doing, in case you know that. My project focuses mainly on the execution of the behavior.

Thread Thread
 
drsensor profile image
૮༼⚆︿⚆༽つ

Cool! Let me know when it's open. My past project focus more on the semantic analysis to avoid invalid/non-deterministic state-transition. As for syntax, I took inspiration from drawing language like PlantUML, graphviz, and state-machine-cat. The only difference is that the arrow can be either reversed or bidirectional.

Off   <-> On    @ Toggle
Close <-- On    @ Exit
Off   --> Panic @ Exit
Enter fullscreen mode Exit fullscreen mode

This simple change in arrow syntax make it easy to refactor and prototype a state machine.

Thread Thread
 
bertilmuth profile image
Bertil Muth

The very first version of Act, my state machine library, is now online on Github. See the following post.