1 #ifndef INTERPRETER_RUNTIME_H_INCLUDED
2 #define INTERPRETER_RUNTIME_H_INCLUDED
void clear()
Definition: runtime.cpp:62
const Type_Code * mCode
Definition: runtime.hpp:18
void pop()
pop stack
Definition: runtime.cpp:94
void push(const Data &data)
push data on stack
Definition: runtime.cpp:75
std::string getStringLiteral(int index) const
Definition: runtime.cpp:34
Runtime data and engine interface.
Definition: runtime.hpp:15
Context * mContext
Definition: runtime.hpp:17
void configure(const Type_Code *code, int codeSize, Context &context)
Definition: runtime.cpp:52
int mCodeSize
Definition: runtime.hpp:19
float getFloatLiteral(int index) const
Definition: runtime.cpp:25
int mPC
Definition: runtime.hpp:20
Data & operator[](int Index)
Access stack member, counted from the top.
Definition: runtime.cpp:102
Definition: context.hpp:9
unsigned int Type_Code
Definition: types.hpp:8
int getPC() const
return program counter.
Definition: runtime.cpp:11
std::vector< Data > mStack
Definition: runtime.hpp:21
int getIntegerLiteral(int index) const
Definition: runtime.cpp:16
Context & getContext()
Definition: runtime.cpp:110
void setPC(int PC)
set program counter.
Definition: runtime.cpp:70
int code
Definition: crashcatcher.cpp:70
float Type_Float
Definition: types.hpp:16
Runtime()
Definition: runtime.cpp:9