C# Class CSI.Interpreter

Show file Open project: keyword/CSharp-Interpreter-for-Unity-3D Class Usage Examples

Public Properties

Property Type Description
Console IConsole
returnsValue bool

Public Methods

Method Description
AddNamespace ( string ns ) : bool
AddReference ( string r ) : void
DefaultIncludeFile ( ) : string
FullExecutablePath ( ) : string
GetNamespaces ( ) : string[]
Interpreter ( ) : System
ProcessLine ( string line ) : bool
ReadIncludeCode ( string code ) : bool
ReadIncludeFile ( string file ) : bool
SetValue ( string name, object val ) : void

Private Methods

Method Description
CompileLine ( string codeStr, CHash type, string assemblyName, string className ) : CompilerResults
CompileTemplate ( CompilerParameters cp, string codeStr, CHash type, string className ) : CompilerResults
ExecuteLine ( string codeStr ) : void
GetPublicRuntimeType ( Type symType ) : Type
GetPublicRuntimeTypeName ( Type symType, bool useSimplifiedNamespaces ) : string
GetTypeName ( Type symType, bool useSimplifiedNamespaces ) : string
MassageInput ( string s, bool &wasAssignment ) : string
ProcessCommand ( string line ) : void
ShowErrors ( CompilerResults cr, string codeStr ) : void
firstToken ( string s ) : string
word_within ( string s, string strs ) : bool

Method Details

AddNamespace() public method

public AddNamespace ( string ns ) : bool
ns string
return bool

AddReference() public method

public AddReference ( string r ) : void
r string
return void

DefaultIncludeFile() public method

public DefaultIncludeFile ( ) : string
return string

FullExecutablePath() public method

public FullExecutablePath ( ) : string
return string

GetNamespaces() public method

public GetNamespaces ( ) : string[]
return string[]

Interpreter() public method

public Interpreter ( ) : System
return System

ProcessLine() public method

public ProcessLine ( string line ) : bool
line string
return bool

ReadIncludeCode() public method

public ReadIncludeCode ( string code ) : bool
code string
return bool

ReadIncludeFile() public method

public ReadIncludeFile ( string file ) : bool
file string
return bool

SetValue() public method

public SetValue ( string name, object val ) : void
name string
val object
return void

Property Details

Console public static property

public static IConsole Console
return IConsole

returnsValue public property

public bool returnsValue
return bool