📄 pl0compiler.h
字号:
#ifndef __PL0COMPILER_H
#define __PL0COMPILER_H
#include <fstream>
using namespace std;
class LexAnalyze;
class Errors;
class GramAnalyze;
class SymbolTable;
class CCode;
class PL0Compiler
{
public:
PL0Compiler(const string &fileName, const string &outfileName);
~PL0Compiler();
public:
ifstream infileStream;
//ofstream outfilestream;
LexAnalyze *lexAnalyze;
Errors *errors;
GramAnalyze *gramAnalyze;
SymbolTable *symbolTable;
CCode *ccode;
public:
void displayScript();
void compile();
void listCode();
bool listError();
void wrtToFile();
private:
string outFileName;
};
#endif//PL0Compiler
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -