language-c-0.6.1: 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 # 

Methods

pretty :: Ident -> Doc #

prettyPrec :: Int -> Ident -> Doc #

Pretty SUERef # 

Methods

pretty :: SUERef -> Doc #

prettyPrec :: Int -> SUERef -> Doc #

Pretty Attributes # 
Pretty Attr # 

Methods

pretty :: Attr -> Doc #

prettyPrec :: Int -> Attr -> Doc #

Pretty VarName # 

Methods

pretty :: VarName -> Doc #

prettyPrec :: Int -> VarName -> Doc #

Pretty TypeQuals # 
Pretty Enumerator # 
Pretty EnumType # 

Methods

pretty :: EnumType -> Doc #

prettyPrec :: Int -> EnumType -> Doc #

Pretty CompTyKind # 
Pretty CompType # 

Methods

pretty :: CompType -> Doc #

prettyPrec :: Int -> CompType -> Doc #

Pretty EnumTypeRef # 
Pretty CompTypeRef # 
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 FunctionAttrs # 
Pretty DeclAttrs # 
Pretty VarDecl # 

Methods

pretty :: VarDecl -> Doc #

prettyPrec :: Int -> VarDecl -> Doc #

Pretty TypeDef # 

Methods

pretty :: TypeDef -> Doc #

prettyPrec :: Int -> TypeDef -> Doc #

Pretty MemberDecl # 
Pretty ParamDecl # 
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 # 
Pretty IdentDecl # 
Pretty TagDef # 

Methods

pretty :: TagDef -> Doc #

prettyPrec :: Int -> TagDef -> Doc #

Pretty DefTable # 

Methods

pretty :: DefTable -> Doc #

prettyPrec :: Int -> DefTable -> Doc #

Pretty TagFwdDecl # 
(Pretty a, Pretty b) => Pretty (Either a b) # 

Methods

pretty :: Either a b -> Doc #

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