📄 compiler.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -