C# Class ABT.Env

显示文件 Open project: phisiart/C-Compiler Class Usage Examples

Public Methods

Method Description
Dump ( ) : String
Env ( ) : System
Find ( String name ) : Option
FindInCurrentScope ( String name ) : Option
GetCurrentFunction ( ) : FunctionType
InScope ( ) : Env
IsGlobal ( ) : System.Boolean
OutScope ( ) : Env
PushEntry ( EntryKind loc, String name, ExprType type ) : Env
PushEnum ( String name, ExprType type, Int32 value ) : Env
SetCurrentFunction ( FunctionType type ) : Env

Private Methods

Method Description
Env ( ImmutableStack scopes ) : System

Method Details

Dump() public method

public Dump ( ) : String
return String

Env() public method

public Env ( ) : System
return System

Find() public method

public Find ( String name ) : Option
name String
return Option

FindInCurrentScope() public method

public FindInCurrentScope ( String name ) : Option
name String
return Option

GetCurrentFunction() public method

public GetCurrentFunction ( ) : FunctionType
return FunctionType

InScope() public method

public InScope ( ) : Env
return Env

IsGlobal() public method

public IsGlobal ( ) : System.Boolean
return System.Boolean

OutScope() public method

public OutScope ( ) : Env
return Env

PushEntry() public method

public PushEntry ( EntryKind loc, String name, ExprType type ) : Env
loc EntryKind
name String
type ExprType
return Env

PushEnum() public method

public PushEnum ( String name, ExprType type, Int32 value ) : Env
name String
type ExprType
value System.Int32
return Env

SetCurrentFunction() public method

public SetCurrentFunction ( FunctionType type ) : Env
type FunctionType
return Env