📄 parser.h
字号:
/* $Id: parser.h 565 2006-06-05 22:07:13Z helly $ */#ifndef _parser_h#define _parser_h#include "scanner.h"#include "re.h"#include <iosfwd>#include <map>namespace re2c{class Symbol{public: RegExp* re; static Symbol *find(const SubStr&); static void ClearTable(); typedef std::map<std::string, Symbol*> SymbolTable;protected: Symbol(const SubStr& str) : re(NULL) , name(str) { }private: static SymbolTable symbol_table; Str name;#if PEDANTIC Symbol(const Symbol& oth) : re(oth.re) , name(oth.name) { } Symbol& operator = (const Symbol& oth) { new(this) Symbol(oth); return *this; }#endif};void parse(Scanner&, std::ostream&);} // end namespace re2c#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -