1 #ifndef RegExTokens_HPP
2 #define RegExTokens_HPP
3
4
5
6 #include <string>
7
8 namespace RegExTokens
9 {
10 const int END = 0;
11 const int LPAREN = 1;
12 const int RPAREN = 2;
13 const int LBRACKET = 3;
14 const int RBRACKET = 4;
15 const int LBRACE = 5;
16 const int RBRACE = 6;
17 const int ALT = 7;
18 const int STAR = 8;
19 const int PLUS = 9;
20 const int QUEST = 10;
21 const int DOT = 11;
22 const int ESCAPE = 12;
23 const int INVERSE = 13;
24 const int MINUS = 14;
25 const int CHAR = 15;
26
27 void InitTokenIdMap();
28 int GetTokenId(const std::u32string& tokenName);
29 const char* GetTokenName(int tokenId);
30 const char* GetTokenInfo(int tokenId);
31 }
32 #endif