| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Trans.Diagram2Copilot
Description
Transform a state diagram into a Copilot specification.
Synopsis
- data DiagramMode
- diagram2CopilotSpec :: Diagram -> DiagramMode -> (String, String)
- diagram2Copilot :: Diagram -> String
Documentation
data DiagramMode Source #
Modes of operation.
Constructors
| CheckState | Check if given state matches expectation |
| ComputeState | Compute expected state |
| CheckMoves | Check if transitioning to a state would be possible. |
Instances
| Show DiagramMode Source # | |
Defined in Language.Trans.Diagram2Copilot | |
| Eq DiagramMode Source # | |
Defined in Language.Trans.Diagram2Copilot Methods (==) :: DiagramMode -> DiagramMode -> Bool Source # (/=) :: DiagramMode -> DiagramMode -> Bool Source # | |
diagram2CopilotSpec :: Diagram -> DiagramMode -> (String, String) Source #
Convert the diagram into a set of Copilot definitions, and a list of indented trigger definitions to include in the Copilot spec.
diagram2Copilot :: Diagram -> String Source #
Convert the diagram into a set of Copilot definitions.