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

Copyright(c) 2008 Benedikt Huber
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityprototype
Portabilityghc
Safe HaskellNone
LanguageHaskell98

Language.C.Analysis.Debug

Contents

Description

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

Documentation

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

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

Pretty Enumerator # 
Instance details

Pretty EnumType # 
Instance details

Methods

pretty :: EnumType -> Doc #

prettyPrec :: Int -> EnumType -> Doc #

Pretty CompTyKind # 
Instance details

Pretty CompType # 
Instance details

Methods

pretty :: CompType -> Doc #

prettyPrec :: Int -> CompType -> Doc #

Pretty EnumTypeRef # 
Instance details

Pretty CompTypeRef # 
Instance details

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

Pretty DeclAttrs # 
Instance details

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

Pretty ParamDecl # 
Instance details

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

Pretty IdentDecl # 
Instance details

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

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

Methods

pretty :: Either a b -> Doc #

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