Language.C.Analysis.Export

language-c-0.4.5: 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.Export

Description

WARNING : This is just an implementation sketch and not very well tested.

Export `SemRep` entities to `AST` nodes.

Synopsis

- exportDeclr :: [CDeclSpec] -> Type -> Attributes -> VarName -> ([CDeclSpec], CDeclr)
- exportType :: Type -> ([CDeclSpec], [CDerivedDeclr])
- exportTypeDecl :: Type -> CDecl
- exportTypeSpec :: TypeName -> [CTypeSpec]
- exportTypeDef :: TypeDef -> CDecl
- exportCompType :: CompType -> [CTypeSpec]
- exportCompTypeDecl :: CompTypeRef -> [CTypeSpec]
- exportCompTypeRef :: CompType -> [CTypeSpec]
- exportEnumType :: EnumType -> [CTypeSpec]
- exportEnumTypeDecl :: EnumTypeRef -> [CTypeSpec]
- exportEnumTypeRef :: EnumType -> [CTypeSpec]

# Documentation

exportDeclr :: [CDeclSpec] -> Type -> Attributes -> VarName -> ([CDeclSpec], CDeclr)

Export Declarator

Synopsis: `exportDeclr other_specs type attributes variable-name`

exportType :: Type -> ([CDeclSpec], [CDerivedDeclr])

Export a type to syntax

exportTypeDecl :: Type -> CDecl

exportTypeSpec :: TypeName -> [CTypeSpec]

exportTypeDef :: TypeDef -> CDecl

exportCompType :: CompType -> [CTypeSpec]

exportCompTypeDecl :: CompTypeRef -> [CTypeSpec]

exportCompTypeRef :: CompType -> [CTypeSpec]

exportEnumType :: EnumType -> [CTypeSpec]

exportEnumTypeDecl :: EnumTypeRef -> [CTypeSpec]

exportEnumTypeRef :: EnumType -> [CTypeSpec]