Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Converts flow diagrams to the Graphviz (Dot) files for subsequent rendering into nice pictures.
Documentation
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
Flow could include messages and actions, one item per source line
Msg Swimline Swimline String | Message (from, to, message text). Syntax in the source file: |
Action Swimline String | Action (actor, message text). Syntax in the source file: |
Order [Swimline] | Tries to put swimlines in the specified order. Syntax: |