interpreter.h
来自「pl0文法编译器」· C头文件 代码 · 共 33 行
H
33 行
#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 + =
减小字号Ctrl + -
显示快捷键?