Ejemplo n.º 1
0
 /// <summary>
 /// Does the given globalvar exist with the given name?
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the globalvar to check for (nested brack operations execute).</param>
 /// <returns>If a globalvar exists with the given name.</returns>
 public bool HasGlobal(RAM r, object varName)
 {
     return(GlobalMemory.HasGlobal(r, varName));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Does an Operator exist with the given name?
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="opName">The name of the Operator to look for (nested brack operations execute).</param>
 /// <returns></returns>
 public bool HasOpName(RAM r, object opName)
 {
     return(OperationSet.HasOpName(r, opName));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Execute an Operator with the given name and arguments.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="opName">The name of the Operator to execute.</param>
 /// <param name="arguments">The arguments to pass into the Operator (nested brack operations execute).</param>
 /// <returns>The resulting return of the Operator execution.</returns>
 public object ExecuteOperator(RAM r, object opName, object[] arguments)
 {
     return(OperationSet.ExecuteOperator(r, opName, arguments));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Get the names of the arguments of the given Script from this GlobalMemory.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The name of the Script (nested operators are executed).</param>
 /// <returns>The argument names</returns>
 public string[] GetScriptArguments(RAM r, object scriptName)
 {
     return(GlobalMemory.GetScriptArguments(r, scriptName));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Execute a Script.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The Script name.</param>
 /// <param name="args">The arguments.</param>
 /// <returns>The resulting return.</returns>
 public object ExecuteScript(RAM r, object scriptName, object[] args)
 {
     return(GlobalMemory.ExecuteScript(r, scriptName, args));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Get the Script with the given name.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The name of the Script to get from (nested brack operations execute).</param>
 /// <returns>The Script found with the given name.</returns>
 public Script GetScript(RAM r, object scriptName)
 {
     return(GlobalMemory.GetScript(r, scriptName));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Delete the Script with the given name from memory (with garbage collection).
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The name of the Script to delete (nested brack operations execute).</param>
 public void DeleteScript(RAM r, object scriptName)
 {
     GlobalMemory.DeleteScript(r, scriptName);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Does a Script exist with the given name?
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The name of the Script to check for (nested brack operations execute).</param>
 /// <returns>If a Script exists with the given name.</returns>
 public bool HasScript(RAM r, object scriptName)
 {
     return(GlobalMemory.HasScript(r, scriptName));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Set the Script with the given name to have the given value, and declare a Script with the given name if none exist already.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="scriptName">The name of the Script to check for (nested brack operations execute).</param>
 /// <param name="script">The Script to add.</param>
 /// <returns>If a Script exists with the given name.</returns>
 public void SetScript(RAM r, object scriptName, Script script)
 {
     GlobalMemory.SetScript(r, scriptName, script);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Get the value of the localvar with the given name.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the localvar to get from (nested brack operations execute).</param>
 /// <returns>The value found in the localvar with the given name.</returns>
 public object GetLocal(RAM r, object varName)
 {
     return(CurrentLocalMemory.GetLocal(r, varName));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Delete the localvar with the given name from memory (with garbage collection).
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the localvar to delete (nested brack operations execute).</param>
 public void DeleteLocal(RAM r, object varName)
 {
     CurrentLocalMemory.DeleteLocal(r, varName);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Set the localvar with the given name to have the given value, and declare a localvar with the given name if none exist already.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the localvar to check for (nested brack operations execute).</param>
 /// <param name="value">The value to store in the localvars.</param>
 /// <returns>If a localvar exists with the given name.</returns>
 public void SetLocal(RAM r, object varName, object value)
 {
     CurrentLocalMemory.SetLocal(r, varName, value);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Does a localvar exist with the given name?
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the localvars to check for (nested brack operations execute).</param>
 /// <returns>If a localvars exists with the given name.</returns>
 public bool HasLocal(RAM r, object varName)
 {
     return(CurrentLocalMemory.HasLocal(r, varName));
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Delete the globavar with the given name from memory (with garbage collection).
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the globavar to delete (nested brack operations execute).</param>
 public void DeleteGlobal(RAM r, object varName)
 {
     GlobalMemory.DeleteGlobal(r, varName);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Get the value of the globalvar with the given name.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the globavar to get from (nested brack operations execute).</param>
 /// <returns>The value found in the globalvar with the given name.</returns>
 public object GetGlobal(RAM r, object varName)
 {
     return(GlobalMemory.GetGlobal(r, varName));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Set the globalvar with the given name to have the given value, and declare a globalvar with the given name if none exist already.
 /// </summary>
 /// <param name="r">The RAM used for this execution.</param>
 /// <param name="varName">The name of the globalvar to check for (nested brack operations execute).</param>
 /// <param name="value">The value to store in the globalvar.</param>
 /// <returns>If a globalvar exists with the given name.</returns>
 public void SetGlobal(RAM r, object varName, object value)
 {
     GlobalMemory.SetGlobal(r, varName, value);
 }