C# Class kOS.Safe.Compilation.Script

Mostrar archivo Open project: KSP-KOS/KOS

Public Methods

Method Description
ClearContext ( string contextId ) : void
Compile ( GlobalPath filePath, int startLineNum, string scriptText ) : List

Compile source text into compiled codeparts.

Compile ( GlobalPath filePath, int startLineNum, string scriptText, string contextId ) : List

Compile source text into compiled codeparts.

Compile ( GlobalPath filePath, int startLineNum, string scriptText, string contextId, kOS.Safe.Compilation.CompilerOptions options ) : List

Compile source text into compiled codeparts.

IsCommandComplete ( string command ) : bool

Protected Methods

Method Description
Script ( ) : System.Collections.Generic

Method Details

ClearContext() public abstract method

public abstract ClearContext ( string contextId ) : void
contextId string
return void

Compile() public method

Compile source text into compiled codeparts.
public Compile ( GlobalPath filePath, int startLineNum, string scriptText ) : List
filePath GlobalPath The name that should get reported to the user on /// runtime errors in this compiled code. Even if the text is not from an /// actual file this should still be a pseudo-filename for reporting, for /// example "(commandline)" or "(socket stream)" ///
startLineNum int Assuming scriptText is a subset of some bigger buffer, line 1 of scripttext /// corresponds to line (what) of the more global something, for reporting numbers on errors.
scriptText string The text to be compiled.
return List

Compile() public method

Compile source text into compiled codeparts.
public Compile ( GlobalPath filePath, int startLineNum, string scriptText, string contextId ) : List
filePath GlobalPath The name that should get reported to the user on /// runtime errors in this compiled code. Even if the text is not from an /// actual file this should still be a pseudo-filename for reporting, for /// example "(commandline)" or "(socket stream)" ///
startLineNum int Assuming scriptText is a subset of some bigger buffer, line 1 of scripttext /// corresponds to line (what) of the more global something, for reporting numbers on errors.
scriptText string The text to be compiled.
contextId string The name of the runtime context (i.e. "interpreter").
return List

Compile() public abstract method

Compile source text into compiled codeparts.
public abstract Compile ( GlobalPath filePath, int startLineNum, string scriptText, string contextId, kOS.Safe.Compilation.CompilerOptions options ) : List
filePath GlobalPath The name that should get reported to the user on /// runtime errors in this compiled code. Even if the text is not from an /// actual file this should still be a pseudo-filename for reporting, for /// example "(commandline)" or "(socket stream)" ///
startLineNum int Assuming scriptText is a subset of some bigger buffer, line 1 of scripttext /// corresponds to line (what) of the more global something, for reporting numbers on errors.
scriptText string The text to be compiled.
contextId string The name of the runtime context (i.e. "interpreter").
options kOS.Safe.Compilation.CompilerOptions settings for the compile
return List

IsCommandComplete() public method

public IsCommandComplete ( string command ) : bool
command string
return bool

Script() protected method

protected Script ( ) : System.Collections.Generic
return System.Collections.Generic