HaLeX-1.2.6: HaLeX enables modelling, manipulation and visualization of regular languages

Copyright(c) João Saraiva 20012002200320042005 2016
LicenseLGPL
Maintainersaraiva@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 :: (Eq sy, Show a, Show sy, Ord a) => Ndfa a sy -> [Char] -> [Char] Source #

Print a Ndfa in GraphViz

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

Print a Ndfa in GraphViz in a file

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

Print a Dfa in GraphViz

dfa2graphviz2file :: (Eq sy, Ord a, Show sy, Show a) => 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/dot notation (default function)

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

-> (sy -> [Char])

Show function to print the labels

-> Bool

Show dead states?

-> Bool

Show sync states?

-> [Char] 

Print a Ndfa in GraphViz/dot notation

tographvizIO 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

-> IO () 

Save a Ndfa in a GraphViz/dot file (default function)

tographvizIO' 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

-> (sy -> [Char])

Show function to print the labels

-> Bool

Show dead states?

-> Bool

Show sync states?

-> IO () 

Save a Ndfa in a GraphViz/dot file

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

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