flow2dot-0.5.1: Library and binary to generate sequence/flow diagrams from plain text source

Text.FlowDiagram

Description

Converts flow diagrams to the Graphviz (Dot) files for subsequent rendering into nice pictures.

Synopsis

Documentation

flow2dot :: [Flow] -> StringSource

flow2dot take a list of flow diagram items (Flow) and converts them to Graphviz code

parseFlow :: String -> String -> [Flow]Source

Parse given string and return Flow Diagram contained therein. All syntax errors are thrown via error

parseFlowFromFile :: FilePath -> IO [Flow]Source

Parse specified file and return Flow Diagram contained therein. All syntax errors are thrown via error

showFlow :: Flow -> StringSource

Print element of the flow diagram as String

data Flow Source

Flow could include messages and actions, one item per source line

Constructors

Msg String String String

Message (from, to, message text). Syntax in the source file: from -> to: message text

Action String String

Action (actor, message text). Syntax in the source file: actor: message text

Instances