TorqueScript  0.2
executionstate.hpp
1 
15 #pragma once
16 
17 #include <vector>
18 #include <memory>
19 
20 #include <torquescript/interpreter.hpp>
21 #include <torquescript/executionscope.hpp>
22 
23 namespace TorqueScript
24 {
30  {
31  public:
32  ExecutionState(Interpreter* interpreter) : mInterpreter(interpreter), mExecutionScope(interpreter->mConfig, &interpreter->mStringTable)
33  {
34 
35  }
36 
39 
42 
45  };
46 }
A specific scope of execution - this is used to delineate local variables primarily.
Definition: executionscope.hpp:96
Execution state structure - this is passed around internally in the virtual machine for arbitrary acc...
Definition: executionstate.hpp:30
AddressType mInstructionPointer
Instruction pointer - used primarily for handling breaks.
Definition: executionstate.hpp:38
ExecutionScope mExecutionScope
The execution scope used for managing local variables & for loop structures.
Definition: executionstate.hpp:44
Interpreter * mInterpreter
The interpreter instance this state is associated with.
Definition: executionstate.hpp:41
The interpreter class represents a high level instance of the TorqueScript interpreter....
Definition: interpreter.hpp:46
const InterpreterConfiguration mConfig
The interpreter configuration.
Definition: interpreter.hpp:129
StringTable mStringTable
The string table associated with this interpreter.
Definition: interpreter.hpp:126
Definition: ast.hpp:28
long long int AddressType
Typedef for the signed integer type to be used when calculating addresses.
Definition: instructionsequence.hpp:28