symboltable.h
来自「词法分析器c++实现」· C头文件 代码 · 共 21 行
H
21 行
#include<string>
#include<fstream>
using namespace std;
struct Element
{
string token;
int line;
};
class SymbolTable{
private:
Element table[2000];
int count;
public:
SymbolTable();
SymbolTable(Element array[],int number);
bool isPresent(string token0);
void insert(Element entry);
void outPutTable(ofstream& out);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?