?? 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 + -