Copyright | (c) 2008 Benedikt Huber |
---|---|
License | BSD-style |
Maintainer | benedikt.huber@gmail.com |
Stability | prototype |
Portability | ghc |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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]
- export :: GlobalDecls -> CTranslUnit
Documentation
exportDeclr :: [CDeclSpec] -> Type -> Attributes -> VarName -> ([CDeclSpec], CDeclr) Source #
Export Declarator
Synopsis: exportDeclr other_specs type attributes variable-name
exportType :: Type -> ([CDeclSpec], [CDerivedDeclr]) Source #
Export a type to syntax
exportTypeDecl :: Type -> CDecl Source #
exportTypeSpec :: TypeName -> [CTypeSpec] Source #
exportTypeDef :: TypeDef -> CDecl Source #
exportCompType :: CompType -> [CTypeSpec] Source #
exportCompTypeDecl :: CompTypeRef -> [CTypeSpec] Source #
exportCompTypeRef :: CompType -> [CTypeSpec] Source #
exportEnumType :: EnumType -> [CTypeSpec] Source #
exportEnumTypeDecl :: EnumTypeRef -> [CTypeSpec] Source #
exportEnumTypeRef :: EnumType -> [CTypeSpec] Source #
export :: GlobalDecls -> CTranslUnit Source #
Export global declarations TODO: This does not export tags and type defs yet