📄 main.cc
字号:
/* File: main.cc * ------------- * This file defines the main() routine for the program and not much else. * You should not need to modify this file. */ #include <string.h>#include <stdio.h>#include "utility.h"#include "parser.h"extern Program *program;/* * Function: main() * ---------------- * Entry point to the entire program. We parse the command line and turn * on any debugging flags requested by the user when invoking the program. * InitScanner() is used to set up the scanner. * InitParser() is used to set up the parser. The call to yyparse() will * attempt to parse a complete program from the input. */int main(int argc, char *argv[]){ ParseCommandLine(argc, argv);//定义在utility.cc InitScanner();//scanner.l InitParser(); //parse.y if (yyparse() == 0) /* parsing worked */ { program->PrintChildren(0); return 0; } else return -1; return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -