equal
deleted
inserted
replaced
169 * of the token being parsed. |
169 * of the token being parsed. |
170 * This is only needed if we want to keep |
170 * This is only needed if we want to keep |
171 * track of the locations, in order to give |
171 * track of the locations, in order to give |
172 * more meaningful error messages! |
172 * more meaningful error messages! |
173 */ |
173 */ |
174 extern YYLTYPE yylloc; |
174 /* |
175 |
175 *extern YYLTYPE yylloc; |
|
176 b*/ |
176 #define YY_INPUT(buf,result,max_size) {\ |
177 #define YY_INPUT(buf,result,max_size) {\ |
177 result = GetNextChar(buf, max_size);\ |
178 result = GetNextChar(buf, max_size);\ |
178 if ( result <= 0 )\ |
179 if ( result <= 0 )\ |
179 result = YY_NULL;\ |
180 result = YY_NULL;\ |
180 } |
181 } |
205 yylloc.last_file = current_filename; \ |
206 yylloc.last_file = current_filename; \ |
206 yylloc.last_order = current_order; \ |
207 yylloc.last_order = current_order; \ |
207 current_tracking->currentTokenStart = current_tracking->currentChar; \ |
208 current_tracking->currentTokenStart = current_tracking->currentChar; \ |
208 current_order++; \ |
209 current_order++; \ |
209 } |
210 } |
210 |
|
211 |
211 |
212 /* Since this lexical parser we defined only works in ASCII based |
212 /* Since this lexical parser we defined only works in ASCII based |
213 * systems, we might as well make sure it is being compiled on |
213 * systems, we might as well make sure it is being compiled on |
214 * one... |
214 * one... |
215 * Lets check a few random characters... |
215 * Lets check a few random characters... |