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