- Timestamp:
- 12/29/06 10:28:00 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.cpp
r264 r459 1 #define yyFlexLexer OSGScanParseSkel_FlexLexer 2 3 /* A lexical scanner generated by flex*/ 4 5 /* Scanner skeleton version: 6 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ 7 */ 1 2 #line 3 "<stdout>" 3 4 #define YY_INT_ALIGNED short int 5 6 /* A lexical scanner generated by flex */ 8 7 9 8 #define FLEX_SCANNER 10 9 #define YY_FLEX_MAJOR_VERSION 2 11 10 #define YY_FLEX_MINOR_VERSION 5 12 13 14 15 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ 16 #ifdef c_plusplus 17 #ifndef __cplusplus 18 #define __cplusplus 19 #endif 20 #endif 21 11 #define YY_FLEX_SUBMINOR_VERSION 33 12 #if YY_FLEX_SUBMINOR_VERSION > 0 13 #define FLEX_BETA 14 #endif 15 16 /* The c++ scanner is a mess. The FlexLexer.h header file relies on the 17 * following macro. This is required in order to pass the c++-multiple-scanners 18 * test in the regression suite. We get reports that it breaks inheritance. 19 * We will address this in a future release of flex, or omit the C++ scanner 20 * altogether. 21 */ 22 #define yyFlexLexer OSGScanParseSkel_FlexLexer 23 24 /* First, we deal with platform-specific or compiler-specific issues. */ 25 26 /* begin standard C headers. */ 27 28 /* end standard C headers. */ 29 30 /* flex integer type definitions */ 31 32 #ifndef FLEXINT_H 33 #define FLEXINT_H 34 35 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ 36 37 #if __STDC_VERSION__ >= 199901L 38 39 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 40 * if you want the limit (max/min) macros for int types. 41 */ 42 #ifndef __STDC_LIMIT_MACROS 43 #define __STDC_LIMIT_MACROS 1 44 #endif 45 46 #include <inttypes.h> 47 typedef int8_t flex_int8_t; 48 typedef uint8_t flex_uint8_t; 49 typedef int16_t flex_int16_t; 50 typedef uint16_t flex_uint16_t; 51 typedef int32_t flex_int32_t; 52 typedef uint32_t flex_uint32_t; 53 #else 54 typedef signed char flex_int8_t; 55 typedef short int flex_int16_t; 56 typedef int flex_int32_t; 57 typedef unsigned char flex_uint8_t; 58 typedef unsigned short int flex_uint16_t; 59 typedef unsigned int flex_uint32_t; 60 #endif /* ! C99 */ 61 62 /* Limits of integral types. */ 63 #ifndef INT8_MIN 64 #define INT8_MIN (-128) 65 #endif 66 #ifndef INT16_MIN 67 #define INT16_MIN (-32767-1) 68 #endif 69 #ifndef INT32_MIN 70 #define INT32_MIN (-2147483647-1) 71 #endif 72 #ifndef INT8_MAX 73 #define INT8_MAX (127) 74 #endif 75 #ifndef INT16_MAX 76 #define INT16_MAX (32767) 77 #endif 78 #ifndef INT32_MAX 79 #define INT32_MAX (2147483647) 80 #endif 81 #ifndef UINT8_MAX 82 #define UINT8_MAX (255U) 83 #endif 84 #ifndef UINT16_MAX 85 #define UINT16_MAX (65535U) 86 #endif 87 #ifndef UINT32_MAX 88 #define UINT32_MAX (4294967295U) 89 #endif 90 91 #endif /* ! FLEXINT_H */ 92 93 /* begin standard C++ headers. */ 94 #include <iostream> 95 #include <errno.h> 96 #include <cstdlib> 97 #include <cstring> 98 /* end standard C++ headers. */ 22 99 23 100 #ifdef __cplusplus 24 25 #include <stdlib.h>26 #include <iostream>27 28 /* Use prototypes in function declarations. */29 #define YY_USE_PROTOS30 101 31 102 /* The "const" storage-class-modifier is valid. */ … … 36 107 #if __STDC__ 37 108 38 #define YY_USE_PROTOS39 109 #define YY_USE_CONST 40 110 41 111 #endif /* __STDC__ */ 42 112 #endif /* ! __cplusplus */ 43 44 #ifdef __TURBOC__45 #pragma warn -rch46 #pragma warn -use47 #include <io.h>48 #include <stdlib.h>49 #define YY_USE_CONST50 #define YY_USE_PROTOS51 #endif52 113 53 114 #ifdef YY_USE_CONST … … 57 118 #endif 58 119 59 60 #ifdef YY_USE_PROTOS61 #define YY_PROTO(proto) proto62 #else63 #define YY_PROTO(proto) ()64 #endif65 66 120 /* Returned upon end-of-file. */ 67 121 #define YY_NULL 0 … … 78 132 * definition of BEGIN. 79 133 */ 80 #define BEGIN yy_start= 1 + 2 *134 #define BEGIN (yy_start) = 1 + 2 * 81 135 82 136 /* Translate the current start state into a value that can be later handed … … 84 138 * compatibility. 85 139 */ 86 #define YY_START (( yy_start- 1) / 2)140 #define YY_START (((yy_start) - 1) / 2) 87 141 #define YYSTATE YY_START 88 142 … … 91 145 92 146 /* Special action meaning "start processing a new file". */ 93 #define YY_NEW_FILE yyrestart( yyin )147 #define YY_NEW_FILE yyrestart( yyin ) 94 148 95 149 #define YY_END_OF_BUFFER_CHAR 0 96 150 97 151 /* Size of default input buffer. */ 152 #ifndef YY_BUF_SIZE 98 153 #define YY_BUF_SIZE 16384 99 154 #endif 155 156 /* The state buf must be large enough to hold one state per character in the main buffer. 157 */ 158 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 159 160 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 161 #define YY_TYPEDEF_YY_BUFFER_STATE 100 162 typedef struct yy_buffer_state *YY_BUFFER_STATE; 163 #endif 101 164 102 165 extern int yyleng; … … 106 169 #define EOB_ACT_LAST_MATCH 2 107 170 108 /* The funky do-while in the following #define is used to turn the definition 109 * int a single C statement (which needs a semi-colon terminator). This110 * avoids problems with code like:111 *112 * if ( condition_holds )113 * yyless( 5 );114 * else115 * do_something_else();116 *117 * Prior to using the do-while the compiler would get upset at the118 * "else" because it interpreted the "if" statement as being all119 * done when it reached the ';' after the yyless() call.120 */121 122 /* Return all but the first 'n' matched characters back to the input stream. */ 123 171 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires 172 * access to the local variable yy_act. Since yyless() is a macro, it would break 173 * existing scanners that call yyless() from OUTSIDE yylex. 174 * One obvious solution it to make yy_act a global. I tried that, and saw 175 * a 5% performance hit in a non-yylineno scanner, because yy_act is 176 * normally declared as a register variable-- so it is not worth it. 177 */ 178 #define YY_LESS_LINENO(n) \ 179 do { \ 180 int yyl;\ 181 for ( yyl = n; yyl < yyleng; ++yyl )\ 182 if ( yytext[yyl] == '\n' )\ 183 --yylineno;\ 184 }while(0) 185 186 /* Return all but the first "n" matched characters back to the input stream. */ 124 187 #define yyless(n) \ 125 188 do \ 126 189 { \ 127 190 /* Undo effects of setting up yytext. */ \ 128 *yy_cp = yy_hold_char; \ 191 int yyless_macro_arg = (n); \ 192 YY_LESS_LINENO(yyless_macro_arg);\ 193 *yy_cp = (yy_hold_char); \ 129 194 YY_RESTORE_YY_MORE_OFFSET \ 130 yy_c_buf_p = yy_cp = yy_bp + n- YY_MORE_ADJ; \195 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 131 196 YY_DO_BEFORE_ACTION; /* set up yytext again */ \ 132 197 } \ 133 198 while ( 0 ) 134 199 135 #define unput(c) yyunput( c, yytext_ptr ) 136 137 /* Some routines like yy_flex_realloc() are emitted as static but are 138 not called by all lexers. This generates warnings in some compilers, 139 notably GCC. Arrange to suppress these. */ 140 #ifdef __GNUC__ 141 #define YY_MAY_BE_UNUSED __attribute__((unused)) 142 #else 143 #define YY_MAY_BE_UNUSED 144 #endif 200 #define unput(c) yyunput( c, (yytext_ptr) ) 145 201 146 202 /* The following is because we cannot portably get our hands on size_t … … 148 204 * flex-generated scanners to compile on their own). 149 205 */ 206 207 #ifndef YY_TYPEDEF_YY_SIZE_T 208 #define YY_TYPEDEF_YY_SIZE_T 150 209 typedef unsigned int yy_size_t; 151 152 210 #endif 211 212 #ifndef YY_STRUCT_YY_BUFFER_STATE 213 #define YY_STRUCT_YY_BUFFER_STATE 153 214 struct yy_buffer_state 154 215 { 216 155 217 std::istream* yy_input_file; 156 218 … … 187 249 int yy_at_bol; 188 250 251 int yy_bs_lineno; /**< The line count. */ 252 int yy_bs_column; /**< The column count. */ 253 189 254 /* Whether to try to fill the input buffer when we reach the 190 255 * end of it. … … 193 258 194 259 int yy_buffer_status; 260 195 261 #define YY_BUFFER_NEW 0 196 262 #define YY_BUFFER_NORMAL 1 … … 206 272 */ 207 273 #define YY_BUFFER_EOF_PENDING 2 274 208 275 }; 209 276 #endif /* !YY_STRUCT_YY_BUFFER_STATE */ 210 277 211 278 /* We provide macros for accessing buffer states in case in the 212 279 * future we want to put the buffer states in a more general 213 280 * "scanner state". 214 */ 215 #define YY_CURRENT_BUFFER yy_current_buffer 216 217 218 219 static void *yy_flex_alloc YY_PROTO(( yy_size_t )); 220 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED; 221 static void yy_flex_free YY_PROTO(( void * )); 281 * 282 * Returns the top of the stack, or NULL. 283 */ 284 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ 285 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ 286 : NULL) 287 288 /* Same as previous macro, but useful when we know that the buffer stack is not 289 * NULL or when we need an lvalue. For internal use only. 290 */ 291 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 292 293 void *OSGScanParseSkel_alloc (yy_size_t ); 294 void *OSGScanParseSkel_realloc (void *,yy_size_t ); 295 void OSGScanParseSkel_free (void * ); 222 296 223 297 #define yy_new_buffer yy_create_buffer … … 225 299 #define yy_set_interactive(is_interactive) \ 226 300 { \ 227 if ( ! yy_current_buffer ) \ 228 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 229 yy_current_buffer->yy_is_interactive = is_interactive; \ 301 if ( ! YY_CURRENT_BUFFER ){ \ 302 yyensure_buffer_stack (); \ 303 YY_CURRENT_BUFFER_LVALUE = \ 304 yy_create_buffer( yyin, YY_BUF_SIZE ); \ 305 } \ 306 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 230 307 } 231 308 232 309 #define yy_set_bol(at_bol) \ 233 310 { \ 234 if ( ! yy_current_buffer ) \ 235 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 236 yy_current_buffer->yy_at_bol = at_bol; \ 311 if ( ! YY_CURRENT_BUFFER ){\ 312 yyensure_buffer_stack (); \ 313 YY_CURRENT_BUFFER_LVALUE = \ 314 yy_create_buffer( yyin, YY_BUF_SIZE ); \ 315 } \ 316 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 237 317 } 238 318 239 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) 240 241 242 #define YY_USES_REJECT 319 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 320 321 /* Begin user sect3 */ 243 322 244 323 #define yywrap() 1 245 324 #define YY_SKIP_YYWRAP 325 246 326 typedef unsigned char YY_CHAR; 327 247 328 #define yytext_ptr yytext 248 329 #define YY_INTERACTIVE … … 257 338 #define YY_DECL int OSGScanParseLexer::yylex() 258 339 259 260 340 /* Done after the current pattern has been matched and before the 261 341 * corresponding action - sets up yytext. 262 342 */ 263 343 #define YY_DO_BEFORE_ACTION \ 264 yytext_ptr= yy_bp; \265 yyleng = ( int) (yy_cp - yy_bp); \266 yy_hold_char= *yy_cp; \344 (yytext_ptr) = yy_bp; \ 345 yyleng = (size_t) (yy_cp - yy_bp); \ 346 (yy_hold_char) = *yy_cp; \ 267 347 *yy_cp = '\0'; \ 268 yy_c_buf_p= yy_cp;348 (yy_c_buf_p) = yy_cp; 269 349 270 350 #define YY_NUM_RULES 99 271 351 #define YY_END_OF_BUFFER 100 272 static yyconst short int yy_acclist[527] = 352 /* This struct is not used in this scanner, 353 but its presence is necessary. */ 354 struct yy_trans_info 355 { 356 flex_int32_t yy_verify; 357 flex_int32_t yy_nxt; 358 }; 359 static yyconst flex_int16_t yy_accept[385] = 273 360 { 0, 274 100, 98, 99, 2, 98, 99, 2, 99, 91, 98, 275 99, 98, 99, 3, 98, 99, 98, 99, 96, 98, 276 99, 85, 86, 98, 99, 85, 86, 98, 99, 91, 277 98, 99, 91, 98, 99, 91, 98, 99, 91, 98, 278 99, 91, 98, 99, 91, 98, 99, 91, 98, 99, 279 91, 98, 99, 91, 98, 99, 91, 98, 99, 91, 280 98, 99, 91, 98, 99, 91, 98, 99, 94, 98, 281 99, 95, 98, 99, 91, 98, 99, 91, 98, 99, 282 91, 98, 99, 91, 98, 99, 91, 98, 99, 92, 283 98, 99, 93, 98, 99, 91, 98, 99, 97, 98, 284 285 99, 97, 99, 97, 98, 99, 2, 91, 87, 3, 286 85, 86, 85, 86, 86, 86, 16, 91, 91, 91, 287 91, 91, 91, 9, 91, 91, 91, 91, 91, 91, 288 91, 13, 91, 91, 91, 91, 91, 91, 91, 91, 289 91, 97, 97, 97, 97, 86, 84, 91, 10, 91, 361 0, 0, 0, 0, 0, 0, 100, 98, 2, 2, 362 91, 98, 3, 98, 96, 85, 85, 91, 91, 91, 363 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 364 94, 95, 91, 91, 91, 91, 91, 92, 93, 91, 365 97, 97, 97, 2, 91, 0, 87, 0, 3, 0, 366 85, 85, 86, 86, 0, 0, 16, 91, 91, 91, 367 91, 91, 9, 91, 91, 91, 91, 91, 91, 13, 368 91, 91, 91, 91, 91, 91, 91, 91, 97, 97, 369 97, 97, 0, 86, 84, 91, 10, 91, 91, 91, 370 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 371 290 372 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 291 373 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 374 11, 91, 91, 91, 91, 91, 91, 1, 91, 91, 375 91, 91, 91, 6, 91, 91, 91, 91, 91, 91, 376 91, 91, 91, 91, 91, 91, 91, 91, 90, 91, 292 377 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 293 91, 91, 91, 11, 91, 91, 91, 91, 91, 91, 294 91, 1, 91, 91, 91, 91, 91, 91, 6, 91, 295 378 91, 91, 91, 91, 91, 91, 91, 88, 91, 91, 379 91, 91, 91, 91, 91, 91, 91, 89, 91, 91, 296 380 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 297 91, 91, 91, 91, 90, 91, 91, 91, 91, 91, 381 91, 91, 91, 91, 7, 12, 91, 91, 91, 91, 382 298 383 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 299 91, 91, 91, 91, 88, 91, 91, 91, 91, 91, 300 91, 91, 91, 91, 91, 89, 91, 91, 91, 91, 301 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 302 91, 91, 91, 7, 91, 12, 91, 91, 91, 91, 303 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 304 91, 91, 91, 91, 23, 91, 91, 91, 91, 91, 305 15, 91, 91, 14, 91, 25, 91, 91, 91, 91, 306 307 91, 91, 91, 36, 91, 91, 91, 91, 91, 91, 308 91, 39, 91, 91, 91, 91, 91, 46, 91, 91, 309 91, 91, 91, 91, 91, 57, 91, 91, 91, 91, 310 91, 91, 91, 60, 91, 91, 91, 91, 91, 91, 311 91, 91, 91, 91, 91, 91, 91, 26, 91, 91, 312 29, 91, 30, 91, 31, 91, 91, 74, 91, 71, 313 91, 72, 91, 73, 91, 91, 91, 40, 91, 41, 314 91, 42, 91, 43, 91, 44, 91, 45, 91, 4, 315 91, 47, 91, 91, 50, 91, 51, 91, 52, 91, 316 91, 82, 91, 79, 91, 80, 91, 81, 91, 91, 317 318 91, 61, 91, 62, 91, 63, 91, 64, 91, 65, 319 91, 66, 91, 91, 17, 91, 91, 91, 91, 91, 320 91, 91, 91, 91, 91, 91, 91, 28, 91, 70, 321 91, 91, 38, 91, 91, 91, 91, 49, 91, 78, 322 91, 91, 59, 91, 83, 91, 19, 91, 91, 91, 323 91, 91, 91, 5, 91, 91, 69, 91, 67, 91, 324 68, 91, 91, 91, 91, 91, 77, 91, 75, 91, 325 76, 91, 91, 91, 91, 91, 91, 91, 18, 91, 326 91, 91, 91, 91, 32, 91, 33, 91, 34, 91, 327 35, 91, 37, 91, 91, 53, 91, 54, 91, 55, 328 329 91, 56, 91, 58, 91, 91, 91, 91, 20, 91, 330 8, 91, 27, 91, 48, 91, 91, 91, 22, 91, 331 21, 91, 91, 91, 24, 91 384 91, 91, 91, 23, 91, 91, 91, 91, 15, 91, 385 14, 25, 91, 91, 91, 91, 91, 91, 36, 91, 386 91, 91, 91, 91, 91, 39, 91, 91, 91, 91, 387 46, 91, 91, 91, 91, 91, 91, 57, 91, 91, 388 91, 91, 91, 91, 60, 91, 91, 91, 91, 91, 389 91, 91, 91, 91, 91, 91, 91, 26, 91, 29, 390 30, 31, 91, 74, 71, 72, 73, 91, 91, 40, 391 41, 42, 43, 44, 45, 4, 47, 91, 50, 51, 392 52, 91, 82, 79, 80, 81, 91, 91, 61, 62, 393 394 63, 64, 65, 66, 91, 17, 91, 91, 91, 91, 395 91, 91, 91, 91, 91, 91, 91, 28, 70, 91, 396 38, 91, 91, 91, 49, 78, 91, 59, 83, 19, 397 91, 91, 91, 91, 91, 5, 91, 69, 67, 68, 398 91, 91, 91, 91, 77, 75, 76, 91, 91, 91, 399 91, 91, 91, 18, 91, 91, 91, 91, 32, 33, 400 34, 35, 37, 91, 53, 54, 55, 56, 58, 91, 401 91, 91, 20, 8, 27, 48, 91, 91, 22, 21, 402 91, 91, 24, 0 332 403 } ; 333 404 334 static yyconst short int yy_accept[386] = 335 { 0, 336 1, 1, 1, 1, 1, 1, 1, 2, 4, 7, 337 9, 12, 14, 17, 19, 22, 26, 30, 33, 36, 338 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 339 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 340 99, 102, 104, 107, 108, 109, 109, 110, 110, 111, 341 111, 113, 115, 116, 117, 117, 117, 119, 120, 121, 342 122, 123, 124, 126, 127, 128, 129, 130, 131, 132, 343 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 344 144, 145, 146, 146, 147, 148, 149, 151, 152, 153, 345 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 346 347 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 348 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 349 184, 186, 187, 188, 189, 190, 191, 192, 194, 195, 350 196, 197, 198, 199, 201, 202, 203, 204, 205, 206, 351 207, 208, 209, 210, 211, 212, 213, 214, 215, 217, 352 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 353 228, 229, 230, 231, 232, 233, 234, 235, 237, 238, 354 239, 240, 241, 242, 243, 244, 245, 246, 248, 249, 355 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 356 260, 261, 262, 263, 264, 266, 268, 269, 270, 271, 357 358 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 359 282, 283, 284, 285, 287, 288, 289, 290, 291, 293, 360 294, 296, 298, 299, 300, 301, 302, 303, 304, 306, 361 307, 308, 309, 310, 311, 312, 314, 315, 316, 317, 362 318, 320, 321, 322, 323, 324, 325, 326, 328, 329, 363 330, 331, 332, 333, 334, 336, 337, 338, 339, 340, 364 341, 342, 343, 344, 345, 346, 347, 348, 350, 351, 365 353, 355, 357, 358, 360, 362, 364, 366, 367, 368, 366 370, 372, 374, 376, 378, 380, 382, 384, 385, 387, 367 389, 391, 392, 394, 396, 398, 400, 401, 402, 404, 368 369 406, 408, 410, 412, 414, 415, 417, 418, 419, 420, 370 421, 422, 423, 424, 425, 426, 427, 428, 430, 432, 371 433, 435, 436, 437, 438, 440, 442, 443, 445, 447, 372 449, 450, 451, 452, 453, 454, 456, 457, 459, 461, 373 463, 464, 465, 466, 467, 469, 471, 473, 474, 475, 374 476, 477, 478, 479, 481, 482, 483, 484, 485, 487, 375 489, 491, 493, 495, 496, 498, 500, 502, 504, 506, 376 507, 508, 509, 511, 513, 515, 517, 518, 519, 521, 377 523, 524, 525, 527, 527 378 } ; 379 380 static yyconst int yy_ec[256] = 405 static yyconst flex_int32_t yy_ec[256] = 381 406 { 0, 382 407 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, … … 410 435 } ; 411 436 412 static yyconst int yy_meta[63] =437 static yyconst flex_int32_t yy_meta[63] = 413 438 { 0, 414 439 1, 1, 2, 3, 1, 1, 3, 1, 1, 4, … … 421 446 } ; 422 447 423 static yyconst short int yy_base[390] =448 static yyconst flex_int16_t yy_base[390] = 424 449 { 0, 425 450 0, 0, 61, 68, 460, 459, 520, 523, 63, 70, … … 467 492 } ; 468 493 469 static yyconst short int yy_def[390] =494 static yyconst flex_int16_t yy_def[390] = 470 495 { 0, 471 496 384, 1, 1, 1, 1, 1, 384, 384, 384, 384, … … 513 538 } ; 514 539 515 static yyconst short int yy_nxt[586] =540 static yyconst flex_int16_t yy_nxt[586] = 516 541 { 0, 517 542 8, 9, 10, 11, 12, 13, 14, 8, 15, 16, … … 581 606 } ; 582 607 583 static yyconst short int yy_chk[586] =608 static yyconst flex_int16_t yy_chk[586] = 584 609 { 0, 585 610 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, … … 649 674 } ; 650 675 651 #define REJECT \ 652 { \ 653 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ 654 yy_cp = yy_full_match; /* restore poss. backed-over text */ \ 655 ++yy_lp; \ 656 goto find_rule; \ 657 } 676 /* Table of booleans, true if rule could match eol. */ 677 static yyconst flex_int32_t yy_rule_can_match_eol[100] = 678 { 0, 679 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 680 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 681 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 682 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 683 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 684 }; 685 686 /* The intent behind this definition is that it'll catch 687 * any uses of REJECT which flex missed. 688 */ 689 #define REJECT reject_used_but_not_detected 658 690 #define yymore() yymore_used_but_not_detected 659 691 #define YY_MORE_ADJ 0 660 692 #define YY_RESTORE_YY_MORE_OFFSET 661 693 #line 1 "Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.ll" 662 #define INITIAL 0663 694 /*---------------------------------------------------------------------------*\ 664 695 * OpenSG * … … 737 768 } 738 769 739 #define NODE 1 740 741 #define HEADER 2 770 742 771 743 772 /* Not VRML conformant */ 744 773 /* Not VRML conformant */ 745 746 /* Macros after this point can all be overridden by user definitions in 747 * section 1. 748 */ 749 750 #ifndef YY_SKIP_YYWRAP 751 #ifdef __cplusplus 752 extern "C" int yywrap YY_PROTO(( void )); 753 #else 754 extern int yywrap YY_PROTO(( void )); 755 #endif 756 #endif 757 774 #line 775 "<stdout>" 775 776 #define INITIAL 0 777 #define NODE 1 778 #define HEADER 2 779 780 #ifndef YY_NO_UNISTD_H 781 /* Special case for "unistd.h", since it is non-ANSI. We include it way 782 * down here because we want the user's section 1 to have been scanned first. 783 * The user has a chance to override it with an option. 784 */ 785 #include <unistd.h> 786 #endif 787 788 #ifndef YY_EXTRA_TYPE 789 #define YY_EXTRA_TYPE void * 790 #endif 758 791 759 792 #ifndef yytext_ptr 760 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));793 static void yy_flex_strncpy (char *,yyconst char *,int ); 761 794 #endif 762 795 763 796 #ifdef YY_NEED_STRLEN 764 static int yy_flex_strlen YY_PROTO(( yyconst char * ));797 static int yy_flex_strlen (yyconst char * ); 765 798 #endif 766 799 767 800 #ifndef YY_NO_INPUT 768 #endif 769 770 #if YY_STACK_USED 771 static int yy_start_stack_ptr = 0; 772 static int yy_start_stack_depth = 0; 773 static int *yy_start_stack = 0; 774 #ifndef YY_NO_PUSH_STATE 775 static void yy_push_state YY_PROTO(( int new_state )); 776 #endif 777 #ifndef YY_NO_POP_STATE 778 static void yy_pop_state YY_PROTO(( void )); 779 #endif 780 #ifndef YY_NO_TOP_STATE 781 static int yy_top_state YY_PROTO(( void )); 782 #endif 783 784 #else 785 #define YY_NO_PUSH_STATE 1 786 #define YY_NO_POP_STATE 1 787 #define YY_NO_TOP_STATE 1 788 #endif 789 790 #ifdef YY_MALLOC_DECL 791 YY_MALLOC_DECL 792 #else 793 #if __STDC__ 794 #ifndef __cplusplus 795 #include <stdlib.h> 796 #endif 797 #else 798 /* Just try to get by without declaring the routines. This will fail 799 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) 800 * or sizeof(void*) != sizeof(int). 801 */ 802 #endif 801 803 802 #endif 804 803 … … 809 808 810 809 /* Copy whatever the last rule matched to the standard output. */ 811 812 810 #ifndef ECHO 813 811 #define ECHO LexerOutput( yytext, yyleng ) … … 819 817 #ifndef YY_INPUT 820 818 #define YY_INPUT(buf,result,max_size) \ 819 \ 821 820 if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \ 822 821 YY_FATAL_ERROR( "input in flex scanner failed" ); 822 823 823 #endif 824 824 … … 841 841 #endif 842 842 843 /* end tables serialization structures and prototypes */ 844 843 845 /* Default declaration of generated scanner - a define so the user can 844 846 * easily add parameters. 845 847 */ 846 848 #ifndef YY_DECL 849 #define YY_DECL_IS_OURS 1 847 850 #define YY_DECL int yyFlexLexer::yylex() 848 #endif 851 #endif /* !YY_DECL */ 849 852 850 853 /* Code executed at the beginning of each rule, after yytext and yyleng … … 863 866 YY_USER_ACTION 864 867 868 /** The main scanner function which does all the work. 869 */ 865 870 YY_DECL 866 {871 { 867 872 register yy_state_type yy_current_state; 868 register char *yy_cp = NULL, *yy_bp = NULL;873 register char *yy_cp, *yy_bp; 869 874 register int yy_act; 870 875 871 876 #line 101 "Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.ll" 872 877 … … 881 886 882 887 883 884 if ( yy_init ) 888 #line 889 "<stdout>" 889 890 if ( !(yy_init) ) 885 891 { 886 yy_init = 0;892 (yy_init) = 1; 887 893 888 894 #ifdef YY_USER_INIT … … 890 896 #endif 891 897 892 if ( ! yy_start)893 yy_start= 1; /* first start state */898 if ( ! (yy_start) ) 899 (yy_start) = 1; /* first start state */ 894 900 895 901 if ( ! yyin ) 896 yyin = & std::cin;902 yyin = & std::cin; 897 903 898 904 if ( ! yyout ) 899 yyout = &std::cout; 900 901 if ( ! yy_current_buffer ) 902 yy_current_buffer = 905 yyout = & std::cout; 906 907 if ( ! YY_CURRENT_BUFFER ) { 908 yyensure_buffer_stack (); 909 YY_CURRENT_BUFFER_LVALUE = 903 910 yy_create_buffer( yyin, YY_BUF_SIZE ); 904 905 yy_load_buffer_state(); 911 } 912 913 yy_load_buffer_state( ); 906 914 } 907 915 908 916 while ( 1 ) /* loops until end-of-file is reached */ 909 917 { 910 yy_cp = yy_c_buf_p;918 yy_cp = (yy_c_buf_p); 911 919 912 920 /* Support of yytext. */ 913 *yy_cp = yy_hold_char;921 *yy_cp = (yy_hold_char); 914 922 915 923 /* yy_bp points to the position in yy_ch_buf of the start of … … 918 926 yy_bp = yy_cp; 919 927 920 yy_current_state = yy_start; 921 yy_state_ptr = yy_state_buf; 922 *yy_state_ptr++ = yy_current_state; 928 yy_current_state = (yy_start); 923 929 yy_match: 924 930 do 925 931 { 926 932 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; 933 if ( yy_accept[yy_current_state] ) 934 { 935 (yy_last_accepting_state) = yy_current_state; 936 (yy_last_accepting_cpos) = yy_cp; 937 } 927 938 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 928 939 { … … 932 943 } 933 944 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 934 *yy_state_ptr++ = yy_current_state;935 945 ++yy_cp; 936 946 } … … 938 948 939 949 yy_find_action: 940 yy_current_state = *--yy_state_ptr; 941 yy_lp = yy_accept[yy_current_state]; 942 find_rule: /* we branch to this label when backing up */ 943 for ( ; ; ) /* until we find what rule we matched */ 944 { 945 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) 946 { 947 yy_act = yy_acclist[yy_lp]; 948 { 949 yy_full_match = yy_cp; 950 break; 951 } 952 } 953 --yy_cp; 954 yy_current_state = *--yy_state_ptr; 955 yy_lp = yy_accept[yy_current_state]; 950 yy_act = yy_accept[yy_current_state]; 951 if ( yy_act == 0 ) 952 { /* have to back up */ 953 yy_cp = (yy_last_accepting_cpos); 954 yy_current_state = (yy_last_accepting_state); 955 yy_act = yy_accept[yy_current_state]; 956 956 } 957 957 958 958 YY_DO_BEFORE_ACTION; 959 959 960 if ( yy_act != YY_END_OF_BUFFER )960 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) 961 961 { 962 962 int yyl; 963 963 for ( yyl = 0; yyl < yyleng; ++yyl ) 964 964 if ( yytext[yyl] == '\n' ) 965 ++yylineno; 965 966 yylineno++; 967 ; 966 968 } 967 969 968 970 do_action: /* This label is used only to access EOF actions. */ 969 970 971 971 972 switch ( yy_act ) 972 973 { /* beginning of action switch */ 974 case 0: /* must back up */ 975 /* undo the effects of YY_DO_BEFORE_ACTION */ 976 *yy_cp = (yy_hold_char); 977 yy_cp = (yy_last_accepting_cpos); 978 yy_current_state = (yy_last_accepting_state); 979 goto yy_find_action; 980 973 981 case 1: 974 982 YY_RULE_SETUP … … 977 985 YY_BREAK 978 986 case 2: 987 /* rule 2 can match eol */ 979 988 YY_RULE_SETUP 980 989 #line 113 "Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.ll" … … 1423 1432 YY_BREAK 1424 1433 case 87: 1434 /* rule 87 can match eol */ 1425 1435 YY_RULE_SETUP 1426 1436 #line 227 "Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.ll" … … 1476 1486 /*":" BEGIN(NODE); return ':';*/ 1477 1487 case 97: 1488 /* rule 97 can match eol */ 1478 1489 YY_RULE_SETUP 1479 1490 #line 242 "Source/System/FileIO/ScanParseSkel/OSGScanParseSkelScanner.ll" … … 1490 1501 ECHO; 1491 1502 YY_BREAK 1492 case YY_STATE_EOF(INITIAL): 1493 case YY_STATE_EOF(NODE): 1494 case YY_STATE_EOF(HEADER): 1495 yyterminate(); 1503 #line 1504 "<stdout>" 1504 case YY_STATE_EOF(INITIAL): 1505 case YY_STATE_EOF(NODE): 1506 case YY_STATE_EOF(HEADER): 1507 yyterminate(); 1496 1508 1497 1509 case YY_END_OF_BUFFER: 1498 1510 { 1499 1511 /* Amount of text matched not including the EOB char. */ 1500 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;1512 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; 1501 1513 1502 1514 /* Undo the effects of YY_DO_BEFORE_ACTION. */ 1503 *yy_cp = yy_hold_char;1515 *yy_cp = (yy_hold_char); 1504 1516 YY_RESTORE_YY_MORE_OFFSET 1505 1517 1506 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )1518 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) 1507 1519 { 1508 1520 /* We're scanning a new file or input source. It's … … 1510 1522 * just pointed yyin at a new source and called 1511 1523 * yylex(). If so, then we have to assure 1512 * consistency between yy_current_bufferand our1524 * consistency between YY_CURRENT_BUFFER and our 1513 1525 * globals. Here is the right place to do so, because 1514 1526 * this is the first action (other than possibly a 1515 1527 * back-up) that will match for the new input
