C# 클래스 While.AST.Procedure

Procedure class. A procedure can take 0-1 value arguments and; 0-1 result argument that must be the last one.
상속: Node
파일 보기 프로젝트 열기: einaregilsson/While-Language 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Compile() 공개 메소드

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

CompileSignature() 공개 메소드

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
리턴 System.Reflection.Emit.MethodBuilder

Procedure() 공개 메소드

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
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string