C# Class fbuild.interpreter

显示文件 Open project: Benderx2/FVM

Public Properties

Property Type Description
If_stack Stack
TempList List
a char
datcount int
file System.IO.StreamWriter
l_count int
off int
stack_addr int
temp_sbuffer tables.s_buffer
temp_sfunction tables.s_function
temp_sint tables.s_int
temp_sstring tables.s_string
while_stack Stack

Public Methods

Method Description
ExecCode ( string code, string output ) : int
generateTokens ( string code ) : int

Private Methods

Method Description
CheckToken ( int cur, int no ) : bool
Compile ( List tokens ) : int
GetBufSize ( string name ) : int
GetIntValueByName ( string name ) : int
GetStringValueByName ( string name ) : string
IfBufferExists ( string name ) : bool
IfFunctionExists ( string name ) : bool
IfIntExists ( string name ) : bool
SetStringValue ( string name, string value ) : void

Method Details

ExecCode() public static method

public static ExecCode ( string code, string output ) : int
code string
output string
return int

generateTokens() public static method

public static generateTokens ( string code ) : int
code string
return int

Property Details

If_stack public_oe static_oe property

public static Stack If_stack
return Stack

TempList public_oe static_oe property

public static List TempList
return List

a public_oe static_oe property

public static char a
return char

datcount public_oe static_oe property

public static int datcount
return int

file public_oe static_oe property

public static System.IO.StreamWriter file
return System.IO.StreamWriter

l_count public_oe static_oe property

public static int l_count
return int

off public_oe static_oe property

public static int off
return int

stack_addr public_oe static_oe property

public static int stack_addr
return int

temp_sbuffer public_oe static_oe property

public static tables.s_buffer,fbuild temp_sbuffer
return tables.s_buffer

temp_sfunction public_oe static_oe property

public static tables.s_function,fbuild temp_sfunction
return tables.s_function

temp_sint public_oe static_oe property

public static tables.s_int,fbuild temp_sint
return tables.s_int

temp_sstring public_oe static_oe property

public static tables.s_string,fbuild temp_sstring
return tables.s_string

while_stack public_oe static_oe property

public static Stack while_stack
return Stack