language-c-0.9.0.2: Analysis and generation of C code
Copyright(c) 2008 Benedikt Huber
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityprototype
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Language.C.Analysis.Debug

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 # 
Instance details

Methods

pretty :: Ident -> Doc #

prettyPrec :: Int -> Ident -> Doc #

Pretty SUERef # 
Instance details

Methods

pretty :: SUERef -> Doc #

prettyPrec :: Int -> SUERef -> Doc #

Pretty Attributes # 
Instance details

Methods

pretty :: Attributes -> Doc #

prettyPrec :: Int -> Attributes -> Doc #

Pretty Attr # 
Instance details

Methods

pretty :: Attr -> Doc #

prettyPrec :: Int -> Attr -> Doc #

Pretty VarName # 
Instance details

Methods

pretty :: VarName -> Doc #

prettyPrec :: Int -> VarName -> Doc #

Pretty TypeQuals # 
Instance details

Methods

pretty :: TypeQuals -> Doc #

prettyPrec :: Int -> TypeQuals -> Doc #

Pretty Enumerator # 
Instance details

Methods

pretty :: Enumerator -> Doc #

prettyPrec :: Int -> Enumerator -> Doc #

Pretty EnumType # 
Instance details

Methods

pretty :: EnumType -> Doc #

prettyPrec :: Int -> EnumType -> Doc #

Pretty CompTyKind # 
Instance details

Methods

pretty :: CompTyKind -> Doc #

prettyPrec :: Int -> CompTyKind -> Doc #

Pretty CompType # 
Instance details

Methods

pretty :: CompType -> Doc #

prettyPrec :: Int -> CompType -> Doc #

Pretty EnumTypeRef # 
Instance details

Methods

pretty :: EnumTypeRef -> Doc #

prettyPrec :: Int -> EnumTypeRef -> Doc #

Pretty CompTypeRef # 
Instance details

Methods

pretty :: CompTypeRef -> Doc #

prettyPrec :: Int -> CompTypeRef -> Doc #

Pretty Type # 
Instance details

Methods

pretty :: Type -> Doc #

prettyPrec :: Int -> Type -> Doc #

Pretty Linkage # 
Instance details

Methods

pretty :: Linkage -> Doc #

prettyPrec :: Int -> Linkage -> Doc #

Pretty Storage # 
Instance details

Methods

pretty :: Storage -> Doc #

prettyPrec :: Int -> Storage -> Doc #

Pretty FunctionAttrs # 
Instance details

Methods

pretty :: FunctionAttrs -> Doc #

prettyPrec :: Int -> FunctionAttrs -> Doc #

Pretty DeclAttrs # 
Instance details

Methods

pretty :: DeclAttrs -> Doc #

prettyPrec :: Int -> DeclAttrs -> Doc #

Pretty VarDecl # 
Instance details

Methods

pretty :: VarDecl -> Doc #

prettyPrec :: Int -> VarDecl -> Doc #

Pretty TypeDef # 
Instance details

Methods

pretty :: TypeDef -> Doc #

prettyPrec :: Int -> TypeDef -> Doc #

Pretty MemberDecl # 
Instance details

Methods

pretty :: MemberDecl -> Doc #

prettyPrec :: Int -> MemberDecl -> Doc #

Pretty ParamDecl # 
Instance details

Methods

pretty :: ParamDecl -> Doc #

prettyPrec :: Int -> ParamDecl -> Doc #

Pretty FunDef # 
Instance details

Methods

pretty :: FunDef -> Doc #

prettyPrec :: Int -> FunDef -> Doc #

Pretty ObjDef # 
Instance details

Methods

pretty :: ObjDef -> Doc #

prettyPrec :: Int -> ObjDef -> Doc #

Pretty Decl # 
Instance details

Methods

pretty :: Decl -> Doc #

prettyPrec :: Int -> Decl -> Doc #

Pretty GlobalDecls # 
Instance details

Methods

pretty :: GlobalDecls -> Doc #

prettyPrec :: Int -> GlobalDecls -> Doc #

Pretty IdentDecl # 
Instance details

Methods

pretty :: IdentDecl -> Doc #

prettyPrec :: Int -> IdentDecl -> Doc #

Pretty TagDef # 
Instance details

Methods

pretty :: TagDef -> Doc #

prettyPrec :: Int -> TagDef -> Doc #

Pretty DefTable # 
Instance details

Methods

pretty :: DefTable -> Doc #

prettyPrec :: Int -> DefTable -> Doc #

Pretty TagFwdDecl # 
Instance details

Methods

pretty :: TagFwdDecl -> Doc #

prettyPrec :: Int -> TagFwdDecl -> Doc #

(Pretty a, Pretty b) => Pretty (Either a b) # 
Instance details

Methods

pretty :: Either a b -> Doc #

prettyPrec :: Int -> Either a b -> Doc #