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