C# Class While.AST.Procedure

Procedure class. A procedure can take 0-1 value arguments and; 0-1 result argument that must be the last one.
Inheritance: Node
Mostra file Open project: einaregilsson/While-Language Class Usage Examples

Public Methods

Method Description
Compile ( ILGenerator il ) : void
CompileSignature ( ModuleBuilder module ) : MethodBuilder

Compiles the signature for the procedure but not the body. This needs to be done first so that other methods can call this method, this way we don't have problems with; dependencies between methods.

Procedure ( string name, VariableSequence valArgs, Variable resultArg, StatementSequence statements ) : System
ToString ( ) : string

Method Details

Compile() public method

public Compile ( ILGenerator il ) : void
il System.Reflection.Emit.ILGenerator
return void

CompileSignature() public method

Compiles the signature for the procedure but not the body. This needs to be done first so that other methods can call this method, this way we don't have problems with; dependencies between methods.
public CompileSignature ( ModuleBuilder module ) : MethodBuilder
module System.Reflection.Emit.ModuleBuilder
return System.Reflection.Emit.MethodBuilder

Procedure() public method

public Procedure ( string name, VariableSequence valArgs, Variable resultArg, StatementSequence statements ) : System
name string
valArgs While.AST.Sequences.VariableSequence
resultArg Variable
statements While.AST.Sequences.StatementSequence
return System

ToString() public method

public ToString ( ) : string
return string