📄 main.cpp
字号:
#include "global.h"
using namespace std;
int main()
{
//////////// get grammer for standard stream
getGrammer();
getCoGrammer();
//////// emit_leftRecursion.cpp ////////////////
if(isLeftRecursion()){
cout << "***********************************" << endl;
cout << "This version cannot deal with left recursion grammer." <<endl;
cout << "The version will coming after handing in my Java " << endl;
cout << "homework :( . @ Math Frog " << endl;
cout << "***********************************" << endl;
}
else{
//////////// getVnVt.cpp ////////////////////////
getVN();
getVT();
/////////////////////////////////////////////////
/// constructFirstAndFollow.cpp ////////////////
buildFirst();
printFirst();
buildFollow();
printFollow();
////////////////////////////////////////////////
//////////////// bottomtoUpAnylysis.cpp ////////
initTable();
buildTable();
printTable();
}
/////////////// tools.cpp /////////////////////
system("PAUSE");
noRightReserve();
system("PAUSE");
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -