Language.C.Analysis.Debug

language-c-0.5.0: Analysis and generation of C code

Copyright | (c) 2008 Benedikt Huber
License | BSD-style
Maintainer | benedikt.huber@gmail.com
Stability | prototype
Portability | ghc
Safe Haskell | None
Language | Haskell98

Language.C.Analysis.Debug

Contents

- Orphan instances

Description

Pretty printing the semantic analysis representation. This is currently only intended for debugging purposes.

# Documentation

globalDeclStats :: (FilePath -> Bool) -> GlobalDecls -> [(String, Int)] #

prettyAssocs :: (Pretty k, Pretty v) => String -> [(k, v)] -> Doc #

prettyAssocsWith :: String -> (k -> Doc) -> (v -> Doc) -> [(k, v)] -> Doc #

# Orphan instances

Pretty Ident # |
Methods pretty :: Ident -> Doc # prettyPrec :: Int -> Ident -> Doc #
Pretty SUERef # |
Methods pretty :: SUERef -> Doc # prettyPrec :: Int -> SUERef -> Doc #
Pretty Attributes # |
Methods pretty :: Attributes -> Doc # prettyPrec :: Int -> Attributes -> Doc #
Pretty Attr # |
Methods pretty :: Attr -> Doc # prettyPrec :: Int -> Attr -> Doc #
Pretty VarName # |
Methods pretty :: VarName -> Doc # prettyPrec :: Int -> VarName -> Doc #
Pretty TypeQuals # |
Methods pretty :: TypeQuals -> Doc # prettyPrec :: Int -> TypeQuals -> Doc #
Pretty Enumerator # |
Methods pretty :: Enumerator -> Doc # prettyPrec :: Int -> Enumerator -> Doc #
Pretty EnumType # |
Methods pretty :: EnumType -> Doc # prettyPrec :: Int -> EnumType -> Doc #
Pretty CompTyKind # |
Methods pretty :: CompTyKind -> Doc # prettyPrec :: Int -> CompTyKind -> Doc #
Pretty CompType # |
Methods pretty :: CompType -> Doc # prettyPrec :: Int -> CompType -> Doc #
Pretty EnumTypeRef # |
Methods pretty :: EnumTypeRef -> Doc # prettyPrec :: Int -> EnumTypeRef -> Doc #
Pretty CompTypeRef # |
Methods pretty :: CompTypeRef -> Doc # prettyPrec :: Int -> CompTypeRef -> Doc #
Pretty Type # |
Methods pretty :: Type -> Doc # prettyPrec :: Int -> Type -> Doc #
Pretty Linkage # |
Methods pretty :: Linkage -> Doc # prettyPrec :: Int -> Linkage -> Doc #
Pretty Storage # |
Methods pretty :: Storage -> Doc # prettyPrec :: Int -> Storage -> Doc #
Pretty DeclAttrs # |
Methods pretty :: DeclAttrs -> Doc # prettyPrec :: Int -> DeclAttrs -> Doc #
Pretty VarDecl # |
Methods pretty :: VarDecl -> Doc # prettyPrec :: Int -> VarDecl -> Doc #
Pretty TypeDef # |
Methods pretty :: TypeDef -> Doc # prettyPrec :: Int -> TypeDef -> Doc #
Pretty MemberDecl # |
Methods pretty :: MemberDecl -> Doc # prettyPrec :: Int -> MemberDecl -> Doc #
Pretty ParamDecl # |
Methods pretty :: ParamDecl -> Doc # prettyPrec :: Int -> ParamDecl -> Doc #
Pretty FunDef # |
Methods pretty :: FunDef -> Doc # prettyPrec :: Int -> FunDef -> Doc #
Pretty ObjDef # |
Methods pretty :: ObjDef -> Doc # prettyPrec :: Int -> ObjDef -> Doc #
Pretty Decl # |
Methods pretty :: Decl -> Doc # prettyPrec :: Int -> Decl -> Doc #
Pretty GlobalDecls # |
Methods pretty :: GlobalDecls -> Doc # prettyPrec :: Int -> GlobalDecls -> Doc #
Pretty IdentDecl # |
Methods pretty :: IdentDecl -> Doc # prettyPrec :: Int -> IdentDecl -> Doc #
Pretty TagDef # |
Methods pretty :: TagDef -> Doc # prettyPrec :: Int -> TagDef -> Doc #
Pretty DefTable # |
Methods pretty :: DefTable -> Doc # prettyPrec :: Int -> DefTable -> Doc #
Pretty TagFwdDecl # |
Methods pretty :: TagFwdDecl -> Doc # prettyPrec :: Int -> TagFwdDecl -> Doc #
(Pretty a, Pretty b) => Pretty (Either a b) # |
Methods pretty :: Either a b -> Doc # prettyPrec :: Int -> Either a b -> Doc #