Popularity
2.7
Growing
Activity
0.0
Stable
7
3
4

Monthly Downloads: 0
Programming language: Elixir
License: MIT License

exfsm alternatives and similar packages

Based on the "Algorithms and Data structures" category.
Alternatively, view exfsm alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of exfsm or a related project?

Add another 'Algorithms and Data structures' Package

README

ExFSM

Build Status

Simple elixir library to define composable FSM as function (not related at all with :gen_fsm, no state/process management).

  • define FSM with handler modules defining each transition as a simple function but using a macro deftrans which creates a function fsm returning the fsm transition map for this handler module.
  • deftrans has the same semantic as erlang in memory FSM gen_fsm
  • combine together multiple fsm handlers to create a "meta" FSM.
  • send event with the function event which simply find the right handler, execute the handler function.

Usage

See in in code documentation