Copyright | (c) Martin Kuehl Uni Bremen 2008-2009 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | mkhl@informatik.uni-bremen.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Definition of symbols for Maude.
Synopsis
- data Symbol
- type Symbols = [Symbol]
- type SymbolSet = Set Symbol
- type SymbolMap = Map Symbol Symbol
- type SymbolRel = Rel Symbol
- data SymbolKind
- sym_kind :: Symbol -> SymbolKind
- kindSym2sortSym :: Symbol -> Symbol
- toId :: Symbol -> Id
- qualify :: Qid -> Symbol -> Symbol
- asSort :: Symbol -> Symbol
- asKind :: Symbol -> Symbol
- toType :: Symbol -> Type
- toOperator :: Symbol -> Operator
- mkOpTotal :: Qid -> [Qid] -> Qid -> Symbol
- mkOpPartial :: Qid -> [Qid] -> Qid -> Symbol
- sameKind :: SymbolRel -> Symbol -> Symbol -> Bool
Types The Symbol type
Sort Qid | A |
Kind Qid | A |
Labl Qid | A |
Operator Qid Symbols Symbol | A qualified |
OpWildcard Qid | A wildcard |
Instances
Auxiliary types
data SymbolKind Source #
Instances
Eq SymbolKind Source # | |
Defined in Maude.Symbol (==) :: SymbolKind -> SymbolKind -> Bool (/=) :: SymbolKind -> SymbolKind -> Bool | |
Ord SymbolKind Source # | |
Defined in Maude.Symbol compare :: SymbolKind -> SymbolKind -> Ordering (<) :: SymbolKind -> SymbolKind -> Bool (<=) :: SymbolKind -> SymbolKind -> Bool (>) :: SymbolKind -> SymbolKind -> Bool (>=) :: SymbolKind -> SymbolKind -> Bool max :: SymbolKind -> SymbolKind -> SymbolKind min :: SymbolKind -> SymbolKind -> SymbolKind | |
Read SymbolKind Source # | |
Defined in Maude.Symbol readsPrec :: Int -> ReadS SymbolKind readList :: ReadS [SymbolKind] readPrec :: ReadPrec SymbolKind readListPrec :: ReadPrec [SymbolKind] | |
Show SymbolKind Source # | |
Defined in Maude.Symbol showsPrec :: Int -> SymbolKind -> ShowS show :: SymbolKind -> String showList :: [SymbolKind] -> ShowS | |
Generic SymbolKind | |
Defined in Maude.ATC_Maude type Rep SymbolKind :: Type -> Type from :: SymbolKind -> Rep SymbolKind x to :: Rep SymbolKind x -> SymbolKind | |
FromJSON SymbolKind | |
Defined in Maude.ATC_Maude parseJSON :: Value -> Parser SymbolKind parseJSONList :: Value -> Parser [SymbolKind] | |
ToJSON SymbolKind | |
Defined in Maude.ATC_Maude toJSON :: SymbolKind -> Value toEncoding :: SymbolKind -> Encoding toJSONList :: [SymbolKind] -> Value toEncodingList :: [SymbolKind] -> Encoding | |
ShATermConvertible SymbolKind | |
Defined in Maude.ATC_Maude toShATermAux :: ATermTable -> SymbolKind -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [SymbolKind] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, SymbolKind) fromShATermList' :: Int -> ATermTable -> (ATermTable, [SymbolKind]) | |
Pretty SymbolKind Source # | |
Defined in Maude.Symbol pretty :: SymbolKind -> Doc Source # pretties :: [SymbolKind] -> Doc Source # | |
type Rep SymbolKind | |
Defined in Maude.ATC_Maude type Rep SymbolKind = D1 ('MetaData "SymbolKind" "Maude.Symbol" "main" 'False) ((C1 ('MetaCons "SortK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KindK" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LablK" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpK" 'PrefixI 'False) (U1 :: Type -> Type))) |
sym_kind :: Symbol -> SymbolKind Source #
the kind of a symbol
kindSym2sortSym :: Symbol -> Symbol Source #