📄 interpreter.h
字号:
#ifndef __INTERPRETER_H
#define __INTERPRETER_H
#include "IntpreSymSet.h"
#include <fstream>
class Code;
class Interpreter
{
public:
Interpreter(string fileName);
int getBase(int l);
public:
void interpret();
void listCode();
public:
ActiveRecord BBlocks;
ifstream inStream;
private:
int base;
int p;
int t;
CodeStack &codeStack;//代码栈
StringStack &stringStack;//字符串栈
ActiveRecord bBlock;//活动记录
OpertionStack opStack;//运算栈
Code *pcode;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -