compiler.cpp
来自「pl0编译器」· C++ 代码 · 共 35 行
CPP
35 行
// Compiler.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Grammar.h"
#include "Scanner.h"
#include "LL1_Analyser.h"
#include "LL1_Recognizer.h"
#include "Rec_Parse.h"
#include "Action.h"
void pause()
{
cout<<endl<<"Press Enter to continue";
getchar();
system("cls");
}
int main(int argc, char* argv[])
{
Grammar g;
pause();
Scanner s(&g);
pause();
LL1_Analyser l(g);
pause();
LL1_Recognizer r(&g,l.LL_Table,&(s.tokenlist));
pause();
Rec_Parse p(&g,l.predict,&(s.tokenlist));
pause();
r.print_table();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?