C# Class AlbLib.Scripting.DebugExecutor

Inheritance: ScriptExecutionMachine
ファイルを表示 Open project: IllidanS4/AlbLib

Public Methods

Method Description
DebugExecutor ( ) : System

Initializes new instance using Console.Out as an output.

DebugExecutor ( TextWriter output ) : System

Initializes new instance using output as an output.

Execute ( string script ) : bool

Executes a script.

OnComment ( string comment ) : void

Occurs when a comment is found.

OnFunction ( string function, int args ) : void

Occurs when a function is called.

Method Details

DebugExecutor() public method

Initializes new instance using Console.Out as an output.
public DebugExecutor ( ) : System
return System

DebugExecutor() public method

Initializes new instance using output as an output.
public DebugExecutor ( TextWriter output ) : System
output System.IO.TextWriter /// Output where debug information will be written. ///
return System

Execute() public method

Executes a script.
/// When any exception raises in script execution. ///
public Execute ( string script ) : bool
script string /// Script text. ///
return bool

OnComment() public method

Occurs when a comment is found.
public OnComment ( string comment ) : void
comment string /// Found comment. ///
return void

OnFunction() public method

Occurs when a function is called.
public OnFunction ( string function, int args ) : void
function string /// Found function name. ///
args int /// Found function arguments. ///
return void