21 #include <torquescript/instructionsequence.hpp>
31 class StoredValueStack;
42 Function(
const std::string& package,
const std::string& space,
const std::string& name);
43 Function(
const std::string& package,
const std::string& space,
const std::string& name,
const std::vector<std::string>& parameterNames);
51 virtual void execute(std::shared_ptr<ConsoleObject> thisObject, std::shared_ptr<ExecutionState> state,
const std::size_t argumentCount);
76 std::string mNameSpace;
84 std::vector<std::string> mParameterNames;
A function is callable subroutine from anywhere in the language, defined by a script....
Definition: function.hpp:40
virtual void execute(std::shared_ptr< ConsoleObject > thisObject, std::shared_ptr< ExecutionState > state, const std::size_t argumentCount)
Default implementation will execute virtual instructions but can be overriden to implement native fun...
const std::string & getDeclaredNameSpace()
Retrieves the declared namespace of this function.
const std::string & getDeclaredPackage()
Retrieves the declared package of this function.
const std::string & getDeclaredName()
Retrieves the declared name of this function.
Storage class for a sequence of instructions to be executed. Also implements the primary execution co...
Definition: instructionsequence.hpp:39