src/tokens.h

changeset 135
8b9132fea327
parent 134
eca2fc0acaa2
child 136
1c40bb4f8221
equal deleted inserted replaced
134:eca2fc0acaa2 135:8b9132fea327
31 31
32 #include <climits> 32 #include <climits>
33 #include "macros.h" 33 #include "macros.h"
34 34
35 // ======================================================= 35 // =======================================================
36 named_enum Token 36 named_enum class Token
37 { 37 {
38 // Non-word tokens 38 // Non-word tokens
39 LeftShiftAssign, 39 LeftShiftAssign,
40 RightShiftAssign, 40 RightShiftAssign,
41 Equals, 41 Equals,
122 Symbol, 122 Symbol,
123 Number, 123 Number,
124 String, 124 String,
125 Any, 125 Any,
126 126
127 FirstNamedToken = Bool, 127 FirstNamedToken = Token::Bool,
128 LastNamedToken = Token (int (Symbol) - 1) 128 LastNamedToken = Token::Return,
129 }; 129 };
130 130
131 #endif 131 #endif

mercurial