MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / execute

Method execute

source/src/scriptinterpreter.h:784–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782 QiScriptInterpreter& operator=(const QiScriptInterpreter&) { return *this; };
783
784 auto execute(const std::string& code, QiVarMap* local = nullptr) -> QiVar
785 {
786 auto tokens = tokenize(code);
787 auto postfix = infixToPostfix(tokens);
788 try { return evaluatePostfix(postfix, local); }
789 catch (const ReturnException& e) { return e.returnValue; }
790 }
791 void interpret(const std::string& code, QiVarMap* local = nullptr)
792 {
793 std::string trimmedCode = trim(code);

Callers 1

ActionInterpreterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected