fsm
Version, currently master branch1 version
- master branchlatestApr 2, 2017
github.com/N0r1x/fsm
A finite state machine library in Crystal
Installation
# Add this to your shard.yml
dependencies:
fsm:
github: N0r1x/fsm
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.21.1- License
- MIT
- Author
- N0r1x
- Target
testfrom example/test.cr
Dependencies
This version declares no dependencies.
README
fsm
A finite state machine library
Installation
Add this to your application's shard.yml:
dependencies:
fsm:
github: N0r1x/fsm
Usage
require "fsm"
Include Fsm
Include the module Fsm to be able to access it's class FiniteStateMachine. You need to input the branches of the states in a tuple of form id : String | input : T| id_of_next_state_if_input| output :O The program will crash if input is submitted that the current state can't handle.
Development
Add a Moore machine class as well. Check input.
Contributing
- Fork it ( https://github.com/N0r1x/fsm/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- N0r1x N0r1x - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 2, 2017
- Crystal
0.21.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/N0r1x/fsm
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1