Copyright | (c) Christian Maeder DFKI GmbH 2011 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Synopsis
- data CspSymbType
- data CspSymbol = CspSymbol {}
- data CspRawSymbol
- rawId :: CspRawSymbol -> Id
- cspCheckSymbList :: [CspSymbMap] -> [Diagnosis]
- toChanSymbol :: (CHANNEL_NAME, SORT) -> CspSymbol
- toProcSymbol :: (PROCESS_NAME, ProcProfile) -> CspSymbol
- idToCspRaw :: Id -> CspRawSymbol
- sortToProcProfile :: SORT -> ProcProfile
- cspTypedSymbKindToRaw :: Bool -> CspCASLSign -> CspSymbKind -> Id -> CspType -> Result CspRawSymbol
- cspSymbToRaw :: Bool -> CspCASLSign -> CspSymbKind -> CspSymb -> Result CspRawSymbol
- cspStatSymbItems :: CspCASLSign -> [CspSymbItems] -> Result [CspRawSymbol]
- maxKind :: CspSymbKind -> CspRawSymbol -> CspSymbKind
- cspSymbOrMapToRaw :: CspCASLSign -> Maybe CspCASLSign -> CspSymbKind -> CspSymbMap -> Result [(CspRawSymbol, CspRawSymbol)]
- cspStatSymbMapItems :: CspCASLSign -> Maybe CspCASLSign -> [CspSymbMapItems] -> Result (Map CspRawSymbol CspRawSymbol)
- toSymbolSet :: CspSign -> [Set CspSymbol]
- symSets :: CspCASLSign -> [Set CspSymbol]
- caslToCspSymbol :: Symbol -> CspSymbol
- toRawSymbol :: CspRawSymbol -> Maybe RawSymbol
- splitSymbolMap :: Map CspRawSymbol CspRawSymbol -> (RawSymbolMap, Map CspRawSymbol CspRawSymbol)
- getCASLSymbols :: Set CspSymbol -> Set Symbol
Documentation
data CspSymbType Source #
Instances
Eq CspSymbType Source # | |
Defined in CspCASL.Symbol (==) :: CspSymbType -> CspSymbType -> Bool (/=) :: CspSymbType -> CspSymbType -> Bool | |
Data CspSymbType Source # | |
Defined in CspCASL.Symbol gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CspSymbType -> c CspSymbType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CspSymbType toConstr :: CspSymbType -> Constr dataTypeOf :: CspSymbType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CspSymbType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CspSymbType) gmapT :: (forall b. Data b => b -> b) -> CspSymbType -> CspSymbType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CspSymbType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CspSymbType -> r gmapQ :: (forall d. Data d => d -> u) -> CspSymbType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> CspSymbType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> CspSymbType -> m CspSymbType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CspSymbType -> m CspSymbType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CspSymbType -> m CspSymbType | |
Ord CspSymbType Source # | |
Defined in CspCASL.Symbol compare :: CspSymbType -> CspSymbType -> Ordering (<) :: CspSymbType -> CspSymbType -> Bool (<=) :: CspSymbType -> CspSymbType -> Bool (>) :: CspSymbType -> CspSymbType -> Bool (>=) :: CspSymbType -> CspSymbType -> Bool max :: CspSymbType -> CspSymbType -> CspSymbType min :: CspSymbType -> CspSymbType -> CspSymbType | |
Show CspSymbType Source # | |
Defined in CspCASL.Symbol showsPrec :: Int -> CspSymbType -> ShowS show :: CspSymbType -> String showList :: [CspSymbType] -> ShowS | |
Generic CspSymbType | |
Defined in CspCASL.ATC_CspCASL type Rep CspSymbType :: Type -> Type from :: CspSymbType -> Rep CspSymbType x to :: Rep CspSymbType x -> CspSymbType | |
FromJSON CspSymbType | |
Defined in CspCASL.ATC_CspCASL parseJSON :: Value -> Parser CspSymbType parseJSONList :: Value -> Parser [CspSymbType] | |
ToJSON CspSymbType | |
Defined in CspCASL.ATC_CspCASL toJSON :: CspSymbType -> Value toEncoding :: CspSymbType -> Encoding toJSONList :: [CspSymbType] -> Value toEncodingList :: [CspSymbType] -> Encoding | |
ShATermConvertible CspSymbType | |
Defined in CspCASL.ATC_CspCASL toShATermAux :: ATermTable -> CspSymbType -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [CspSymbType] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, CspSymbType) fromShATermList' :: Int -> ATermTable -> (ATermTable, [CspSymbType]) | |
Pretty CspSymbType Source # | |
Defined in CspCASL.Symbol pretty :: CspSymbType -> Doc Source # pretties :: [CspSymbType] -> Doc Source # | |
type Rep CspSymbType | |
Defined in CspCASL.ATC_CspCASL type Rep CspSymbType = D1 ('MetaData "CspSymbType" "CspCASL.Symbol" "main" 'False) (C1 ('MetaCons "CaslSymbType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SymbType)) :+: (C1 ('MetaCons "ProcAsItemType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProcProfile)) :+: C1 ('MetaCons "ChanAsItemType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Id)))) |
Instances
data CspRawSymbol Source #
Instances
rawId :: CspRawSymbol -> Id Source #
cspCheckSymbList :: [CspSymbMap] -> [Diagnosis] Source #
toChanSymbol :: (CHANNEL_NAME, SORT) -> CspSymbol Source #
toProcSymbol :: (PROCESS_NAME, ProcProfile) -> CspSymbol Source #
idToCspRaw :: Id -> CspRawSymbol Source #
sortToProcProfile :: SORT -> ProcProfile Source #
cspTypedSymbKindToRaw :: Bool -> CspCASLSign -> CspSymbKind -> Id -> CspType -> Result CspRawSymbol Source #
cspSymbToRaw :: Bool -> CspCASLSign -> CspSymbKind -> CspSymb -> Result CspRawSymbol Source #
cspStatSymbItems :: CspCASLSign -> [CspSymbItems] -> Result [CspRawSymbol] Source #
maxKind :: CspSymbKind -> CspRawSymbol -> CspSymbKind Source #
cspSymbOrMapToRaw :: CspCASLSign -> Maybe CspCASLSign -> CspSymbKind -> CspSymbMap -> Result [(CspRawSymbol, CspRawSymbol)] Source #
cspStatSymbMapItems :: CspCASLSign -> Maybe CspCASLSign -> [CspSymbMapItems] -> Result (Map CspRawSymbol CspRawSymbol) Source #
toSymbolSet :: CspSign -> [Set CspSymbol] Source #
symSets :: CspCASLSign -> [Set CspSymbol] Source #
caslToCspSymbol :: Symbol -> CspSymbol Source #
toRawSymbol :: CspRawSymbol -> Maybe RawSymbol Source #
try to convert a csp raw symbol to a CASL raw symbol
splitSymbolMap :: Map CspRawSymbol CspRawSymbol -> (RawSymbolMap, Map CspRawSymbol CspRawSymbol) Source #
getCASLSymbols :: Set CspSymbol -> Set Symbol Source #