Apply cpp naming to files
This commit is contained in:
parent
89eec0e329
commit
9d01ba2c8a
73 changed files with 160 additions and 160 deletions
29
Objects/public/interpreter/Interpreter.hpp
Normal file
29
Objects/public/interpreter/Interpreter.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include "OperandsStack.hpp"
|
||||
#include "ScopeStack.hpp"
|
||||
#include "CallStack.hpp"
|
||||
|
||||
namespace obj {
|
||||
struct Interpreter {
|
||||
OperandStack mOperandsStack;
|
||||
ScopeStack mScopeStack;
|
||||
CallStack mCallStack;
|
||||
|
||||
obj::Object* mLastParent = nullptr;
|
||||
bool mIsTypeMethod = false;
|
||||
const TypeMethod* mTypeMethod = nullptr;
|
||||
|
||||
typedef struct { obj::Object* obj; std::string id; } GlobalDef;
|
||||
|
||||
void exec(obj::MethodObject* method, obj::ClassObject* self = nullptr, obj::DictObject* globals = nullptr, tp::InitialierList<GlobalDef> globals2 = {});
|
||||
|
||||
void stepBytecode();
|
||||
void stepBytecodeIn();
|
||||
void stepBytecodeOut();
|
||||
|
||||
bool finished();
|
||||
|
||||
void execAll(obj::MethodObject* method, obj::ClassObject* self = nullptr, obj::DictObject* globals = nullptr, tp::InitialierList<GlobalDef> globals2 = {});
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue