/datum/n_Interpreter
n_Interpreter Procedures allowing for interaction with the script that is being run by the interpreter object.
Vars | |
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 |
Procs | |
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 |
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. |
Trim | Trims strings and vectors down to an acceptable size, to prevent runaway memory usage |
garbage_collect | Sets 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
Parameters:
program - A
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:
- <Block.SetVar()>
Trim
Trims strings and vectors down to an acceptable size, to prevent runaway memory usage
garbage_collect
Sets ourselves to Garbage Collect.