Skip to content

mlj/ruby-foma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foma

Gem Version Build Status

foma is a wrapper for the FOMA finite state library.

This wrapper only provides functions for loading an FSM and for invoking the operations apply up and apply down.

Ruby 2.4 or higher required.

Installation

gem install foma

or add the following line to your Gemfile

gem 'foma'

and run bundle install.

If the foma headers and library are installed in a non-standard location, you may have to specify the installation path, e.g

gem install foma -- --with-foma-include=$HOME/include --with-foma-lib=$HOME/lib

Usage

fsm = FOMA::FSM.new("fsm.bin")

fsm.apply_up("foo")
# => true

fsm.apply_down("bar")
# => true

fsm.apply_up("foo") do |d|
  puts d
end

Development

The project is hosted on GitHub.

License

MIT

About

A ruby wrapper for the FOMA finite state library

Resources

License

Stars

Watchers

Forks

Packages

No packages published