⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regexpscanner.h

📁 用于词法分析的词法分析器
💻 H
字号:
/*  $Id: RegexpScanner.h,v 1.4 1997/02/02 01:31:06 matt Exp $  Regular expression scanner class.    (c) Apr 1996 Matthew Phillips.  */#ifndef _RESCAN_H#define _RESCAN_H#include <compiler/Scanner.h>class RegexpScanner : public Scanner{public:  // the order of the symbols below is important  enum {SymChar, SymDot, SymVariable, SymLBracket, SymLSBracket,	SymTilde, SymQuestion, SymCaret, SymStar, SymPlus,	SymMinus, SymRBracket, SymRSBracket, SymBar};  RegexpScanner (BufferedInputStream &i, ErrorMessageList &e)    : Scanner (i, e) {}  void getNext ();protected:  int handleVariable ();  int handleBackslash ();  char readHexNum ();  char readDecNum ();};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -