language-gcl-0.0.1: Something similar to Dijkstra's guarded command language

Copyright(c) Stijn van Drongelen, 2014
LicenseMIT
Maintainerrhymoid@gmail.com
Stabilityexperimental
Portabilitymostly portable (deriving extensions)
Safe HaskellNone
LanguageHaskell2010

Language.GuardedCommands.Extended

Contents

Description

A simple extension to GCL, including assume, assert, and declaration and assignment of variables.

Synopsis

Abstract syntax

data ExtendedGCL name ty expr Source

Constructors

Declare [(name, ty)] (ExtendedGCL name ty expr) 
Assign [(name, expr)] 
Assume expr 
Assert expr 
GCL (GCL (ExtendedGCL name ty expr) expr) 

Instances

Typeable (* -> * -> * -> *) ExtendedGCL 
(Eq name, Eq ty, Eq expr) => Eq (ExtendedGCL name ty expr) 
(Data name, Data ty, Data expr) => Data (ExtendedGCL name ty expr) 

Parsing

pExtendedGCL :: (Monad m, TokenParsing m) => m name -> m ty -> m expr -> m (ExtendedGCL name ty expr) Source