language-c-quote-0.3.1.0: C/CUDA/OpenCL quasiquoting library.

Maintainermainland@eecs.harvard.edu
Safe HaskellSafe-Infered

Language.C.Syntax

Description

 

Synopsis

Documentation

data Id Source

Constructors

Id String !SrcLoc 
AntiId String !SrcLoc 

data ArraySize Source

There are two types of declarators in C, regular declarators and abstract declarators. The former is for declaring variables, function parameters, typedefs, etc. and the latter for abstract types---typedef int ({*}foo)(void) vs. tt int ({*})(void). The difference between the two is just whether or not an identifier is attached to the declarator. We therefore only define one Decl type and use it for both cases.

data Attr Source

Constructors

Attr Id [Exp] !SrcLoc 

data BinOp Source

Constructors

Add 
Sub 
Mul 
Div 
Mod 
Eq 
Ne 
Lt 
Gt 
Le 
Ge 
Land 
Lor 
And 
Or 
Xor 
Lsh 
Rsh