language-cil-0.3.1: Manipulating Common Intermediate Language AST

Safe HaskellSafe
LanguageHaskell98

Language.Cil.Build

Contents

Description

Combinators for building abstract syntax.

Synopsis

Assembly ref functions

Directive functions

OpCode functions

newobj :: AssemblyName -> TypeName -> [PrimitiveType] -> MethodDecl Source #

Creates a new object. Note that this function assumes the constructor returns Void. If this is not the case, call the Newobj constructor manually.

Convenient AST functions

label :: Label -> MethodDecl Source #

Relabel a labelled MethodDecl with a new label.

simpleAssembly :: [MethodDecl] -> Assembly Source #

Create a simple Assembly with one method containing the provided MethodDecls.