{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module      :  ./CspCASL/AS_CspCASL.der.hs
Description :  Abstract syntax fo CspCASL
Copyright   :  (c) Markus Roggenbach and Till Mossakowski and Uni Bremen 2004
License     :  GPLv2 or higher, see LICENSE.txt

Maintainer  :  a.m.gimblett@swan.ac.uk
Stability   :  provisional
Portability :  portable

Abstract syntax of CSP-CASL processes.

-}
module CspCASL.AS_CspCASL where

import Common.Id
import Common.AS_Annotation (Annoted)

import CASL.AS_Basic_CASL (SORT, VAR, VAR_DECL)

import CspCASL.AS_CspCASL_Process

import Data.Data

-- DrIFT command
{-! global: GetRange !-}

data CspBasicExt
  = Channels [Annoted CHANNEL_DECL] Range
  | ProcItems [Annoted PROC_ITEM] Range
  deriving (Int -> CspBasicExt -> ShowS
[CspBasicExt] -> ShowS
CspBasicExt -> String
(Int -> CspBasicExt -> ShowS)
-> (CspBasicExt -> String)
-> ([CspBasicExt] -> ShowS)
-> Show CspBasicExt
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CspBasicExt] -> ShowS
$cshowList :: [CspBasicExt] -> ShowS
show :: CspBasicExt -> String
$cshow :: CspBasicExt -> String
showsPrec :: Int -> CspBasicExt -> ShowS
$cshowsPrec :: Int -> CspBasicExt -> ShowS
Show, Typeable, Typeable CspBasicExt
Constr
DataType
Typeable CspBasicExt =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> CspBasicExt -> c CspBasicExt)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c CspBasicExt)
-> (CspBasicExt -> Constr)
-> (CspBasicExt -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c CspBasicExt))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c CspBasicExt))
-> ((forall b. Data b => b -> b) -> CspBasicExt -> CspBasicExt)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r)
-> (forall u. (forall d. Data d => d -> u) -> CspBasicExt -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> CspBasicExt -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt)
-> Data CspBasicExt
CspBasicExt -> Constr
CspBasicExt -> DataType
(forall b. Data b => b -> b) -> CspBasicExt -> CspBasicExt
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CspBasicExt -> c CspBasicExt
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CspBasicExt
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> CspBasicExt -> u
forall u. (forall d. Data d => d -> u) -> CspBasicExt -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CspBasicExt
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CspBasicExt -> c CspBasicExt
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c CspBasicExt)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CspBasicExt)
$cProcItems :: Constr
$cChannels :: Constr
$tCspBasicExt :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
gmapMp :: (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
gmapM :: (forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> CspBasicExt -> m CspBasicExt
gmapQi :: Int -> (forall d. Data d => d -> u) -> CspBasicExt -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> CspBasicExt -> u
gmapQ :: (forall d. Data d => d -> u) -> CspBasicExt -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> CspBasicExt -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CspBasicExt -> r
gmapT :: (forall b. Data b => b -> b) -> CspBasicExt -> CspBasicExt
$cgmapT :: (forall b. Data b => b -> b) -> CspBasicExt -> CspBasicExt
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CspBasicExt)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CspBasicExt)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c CspBasicExt)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c CspBasicExt)
dataTypeOf :: CspBasicExt -> DataType
$cdataTypeOf :: CspBasicExt -> DataType
toConstr :: CspBasicExt -> Constr
$ctoConstr :: CspBasicExt -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CspBasicExt
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CspBasicExt
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CspBasicExt -> c CspBasicExt
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CspBasicExt -> c CspBasicExt
$cp1Data :: Typeable CspBasicExt
Data)

data CHANNEL_DECL = ChannelDecl [CHANNEL_NAME] SORT
  deriving (Int -> CHANNEL_DECL -> ShowS
[CHANNEL_DECL] -> ShowS
CHANNEL_DECL -> String
(Int -> CHANNEL_DECL -> ShowS)
-> (CHANNEL_DECL -> String)
-> ([CHANNEL_DECL] -> ShowS)
-> Show CHANNEL_DECL
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CHANNEL_DECL] -> ShowS
$cshowList :: [CHANNEL_DECL] -> ShowS
show :: CHANNEL_DECL -> String
$cshow :: CHANNEL_DECL -> String
showsPrec :: Int -> CHANNEL_DECL -> ShowS
$cshowsPrec :: Int -> CHANNEL_DECL -> ShowS
Show, Typeable, Typeable CHANNEL_DECL
Constr
DataType
Typeable CHANNEL_DECL =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> CHANNEL_DECL -> c CHANNEL_DECL)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c CHANNEL_DECL)
-> (CHANNEL_DECL -> Constr)
-> (CHANNEL_DECL -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c CHANNEL_DECL))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c CHANNEL_DECL))
-> ((forall b. Data b => b -> b) -> CHANNEL_DECL -> CHANNEL_DECL)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r)
-> (forall u. (forall d. Data d => d -> u) -> CHANNEL_DECL -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> CHANNEL_DECL -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL)
-> Data CHANNEL_DECL
CHANNEL_DECL -> Constr
CHANNEL_DECL -> DataType
(forall b. Data b => b -> b) -> CHANNEL_DECL -> CHANNEL_DECL
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CHANNEL_DECL -> c CHANNEL_DECL
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CHANNEL_DECL
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> CHANNEL_DECL -> u
forall u. (forall d. Data d => d -> u) -> CHANNEL_DECL -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CHANNEL_DECL
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CHANNEL_DECL -> c CHANNEL_DECL
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c CHANNEL_DECL)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CHANNEL_DECL)
$cChannelDecl :: Constr
$tCHANNEL_DECL :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
gmapMp :: (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
gmapM :: (forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> CHANNEL_DECL -> m CHANNEL_DECL
gmapQi :: Int -> (forall d. Data d => d -> u) -> CHANNEL_DECL -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> CHANNEL_DECL -> u
gmapQ :: (forall d. Data d => d -> u) -> CHANNEL_DECL -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> CHANNEL_DECL -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> CHANNEL_DECL -> r
gmapT :: (forall b. Data b => b -> b) -> CHANNEL_DECL -> CHANNEL_DECL
$cgmapT :: (forall b. Data b => b -> b) -> CHANNEL_DECL -> CHANNEL_DECL
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CHANNEL_DECL)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c CHANNEL_DECL)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c CHANNEL_DECL)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c CHANNEL_DECL)
dataTypeOf :: CHANNEL_DECL -> DataType
$cdataTypeOf :: CHANNEL_DECL -> DataType
toConstr :: CHANNEL_DECL -> Constr
$ctoConstr :: CHANNEL_DECL -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CHANNEL_DECL
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c CHANNEL_DECL
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CHANNEL_DECL -> c CHANNEL_DECL
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> CHANNEL_DECL -> c CHANNEL_DECL
$cp1Data :: Typeable CHANNEL_DECL
Data)

data PROC_ITEM
  = Proc_Decl PROCESS_NAME PROC_ARGS PROC_ALPHABET
  | Proc_Defn PROCESS_NAME [VAR_DECL] PROC_ALPHABET PROCESS
  | Proc_Eq PARM_PROCNAME PROCESS
    deriving (Int -> PROC_ITEM -> ShowS
[PROC_ITEM] -> ShowS
PROC_ITEM -> String
(Int -> PROC_ITEM -> ShowS)
-> (PROC_ITEM -> String)
-> ([PROC_ITEM] -> ShowS)
-> Show PROC_ITEM
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PROC_ITEM] -> ShowS
$cshowList :: [PROC_ITEM] -> ShowS
show :: PROC_ITEM -> String
$cshow :: PROC_ITEM -> String
showsPrec :: Int -> PROC_ITEM -> ShowS
$cshowsPrec :: Int -> PROC_ITEM -> ShowS
Show, Typeable, Typeable PROC_ITEM
Constr
DataType
Typeable PROC_ITEM =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> PROC_ITEM -> c PROC_ITEM)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c PROC_ITEM)
-> (PROC_ITEM -> Constr)
-> (PROC_ITEM -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c PROC_ITEM))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PROC_ITEM))
-> ((forall b. Data b => b -> b) -> PROC_ITEM -> PROC_ITEM)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r)
-> (forall u. (forall d. Data d => d -> u) -> PROC_ITEM -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> PROC_ITEM -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM)
-> Data PROC_ITEM
PROC_ITEM -> Constr
PROC_ITEM -> DataType
(forall b. Data b => b -> b) -> PROC_ITEM -> PROC_ITEM
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PROC_ITEM -> c PROC_ITEM
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PROC_ITEM
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> PROC_ITEM -> u
forall u. (forall d. Data d => d -> u) -> PROC_ITEM -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PROC_ITEM
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PROC_ITEM -> c PROC_ITEM
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PROC_ITEM)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PROC_ITEM)
$cProc_Eq :: Constr
$cProc_Defn :: Constr
$cProc_Decl :: Constr
$tPROC_ITEM :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
gmapMp :: (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
gmapM :: (forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PROC_ITEM -> m PROC_ITEM
gmapQi :: Int -> (forall d. Data d => d -> u) -> PROC_ITEM -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> PROC_ITEM -> u
gmapQ :: (forall d. Data d => d -> u) -> PROC_ITEM -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> PROC_ITEM -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PROC_ITEM -> r
gmapT :: (forall b. Data b => b -> b) -> PROC_ITEM -> PROC_ITEM
$cgmapT :: (forall b. Data b => b -> b) -> PROC_ITEM -> PROC_ITEM
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PROC_ITEM)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PROC_ITEM)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c PROC_ITEM)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PROC_ITEM)
dataTypeOf :: PROC_ITEM -> DataType
$cdataTypeOf :: PROC_ITEM -> DataType
toConstr :: PROC_ITEM -> Constr
$ctoConstr :: PROC_ITEM -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PROC_ITEM
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PROC_ITEM
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PROC_ITEM -> c PROC_ITEM
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PROC_ITEM -> c PROC_ITEM
$cp1Data :: Typeable PROC_ITEM
Data)

data PARM_PROCNAME
  = ParmProcname FQ_PROCESS_NAME [VAR]
    deriving (Int -> PARM_PROCNAME -> ShowS
[PARM_PROCNAME] -> ShowS
PARM_PROCNAME -> String
(Int -> PARM_PROCNAME -> ShowS)
-> (PARM_PROCNAME -> String)
-> ([PARM_PROCNAME] -> ShowS)
-> Show PARM_PROCNAME
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PARM_PROCNAME] -> ShowS
$cshowList :: [PARM_PROCNAME] -> ShowS
show :: PARM_PROCNAME -> String
$cshow :: PARM_PROCNAME -> String
showsPrec :: Int -> PARM_PROCNAME -> ShowS
$cshowsPrec :: Int -> PARM_PROCNAME -> ShowS
Show, Typeable, Typeable PARM_PROCNAME
Constr
DataType
Typeable PARM_PROCNAME =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> PARM_PROCNAME -> c PARM_PROCNAME)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c PARM_PROCNAME)
-> (PARM_PROCNAME -> Constr)
-> (PARM_PROCNAME -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c PARM_PROCNAME))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c PARM_PROCNAME))
-> ((forall b. Data b => b -> b) -> PARM_PROCNAME -> PARM_PROCNAME)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r)
-> (forall u. (forall d. Data d => d -> u) -> PARM_PROCNAME -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> PARM_PROCNAME -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME)
-> Data PARM_PROCNAME
PARM_PROCNAME -> Constr
PARM_PROCNAME -> DataType
(forall b. Data b => b -> b) -> PARM_PROCNAME -> PARM_PROCNAME
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PARM_PROCNAME -> c PARM_PROCNAME
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PARM_PROCNAME
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> PARM_PROCNAME -> u
forall u. (forall d. Data d => d -> u) -> PARM_PROCNAME -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PARM_PROCNAME
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PARM_PROCNAME -> c PARM_PROCNAME
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PARM_PROCNAME)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c PARM_PROCNAME)
$cParmProcname :: Constr
$tPARM_PROCNAME :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
gmapMp :: (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
gmapM :: (forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PARM_PROCNAME -> m PARM_PROCNAME
gmapQi :: Int -> (forall d. Data d => d -> u) -> PARM_PROCNAME -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> PARM_PROCNAME -> u
gmapQ :: (forall d. Data d => d -> u) -> PARM_PROCNAME -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> PARM_PROCNAME -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PARM_PROCNAME -> r
gmapT :: (forall b. Data b => b -> b) -> PARM_PROCNAME -> PARM_PROCNAME
$cgmapT :: (forall b. Data b => b -> b) -> PARM_PROCNAME -> PARM_PROCNAME
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c PARM_PROCNAME)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c PARM_PROCNAME)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c PARM_PROCNAME)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PARM_PROCNAME)
dataTypeOf :: PARM_PROCNAME -> DataType
$cdataTypeOf :: PARM_PROCNAME -> DataType
toConstr :: PARM_PROCNAME -> Constr
$ctoConstr :: PARM_PROCNAME -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PARM_PROCNAME
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PARM_PROCNAME
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PARM_PROCNAME -> c PARM_PROCNAME
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PARM_PROCNAME -> c PARM_PROCNAME
$cp1Data :: Typeable PARM_PROCNAME
Data)

-- Generated by DrIFT, look but don't touch!

instance GetRange CspBasicExt where
  getRange :: CspBasicExt -> Range
getRange x :: CspBasicExt
x = case CspBasicExt
x of
    Channels _ p :: Range
p -> Range
p
    ProcItems _ p :: Range
p -> Range
p
  rangeSpan :: CspBasicExt -> [Pos]
rangeSpan x :: CspBasicExt
x = case CspBasicExt
x of
    Channels a :: [Annoted CHANNEL_DECL]
a b :: Range
b -> [[Pos]] -> [Pos]
joinRanges [[Annoted CHANNEL_DECL] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [Annoted CHANNEL_DECL]
a, Range -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan Range
b]
    ProcItems a :: [Annoted PROC_ITEM]
a b :: Range
b -> [[Pos]] -> [Pos]
joinRanges [[Annoted PROC_ITEM] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [Annoted PROC_ITEM]
a, Range -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan Range
b]

instance GetRange CHANNEL_DECL where
  getRange :: CHANNEL_DECL -> Range
getRange = Range -> CHANNEL_DECL -> Range
forall a b. a -> b -> a
const Range
nullRange
  rangeSpan :: CHANNEL_DECL -> [Pos]
rangeSpan x :: CHANNEL_DECL
x = case CHANNEL_DECL
x of
    ChannelDecl a :: [CHANNEL_NAME]
a b :: CHANNEL_NAME
b -> [[Pos]] -> [Pos]
joinRanges [[CHANNEL_NAME] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [CHANNEL_NAME]
a, CHANNEL_NAME -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan CHANNEL_NAME
b]

instance GetRange PROC_ITEM where
  getRange :: PROC_ITEM -> Range
getRange = Range -> PROC_ITEM -> Range
forall a b. a -> b -> a
const Range
nullRange
  rangeSpan :: PROC_ITEM -> [Pos]
rangeSpan x :: PROC_ITEM
x = case PROC_ITEM
x of
    Proc_Decl a :: CHANNEL_NAME
a b :: [CHANNEL_NAME]
b c :: PROC_ALPHABET
c -> [[Pos]] -> [Pos]
joinRanges [CHANNEL_NAME -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan CHANNEL_NAME
a, [CHANNEL_NAME] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [CHANNEL_NAME]
b,
                                   PROC_ALPHABET -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan PROC_ALPHABET
c]
    Proc_Defn a :: CHANNEL_NAME
a b :: [VAR_DECL]
b c :: PROC_ALPHABET
c d :: PROCESS
d -> [[Pos]] -> [Pos]
joinRanges [CHANNEL_NAME -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan CHANNEL_NAME
a, [VAR_DECL] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [VAR_DECL]
b,
                                     PROC_ALPHABET -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan PROC_ALPHABET
c, PROCESS -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan PROCESS
d]
    Proc_Eq a :: PARM_PROCNAME
a b :: PROCESS
b -> [[Pos]] -> [Pos]
joinRanges [PARM_PROCNAME -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan PARM_PROCNAME
a, PROCESS -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan PROCESS
b]

instance GetRange PARM_PROCNAME where
  getRange :: PARM_PROCNAME -> Range
getRange = Range -> PARM_PROCNAME -> Range
forall a b. a -> b -> a
const Range
nullRange
  rangeSpan :: PARM_PROCNAME -> [Pos]
rangeSpan x :: PARM_PROCNAME
x = case PARM_PROCNAME
x of
    ParmProcname a :: FQ_PROCESS_NAME
a b :: [VAR]
b -> [[Pos]] -> [Pos]
joinRanges [FQ_PROCESS_NAME -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan FQ_PROCESS_NAME
a, [VAR] -> [Pos]
forall a. GetRange a => a -> [Pos]
rangeSpan [VAR]
b]