Constructs a new interpreter with the default configuration.
- See also
- TorqueScript::InterpreterConfiguration
#include <torquescript/interpreter.hpp>
#include <torquescript/libraries/libraries.hpp>
int main(int argc, char* argv[])
{
TorqueScript::registerAllLibraries(&interpreter);
interpreter.
evaluate(
"echo(\"Hi\");");
return 0;
}
The interpreter class represents a high level instance of the TorqueScript interpreter....
Definition: interpreter.hpp:46
A structure representing overall interpreter runtime configuration. Some settings can be changed at r...
Definition: interpreterconfiguration.hpp:26
unsigned int mMaxRecursionDepth
Maximum call stack depth. If set to 0, no maximum call depth is enforced.
Definition: interpreterconfiguration.hpp:37