HaLeX-1.2.2: HaLeX enables modelling, manipulation and animation of regular languages

Copyright(c) João Saraiva 2001,2002,2003,2004,2005
LicenseLGPL
Maintainerjas@di.uminho.pt
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Language.HaLex.FaAsDiGraph

Description

Finite Automata as Directed Graphs in GraphViz. Code Included in the Lecture Notes on Language Processing (with a functional flavour).

Synopsis

Documentation

ndfa2graphviz :: (Show a, Show sy, Ord a, Eq sy) => Ndfa a sy -> [Char] -> [Char] Source #

Print a Ndfa in GraphViz

ndfa2graphviz2file :: (Show a, Show sy, Ord a, Eq sy) => Ndfa a sy -> [Char] -> IO () Source #

Print a Ndfa in GraphViz in a file

dfa2graphviz :: (Show a, Show sy, Ord a, Eq sy) => Dfa a sy -> [Char] -> [Char] Source #

Print a Dfa in GraphViz

dfa2graphviz2file :: (Show a, Show sy, Ord a, Eq sy) => Dfa a sy -> [Char] -> IO () Source #

Print a Dfa in GraphViz in a file

tographviz Source #

Arguments

:: (Eq sy, Show sy, Ord st, Show st) 
=> Ndfa st sy

Automaton

-> [Char]

Graph's name

-> [Char]

Node's shape

-> [Char]

Orientation

-> (st -> [Char])

Show function to print the state ids

-> [Char] 

Print a Ndfa in GraphViz

tographvizIO :: (Show st, Show sy, Ord st, Eq sy) => Ndfa st sy -> [Char] -> [Char] -> [Char] -> (st -> [Char]) -> IO () Source #

dfa2DiGraphWithNoSyncSt :: (Show a, Show sy, Ord a, Eq sy) => Dfa a sy -> [Char] -> [Char] Source #

dfaDiGraphWithNoSyncStIO :: (Show a, Show sy, Ord a, Eq sy) => Dfa a sy -> [Char] -> FilePath -> IO () Source #

genOneArrow :: Show a => [Char] -> a -> [Char] -> [Char] Source #