Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Finite state automatons
- module FST.AutomatonTypes
- data Automaton a
- class Convertable f where
- construct :: (FirstState, LastState) -> TransitionTable a -> Sigma a -> InitialStates -> FinalStates -> Automaton a
- rename :: Eq b => [(b, [(a, b)])] -> Sigma a -> [b] -> [b] -> StateTy -> Automaton a
- showAutomaton :: Show a => Automaton a -> String
Documentation
module FST.AutomatonTypes
Types
Data type for an automaton
Automaton construction
construct :: (FirstState, LastState) -> TransitionTable a -> Sigma a -> InitialStates -> FinalStates -> Automaton a Source
Construct an automaton
Actions on automatons
rename :: Eq b => [(b, [(a, b)])] -> Sigma a -> [b] -> [b] -> StateTy -> Automaton a Source
Convert automaton labelled with something other than
states to an Automaton
.
showAutomaton :: Show a => Automaton a -> String Source
Display the automaton