hakaru-0.3.0: A probabilistic programming language

CopyrightCopyright (c) 2016 the Hakaru team
LicenseBSD3
Maintainerzsulliva@indiana.edu
Stabilityexperimental
PortabilityGHC-only An AST for the C Family and preprocessor
Safe HaskellSafe
LanguageHaskell2010

Language.Hakaru.CodeGen.AST

Description

Much of this is based on Manuel M T Chakravarty and Benedikt Hubar's "language-c" package

Documentation

data Ident Source #

Constructors

Ident String 

Instances

data CAST Source #

Constructors

CAST [CExtDecl] 

Instances

Eq CAST Source # 

Methods

(==) :: CAST -> CAST -> Bool #

(/=) :: CAST -> CAST -> Bool #

Ord CAST Source # 

Methods

compare :: CAST -> CAST -> Ordering #

(<) :: CAST -> CAST -> Bool #

(<=) :: CAST -> CAST -> Bool #

(>) :: CAST -> CAST -> Bool #

(>=) :: CAST -> CAST -> Bool #

max :: CAST -> CAST -> CAST #

min :: CAST -> CAST -> CAST #

Show CAST Source # 

Methods

showsPrec :: Int -> CAST -> ShowS #

show :: CAST -> String #

showList :: [CAST] -> ShowS #

Pretty CAST Source # 

Methods

pretty :: CAST -> Doc Source #

prettyPrec :: Int -> CAST -> Doc

data CDecl Source #

Constructors

CDecl [CDeclSpec] [(CDeclr, Maybe CInit)] 

Instances

data CEnum Source #

Constructors

CEnum (Maybe Ident) [(Ident, Maybe CExpr)] 

Instances

data CInit Source #

Constructors

CInitExpr CExpr 
CInitList [([CPartDesig], CInit)] 

Instances