Copyright | (c) Christian Maeder and Uni Bremen 2006 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Pretty printing data types of BASIC_SPEC
Synopsis
- printBASIC_SPEC :: FormExtension f => (b -> Doc) -> (s -> Doc) -> BASIC_SPEC b s f -> Doc
- printFormula :: FormExtension f => FORMULA f -> Doc
- printTerm :: FormExtension f => TERM f -> Doc
- printTheoryFormula :: FormExtension f => Named (FORMULA f) -> Doc
- pluralS_symb_list :: SYMB_KIND -> [a] -> String
- pluralS :: ListCheck a => a -> String
- appendS :: [a] -> String
- isJunct :: FORMULA f -> Bool
- printInfix :: Bool -> ([Doc] -> Doc) -> Doc -> Doc -> Doc -> Doc
- class ListCheck a where
- innerList :: a -> [()]
- recoverType :: [Constraint] -> [Annoted DATATYPE_DECL]
- printALTERNATIVE :: ALTERNATIVE -> Doc
- typeString :: SortsKind -> [Annoted DATATYPE_DECL] -> String
- printVarDecl :: VAR_DECL -> Doc
- printVarDeclL :: [VAR_DECL] -> [Doc]
- printVarDecls :: [VAR_DECL] -> Doc
- printOptArgDecls :: [VAR_DECL] -> Doc
- printSortItem :: FormExtension f => SORT_ITEM f -> Doc
- printOpItem :: FormExtension f => OP_ITEM f -> Doc
- printPredItem :: FormExtension f => PRED_ITEM f -> Doc
- printPredHead :: PRED_HEAD -> Doc
- printRecord :: FormExtension f => Record f Doc Doc
- printAttr :: FormExtension f => OP_ATTR f -> Doc
- printAnnotedBulletFormulas :: FormExtension f => [Annoted (FORMULA f)] -> Doc
- class (GetRange f, Pretty f) => FormExtension f where
- isQuantifierLike :: f -> Bool
- prefixExt :: f -> Doc -> Doc
- isQuant :: FormExtension f => FORMULA f -> Bool
Documentation
printBASIC_SPEC :: FormExtension f => (b -> Doc) -> (s -> Doc) -> BASIC_SPEC b s f -> Doc Source #
printFormula :: FormExtension f => FORMULA f -> Doc Source #
printTheoryFormula :: FormExtension f => Named (FORMULA f) -> Doc Source #
print a formula as a sentence
pluralS_symb_list :: SYMB_KIND -> [a] -> String Source #
pluralS :: ListCheck a => a -> String Source #
pluralS checks nested lists via the class ListCheck to decide if a plural s should be appended.
class ListCheck a where Source #
a helper class for calculating the pluralS of e.g. ops
Instances
ListCheck Id Source # | |
Defined in CASL.ToDoc | |
ListCheck Token Source # | |
Defined in CASL.ToDoc | |
ListCheck VAR_DECL Source # | |
Defined in CASL.ToDoc | |
ListCheck CHANNEL_DECL Source # | |
Defined in CspCASL.Print_CspCASL innerList :: CHANNEL_DECL -> [()] Source # | |
ListCheck FplOpItem Source # | |
ListCheck FplSortItem Source # | |
Defined in Fpl.As innerList :: FplSortItem -> [()] Source # | |
ListCheck a => ListCheck [a] Source # | |
Defined in CASL.ToDoc | |
ListCheck a => ListCheck (Annoted a) Source # | an instance of ListCheck for Annoted stuff |
Defined in CASL.ToDoc | |
ListCheck (PRED_ITEM f) Source # | |
Defined in CASL.ToDoc | |
ListCheck (OP_ITEM f) Source # | |
Defined in CASL.ToDoc | |
ListCheck (SORT_ITEM f) Source # | |
Defined in CASL.ToDoc |
recoverType :: [Constraint] -> [Annoted DATATYPE_DECL] Source #
printALTERNATIVE :: ALTERNATIVE -> Doc Source #
typeString :: SortsKind -> [Annoted DATATYPE_DECL] -> String Source #
printVarDecl :: VAR_DECL -> Doc Source #
printVarDeclL :: [VAR_DECL] -> [Doc] Source #
printVarDecls :: [VAR_DECL] -> Doc Source #
printOptArgDecls :: [VAR_DECL] -> Doc Source #
printSortItem :: FormExtension f => SORT_ITEM f -> Doc Source #
printOpItem :: FormExtension f => OP_ITEM f -> Doc Source #
printPredItem :: FormExtension f => PRED_ITEM f -> Doc Source #
printPredHead :: PRED_HEAD -> Doc Source #
printRecord :: FormExtension f => Record f Doc Doc Source #
printAnnotedBulletFormulas :: FormExtension f => [Annoted (FORMULA f)] -> Doc Source #
class (GetRange f, Pretty f) => FormExtension f where Source #
Nothing
Instances
FormExtension () Source # | |
Defined in CASL.ToDoc | |
FormExtension C_FORMULA Source # | |
FormExtension DL_FORMULA Source # | |
Defined in CASL_DL.Print_AS isQuantifierLike :: DL_FORMULA -> Bool Source # | |
FormExtension ConstraintFORMULA Source # | |
Defined in ConstraintCASL.StaticAna isQuantifierLike :: ConstraintFORMULA -> Bool Source # | |
FormExtension CspSen Source # | |
FormExtension EM_FORMULA Source # | |
Defined in ExtModal.Print_AS isQuantifierLike :: EM_FORMULA -> Bool Source # | |
FormExtension TermExt Source # | |
FormExtension H_FORMULA Source # | |
FormExtension M_FORMULA Source # | |
FormExtension VSEforms Source # | |
FormExtension a => FormExtension (Ranged a) Source # | |
isQuant :: FormExtension f => FORMULA f -> Bool Source #