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
Afficher le fichier Open project: einaregilsson/While-Language Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Compile ( ILGenerator il ) : void
il System.Reflection.Emit.ILGenerator
Résultat void

CompileSignature() public méthode

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
Résultat System.Reflection.Emit.MethodBuilder

Procedure() public méthode

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
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string