fst-0.10.0.1: Finite state transducers

Safe HaskellSafe-Inferred
LanguageHaskell98

FST.TransducerTypes

Contents

Description

Type system for transducers

Synopsis

Types

type StateTy = Int Source

A state

type FinalStates = [StateTy] Source

Final states

type FirstState = Int Source

First state

type LastState = Int Source

Last state

type Sigma a = [a] Source

The alphabet of an automaton

type Relation a = (Upper a, Lower a) Source

A relation between upper/lower languages

type Upper a = Symbol a Source

Upper language

type Lower a = Symbol a Source

Lower language

data Symbol a Source

A symbol

Constructors

S a 
Eps 

Instances

Eq a => Eq (Symbol a) 
Read a => Read (Symbol a) 
Show a => Show (Symbol a) 

type TTransitions a = [(Relation a, StateTy)] Source

Transducer transitions

type TTransitionTable a = [(StateTy, [(Relation a, StateTy)])] Source

Transducer transition table

type InitialStates = [StateTy] Source

Initial states

class TransducerFunctions f where Source

Class of TransducerFunctions