1 #ifndef BuildLangTokens_HPP
2 #define BuildLangTokens_HPP
3
4
5
6 #include <cmajor/build/BuildApi.hpp>
7 #include <string>
8
9 namespace BuildLangTokens
10 {
11 const int END = 0;
12 const int ADD = 1;
13 const int REMOVE = 2;
14 const int RUN = 3;
15 const int HOST = 4;
16 const int PORT = 5;
17 const int CONFIGURATION = 6;
18 const int DEFAULT = 7;
19 const int TOOLCHAIN = 8;
20 const int CLANG = 9;
21 const int GCC = 10;
22 const int VS = 11;
23 const int PUSH = 12;
24 const int BUILD = 13;
25 const int SHOW = 14;
26 const int DEBUG = 15;
27 const int RELEASE = 16;
28 const int INSTALL = 17;
29 const int TO = 18;
30 const int FROM = 19;
31 const int USING = 20;
32 const int SERVER = 21;
33 const int ID = 22;
34 const int FILEPATH = 23;
35 const int INTEGER = 24;
36 const int VERBOSE = 25;
37 const int MESSAGES = 26;
38 const int FORCE = 27;
39 const int ONLY = 28;
40 const int ALL = 29;
41 const int REBUILD = 30;
42 const int CONFIG = 31;
43 const int LBRACKET = 32;
44 const int RBRACKET = 33;
45 const int EQ = 34;
46 const int DOT = 35;
47
48 void InitTokenIdMap();
49 int GetTokenId(const std::u32string& tokenName);
50 const char* GetTokenName(int tokenId);
51 const char* GetTokenInfo(int tokenId);
52 }
53 #endif