Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/n_Interpreter

n_Interpreter Procedures allowing for interaction with the script that is being run by the interpreter object.

Vars

cur_recursionCurrent amount of recursion
cur_statementscurrent amount of statements called
persistBoolean that will reset global variables after Run() finishes.
statusBoolean indicating that the rest of the current block should be skipped. This may be set to any combination of .

Procs

AlertAdminsAlerts the admins of a script that is bad.
IterateRuns a single iteration of a loop. Returns a value indicating whether or not to continue looping.
LoadLoad Loads a 'compiled' script into Memory. program - A object which represents the script's global scope.
RaiseErrorRaises a Runtime error.
RunRuns the Script.
RunBlockRuns each statement in a block of code.
RunFunctionRuns a function block or a proc with the arguments specified in the script.
RunIfChecks a condition and runs either the if block or else block.
RunWhileRuns a while loop.
SetVarSetVar Defines a global variable for the duration of the next execution of a script. Notes: This differs from <Block.SetVar()> in that variables set using this procedure only last for the session, while those defined from the block object persist if it is ran multiple times.
TrimTrims strings and vectors down to an acceptable size, to prevent runaway memory usage
garbage_collectSets ourselves to Garbage Collect.

Var Details

cur_recursion

Current amount of recursion

cur_statements

current amount of statements called

persist

Boolean that will reset global variables after Run() finishes.

status

Boolean indicating that the rest of the current block should be skipped. This may be set to any combination of .

Proc Details

AlertAdmins

Alerts the admins of a script that is bad.

Iterate

Runs a single iteration of a loop. Returns a value indicating whether or not to continue looping.

Load

Load Loads a 'compiled' script into Memory. program - A object which represents the script's global scope.

Parameters: program - A object which represents the script's global scope.

RaiseError

Raises a Runtime error.

Run

Runs the Script.

RunBlock

Runs each statement in a block of code.

RunFunction

Runs a function block or a proc with the arguments specified in the script.

RunIf

Checks a condition and runs either the if block or else block.

RunWhile

Runs a while loop.

SetVar

SetVar Defines a global variable for the duration of the next execution of a script. Notes: This differs from <Block.SetVar()> in that variables set using this procedure only last for the session, while those defined from the block object persist if it is ran multiple times.

See Also:

Trim

Trims strings and vectors down to an acceptable size, to prevent runaway memory usage

garbage_collect

Sets ourselves to Garbage Collect.