fst-0.10.0.1: Finite state transducers

Safe HaskellSafe-Inferred
LanguageHaskell98

FST.Automaton

Contents

Description

Finite state automatons

Synopsis

Documentation

Types

data Automaton a Source

Data type for an automaton

Instances

AutomatonFunctions Automaton

Instance of AutomatonFunctions

Read a => Read (Automaton a) 
Show a => Show (Automaton a) 

class Convertable f where Source

Type class for conversion to/from an automaton

Methods

encode Source

Arguments

:: Eq a 
=> f a 
-> Automaton a

From an automaton to an structure

decode Source

Arguments

:: Eq a 
=> Automaton a 
-> f a

From a structure to an Automaton

Instances

Automaton construction

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