?? scannermain.cpp
字號:
#include "scanner.h"
void main(int argc, char *argv[]){
Token token;
if(argc<2){
printf("please input Source File!\n"); return;
}
if(!InitScanner(argv[1])){
printf("Open Source File Error!\n");
}
printf("記號類別 字符串 常數值 函數指針\n");
printf("___________________________________________\n");
while(1){
token=GetToken();
if(token.type !=NONTOKEN)
printf("%4d,%12s,%12f,%12x\n",
token.type ,token.lexeme ,token.value ,token.FuncPtr );
else break;
};
printf("___________________________________________\n");
CloseScanner();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -