2#ifndef ROSE_LEX_TOKEN_DEFINITIONS
3#define ROSE_LEX_TOKEN_DEFINITIONS 1
9namespace ROSE_token_ids
21 enum ROSE_C_CXX_keywords
88 enum ROSE_C_CXX_keywords
93 C_CXX_BREAK = 3 + 500,
95 C_CXX_CATCH = 5 + 500,
97 C_CXX_CLASS = 7 + 500,
98 C_CXX_CONST = 8 + 500,
99 C_CXX_CONSTCAST = 9 + 500,
100 C_CXX_CONTINUE = 10 + 500,
101 C_CXX_DEFAULT = 11 + 500,
102 C_CXX_DEFINED = 12 + 500,
103 C_CXX_DELETE = 13 + 500,
105 C_CXX_DOUBLE = 15 + 500,
106 C_CXX_DYNAMICCAST = 16 + 500,
107 C_CXX_ELSE = 17 + 500,
108 C_CXX_ENUM = 18 + 500,
109 C_CXX_EXPLICIT = 19 + 500,
110 C_CXX_EXPORT = 20 + 500,
111 C_CXX_EXTERN = 21 + 500,
112 C_CXX_FALSE = 22 + 500,
113 C_CXX_FLOAT = 23 + 500,
114 C_CXX_FOR = 24 + 500,
115 C_CXX_FRIEND = 25 + 500,
116 C_CXX_GOTO = 26 + 500,
118 C_CXX_INLINE = 28 + 500,
119 C_CXX_INT = 29 + 500,
120 C_CXX_LONG = 30 + 500,
121 C_CXX_MUTABLE = 31 + 500,
122 C_CXX_NAMESPACE = 32 + 500,
123 C_CXX_NEW = 33 + 500,
124 C_CXX_OPERATOR = 34 + 500,
125 C_CXX_PRIVATE = 35 + 500,
126 C_CXX_PROTECTED = 36 + 500,
127 C_CXX_PUBLIC = 37 + 500,
128 C_CXX_REGISTER = 38 + 500,
129 C_CXX_REINTERPRETCAST = 39 + 500,
130 C_CXX_RETURN = 40 + 500,
131 C_CXX_SHORT = 41 + 500,
132 C_CXX_SIGNED = 42 + 500,
133 C_CXX_SIZEOF = 43 + 500,
134 C_CXX_STATIC = 44 + 500,
135 C_CXX_STATICCAST = 45 + 500,
136 C_CXX_STRUCT = 46 + 500,
137 C_CXX_SWITCH = 47 + 500,
138 C_CXX_TEMPLATE = 48 + 500,
139 C_CXX_THIS = 49 + 500,
140 C_CXX_THROW = 50 + 500,
141 C_CXX_TRY = 51 + 500,
142 C_CXX_TRUE = 52 + 500,
143 C_CXX_TYPEDEF = 53 + 500,
144 C_CXX_TYPEID = 54 + 500,
145 C_CXX_TYPENAME = 55 + 500,
146 C_CXX_UNION = 56 + 500,
147 C_CXX_UNSIGNED = 57 + 500,
148 C_CXX_USING = 58 + 500,
149 C_CXX_VIRTUAL = 59 + 500,
150 C_CXX_VOID = 60 + 500,
151 C_CXX_VOLATILE = 61 + 500,
152 C_CXX_WCHART = 62 + 500,
153 C_CXX_WHILE = 63 + 500
159enum ROSE_C_CXX_alternate_tok
161 C_CXX_LEFT_CURLY_ALT,
162 C_CXX_RIGHT_CURLY_ALT,
163 C_CXX_LEFT_SQUARE_ALT,
164 C_CXX_RIGHT_SQUARE_ALT,
171enum ROSE_C_CXX_Additional_Info
173 C_CXX_COMMENTS = 0 + 100000,
174 C_CXX_STRING_LITERALS = 1 + 100000,
175 C_CXX_IDENTIFIER = 2 + 100000,
176 C_CXX_PREPROCESSING_INFO = 3 + 100000,
177 C_CXX_UNIDENTIFIED_TOKEN = 4 + 100000,
179 C_CXX_SYNTAX = 5 + 100000,
180 C_CXX_WHITESPACE = 6 + 100000,
181 C_CXX_PRAGMA = 7 + 100000,
182 C_CXX_ERROR = 8 + 100000
193 std::string token_lexeme;
229typedef std::list<stream_element*> LexTokenStreamType;
230typedef LexTokenStreamType* LexTokenStreamTypePointer;
For preprocessing information including source comments, include , if, define, etc.