Program

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

compile
void compile(d_string progIdentifier, d_string srctext, FunctionDefinition* pfd)

Two ways of calling this: 1. with text representing group of topstatements (pfd == null) 2. with text representing a function name & body (pfd != null)

execute
void execute(d_string[] args)

Execute program. Throw ScriptException on error.

initContext
void initContext()
Undocumented in source. Be warned that the author may not have intended to support it.
toBuffer
void toBuffer(tchar[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getProgram
Program getProgram()

Get/Set Program associated with this thread. This enables multiple scripts (Programs) running simultaneously in different threads. It is needed because which Program is being run is essentially global data - and this makes it thread local data.

setProgram
void setProgram(Program p)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

program
Program program;
Undocumented in source.

Variables

callcontext
CallContext* callcontext;
Undocumented in source.
errors
uint errors;
Undocumented in source.
globalfunction
FunctionDefinition globalfunction;
Undocumented in source.
lcid
uint lcid;
Undocumented in source.
slist
d_string slist;
Undocumented in source.

Meta