📄 fcl-driver.hh
字号:
#line 7282 "../../doc/bison.texinfo"#ifndef fcl_DRIVER_HH# define fcl_DRIVER_HH# include <string># include <map># include "fcl-parser.hh"#line 7298 "../../doc/bison.texinfo"// Announce to Flex the prototype we want for lexing function, ...# define YY_DECL \ yy::fcl_parser::token_type \ yylex (yy::fcl_parser::semantic_type* yylval, \ yy::fcl_parser::location_type* yylloc, \ fcl_driver& driver)// ... and declare it for the parser's sake.YY_DECL;#line 7314 "../../doc/bison.texinfo"// Conducting the whole scanning and parsing of fcl.class fcl_driver{public: fcl_driver (); virtual ~fcl_driver (); std::map<std::string, int> variables; int result;#line 7333 "../../doc/bison.texinfo" // Handling the scanner. void scan_begin (); void scan_end (); bool trace_scanning;#line 7344 "../../doc/bison.texinfo" // Handling the parser. void parse (const std::string& f); std::string file; bool trace_parsing;#line 7358 "../../doc/bison.texinfo" // Error handling. void error (const yy::location& l, const std::string& m); void error (const std::string& m);};#endif // ! fcl_DRIVER_HH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -