| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #line 3 "lex.sksl.c" | 8 #line 3 "lex.sksl.c" |
| 9 | 9 |
| 10 #define YY_INT_ALIGNED short int | 10 #define YY_INT_ALIGNED short int |
| 11 | 11 |
| 12 /* A lexical scanner generated by flex */ | 12 /* A lexical scanner generated by flex */ |
| 13 | 13 |
| 14 #define FLEX_SCANNER | 14 #define FLEX_SCANNER |
| 15 #define YY_FLEX_MAJOR_VERSION 2 | 15 #define YY_FLEX_MAJOR_VERSION 2 |
| 16 #define YY_FLEX_MINOR_VERSION 5 | 16 #define YY_FLEX_MINOR_VERSION 5 |
| 17 #define YY_FLEX_SUBMINOR_VERSION 35 | 17 #define YY_FLEX_SUBMINOR_VERSION 37 |
| 18 #if YY_FLEX_SUBMINOR_VERSION > 0 | 18 #if YY_FLEX_SUBMINOR_VERSION > 0 |
| 19 #define FLEX_BETA | 19 #define FLEX_BETA |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 /* First, we deal with platform-specific or compiler-specific issues. */ | 22 /* First, we deal with platform-specific or compiler-specific issues. */ |
| 23 | 23 |
| 24 /* begin standard C headers. */ | 24 /* begin standard C headers. */ |
| 25 #include <stdio.h> | 25 #include <stdio.h> |
| 26 #include <string.h> | 26 #include <string.h> |
| 27 #include <errno.h> | 27 #include <errno.h> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 #define __STDC_LIMIT_MACROS 1 | 45 #define __STDC_LIMIT_MACROS 1 |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #include <inttypes.h> | 48 #include <inttypes.h> |
| 49 typedef int8_t flex_int8_t; | 49 typedef int8_t flex_int8_t; |
| 50 typedef uint8_t flex_uint8_t; | 50 typedef uint8_t flex_uint8_t; |
| 51 typedef int16_t flex_int16_t; | 51 typedef int16_t flex_int16_t; |
| 52 typedef uint16_t flex_uint16_t; | 52 typedef uint16_t flex_uint16_t; |
| 53 typedef int32_t flex_int32_t; | 53 typedef int32_t flex_int32_t; |
| 54 typedef uint32_t flex_uint32_t; | 54 typedef uint32_t flex_uint32_t; |
| 55 typedef uint64_t flex_uint64_t; | |
| 56 #else | 55 #else |
| 57 typedef signed char flex_int8_t; | 56 typedef signed char flex_int8_t; |
| 58 typedef short int flex_int16_t; | 57 typedef short int flex_int16_t; |
| 59 typedef int flex_int32_t; | 58 typedef int flex_int32_t; |
| 60 typedef unsigned char flex_uint8_t; | 59 typedef unsigned char flex_uint8_t; |
| 61 typedef unsigned short int flex_uint16_t; | 60 typedef unsigned short int flex_uint16_t; |
| 62 typedef unsigned int flex_uint32_t; | 61 typedef unsigned int flex_uint32_t; |
| 63 #endif /* ! C99 */ | |
| 64 | 62 |
| 65 /* Limits of integral types. */ | 63 /* Limits of integral types. */ |
| 66 #ifndef INT8_MIN | 64 #ifndef INT8_MIN |
| 67 #define INT8_MIN (-128) | 65 #define INT8_MIN (-128) |
| 68 #endif | 66 #endif |
| 69 #ifndef INT16_MIN | 67 #ifndef INT16_MIN |
| 70 #define INT16_MIN (-32767-1) | 68 #define INT16_MIN (-32767-1) |
| 71 #endif | 69 #endif |
| 72 #ifndef INT32_MIN | 70 #ifndef INT32_MIN |
| 73 #define INT32_MIN (-2147483647-1) | 71 #define INT32_MIN (-2147483647-1) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 84 #ifndef UINT8_MAX | 82 #ifndef UINT8_MAX |
| 85 #define UINT8_MAX (255U) | 83 #define UINT8_MAX (255U) |
| 86 #endif | 84 #endif |
| 87 #ifndef UINT16_MAX | 85 #ifndef UINT16_MAX |
| 88 #define UINT16_MAX (65535U) | 86 #define UINT16_MAX (65535U) |
| 89 #endif | 87 #endif |
| 90 #ifndef UINT32_MAX | 88 #ifndef UINT32_MAX |
| 91 #define UINT32_MAX (4294967295U) | 89 #define UINT32_MAX (4294967295U) |
| 92 #endif | 90 #endif |
| 93 | 91 |
| 92 #endif /* ! C99 */ |
| 93 |
| 94 #endif /* ! FLEXINT_H */ | 94 #endif /* ! FLEXINT_H */ |
| 95 | 95 |
| 96 #ifdef __cplusplus | 96 #ifdef __cplusplus |
| 97 | 97 |
| 98 /* The "const" storage-class-modifier is valid. */ | 98 /* The "const" storage-class-modifier is valid. */ |
| 99 #define YY_USE_CONST | 99 #define YY_USE_CONST |
| 100 | 100 |
| 101 #else /* ! __cplusplus */ | 101 #else /* ! __cplusplus */ |
| 102 | 102 |
| 103 /* C99 requires __STDC__ to be defined as 1. */ | 103 /* C99 requires __STDC__ to be defined as 1. */ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 /* Note: We specifically omit the test for yy_rule_can_match_eol because it
requires | 188 /* Note: We specifically omit the test for yy_rule_can_match_eol because it
requires |
| 189 * access to the local variable yy_act. Since yyless() is a macro, it
would break | 189 * access to the local variable yy_act. Since yyless() is a macro, it
would break |
| 190 * existing scanners that call yyless() from OUTSIDE sksllex. | 190 * existing scanners that call yyless() from OUTSIDE sksllex. |
| 191 * One obvious solution it to make yy_act a global. I tried that, and
saw | 191 * One obvious solution it to make yy_act a global. I tried that, and
saw |
| 192 * a 5% performance hit in a non-yylineno scanner, because yy_act is | 192 * a 5% performance hit in a non-yylineno scanner, because yy_act is |
| 193 * normally declared as a register variable-- so it is not worth it. | 193 * normally declared as a register variable-- so it is not worth it. |
| 194 */ | 194 */ |
| 195 #define YY_LESS_LINENO(n) \ | 195 #define YY_LESS_LINENO(n) \ |
| 196 do { \ | 196 do { \ |
| 197 yy_size_t yyl;\ | 197 int yyl;\ |
| 198 for ( yyl = n; yyl < yyleng; ++yyl )\ | 198 for ( yyl = n; yyl < yyleng; ++yyl )\ |
| 199 if ( yytext[yyl] == '\n' )\ | 199 if ( yytext[yyl] == '\n' )\ |
| 200 --yylineno;\ | 200 --yylineno;\ |
| 201 }while(0) | 201 }while(0) |
| 202 | 202 |
| 203 /* Return all but the first "n" matched characters back to the input stream. */ | 203 /* Return all but the first "n" matched characters back to the input stream. */ |
| 204 #define yyless(n) \ | 204 #define yyless(n) \ |
| 205 do \ | 205 do \ |
| 206 { \ | 206 { \ |
| 207 /* Undo effects of setting up yytext. */ \ | 207 /* Undo effects of setting up yytext. */ \ |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); | 353 static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); |
| 354 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yy
scanner); | 354 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yy
scanner); |
| 355 static int yy_get_next_buffer (yyscan_t yyscanner ); | 355 static int yy_get_next_buffer (yyscan_t yyscanner ); |
| 356 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); | 356 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); |
| 357 | 357 |
| 358 /* Done after the current pattern has been matched and before the | 358 /* Done after the current pattern has been matched and before the |
| 359 * corresponding action - sets up yytext. | 359 * corresponding action - sets up yytext. |
| 360 */ | 360 */ |
| 361 #define YY_DO_BEFORE_ACTION \ | 361 #define YY_DO_BEFORE_ACTION \ |
| 362 yyg->yytext_ptr = yy_bp; \ | 362 yyg->yytext_ptr = yy_bp; \ |
| 363 » yyleng = (yy_size_t) (yy_cp - yy_bp); \ | 363 » yyleng = (size_t) (yy_cp - yy_bp); \ |
| 364 yyg->yy_hold_char = *yy_cp; \ | 364 yyg->yy_hold_char = *yy_cp; \ |
| 365 *yy_cp = '\0'; \ | 365 *yy_cp = '\0'; \ |
| 366 yyg->yy_c_buf_p = yy_cp; | 366 yyg->yy_c_buf_p = yy_cp; |
| 367 | 367 |
| 368 #define YY_NUM_RULES 83 | 368 #define YY_NUM_RULES 82 |
| 369 #define YY_END_OF_BUFFER 84 | 369 #define YY_END_OF_BUFFER 83 |
| 370 /* This struct is not used in this scanner, | 370 /* This struct is not used in this scanner, |
| 371 but its presence is necessary. */ | 371 but its presence is necessary. */ |
| 372 struct yy_trans_info | 372 struct yy_trans_info |
| 373 { | 373 { |
| 374 flex_int32_t yy_verify; | 374 flex_int32_t yy_verify; |
| 375 flex_int32_t yy_nxt; | 375 flex_int32_t yy_nxt; |
| 376 }; | 376 }; |
| 377 static yyconst flex_int16_t yy_accept[204] = | 377 static yyconst flex_int16_t yy_accept[201] = |
| 378 { 0, | 378 { 0, |
| 379 0, 0, 84, 82, 81, 81, 55, 82, 30, 46, | 379 0, 0, 83, 81, 80, 80, 54, 81, 29, 45, |
| 380 51, 32, 33, 44, 42, 39, 43, 38, 45, 4, | 380 50, 31, 32, 43, 41, 38, 42, 37, 44, 4, |
| 381 4, 57, 78, 62, 58, 61, 56, 36, 37, 50, | 381 56, 77, 61, 57, 60, 55, 35, 36, 49, 29, |
| 382 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | 382 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, |
| 383 30, 30, 30, 30, 30, 30, 30, 34, 49, 35, | 383 29, 29, 29, 29, 29, 29, 33, 48, 34, 80, |
| 384 81, 60, 31, 30, 69, 54, 74, 67, 40, 65, | 384 59, 30, 29, 68, 53, 73, 66, 39, 64, 40, |
| 385 41, 66, 1, 0, 79, 68, 2, 4, 0, 0, | 385 65, 1, 0, 78, 67, 2, 4, 0, 46, 63, |
| 386 47, 64, 59, 63, 48, 73, 53, 30, 30, 30, | 386 58, 62, 47, 72, 52, 29, 29, 29, 11, 29, |
| 387 12, 30, 30, 30, 30, 30, 8, 17, 30, 30, | 387 29, 29, 29, 29, 7, 16, 29, 29, 29, 29, |
| 388 30, 30, 30, 30, 30, 30, 30, 30, 30, 72, | 388 29, 29, 29, 29, 29, 29, 29, 71, 51, 30, |
| 389 | 389 |
| 390 52, 31, 77, 0, 0, 0, 79, 1, 0, 0, | 390 76, 0, 0, 0, 78, 1, 0, 0, 3, 69, |
| 391 3, 5, 70, 71, 76, 30, 30, 30, 30, 30, | 391 70, 75, 29, 29, 29, 29, 29, 29, 9, 29, |
| 392 30, 10, 30, 30, 30, 30, 30, 30, 18, 30, | 392 29, 29, 29, 29, 29, 17, 29, 29, 29, 29, |
| 393 30, 30, 30, 30, 30, 75, 0, 1, 80, 0, | 393 29, 29, 74, 0, 1, 79, 0, 0, 2, 29, |
| 394 0, 2, 30, 30, 30, 30, 9, 30, 25, 30, | 394 29, 29, 29, 8, 29, 24, 29, 29, 29, 21, |
| 395 30, 30, 22, 30, 30, 30, 30, 30, 6, 30, | 395 29, 29, 29, 29, 29, 5, 29, 29, 0, 1, |
| 396 30, 0, 1, 13, 21, 30, 30, 7, 24, 19, | 396 12, 20, 29, 29, 6, 23, 18, 29, 29, 29, |
| 397 30, 30, 30, 30, 30, 30, 30, 11, 30, 30, | 397 29, 29, 29, 29, 10, 29, 29, 27, 29, 29, |
| 398 28, 30, 30, 30, 16, 27, 30, 30, 15, 23, | 398 29, 15, 26, 29, 29, 14, 22, 29, 29, 19, |
| 399 30, 30, 20, 14, 30, 30, 30, 29, 30, 30, | 399 13, 29, 29, 29, 28, 29, 29, 29, 25, 0 |
| 400 | 400 |
| 401 30, 26, 0 | |
| 402 } ; | 401 } ; |
| 403 | 402 |
| 404 static yyconst flex_int32_t yy_ec[256] = | 403 static yyconst flex_int32_t yy_ec[256] = |
| 405 { 0, | 404 { 0, |
| 406 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, | 405 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
| 407 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, | 406 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, |
| 408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 409 1, 2, 4, 1, 5, 6, 7, 8, 1, 9, | 408 1, 2, 4, 1, 5, 6, 7, 8, 1, 9, |
| 410 10, 11, 12, 13, 14, 15, 16, 17, 18, 18, | 409 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, |
| 411 18, 18, 18, 18, 18, 18, 18, 19, 20, 21, | 410 17, 17, 17, 17, 17, 17, 17, 18, 19, 20, |
| 412 22, 23, 24, 1, 25, 25, 25, 25, 26, 25, | 411 21, 22, 23, 1, 6, 6, 6, 6, 24, 6, |
| 413 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, | 412 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, |
| 414 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, | 413 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, |
| 415 27, 1, 28, 29, 6, 1, 30, 31, 32, 33, | 414 25, 1, 26, 27, 6, 1, 28, 29, 30, 31, |
| 416 | 415 |
| 417 34, 35, 36, 37, 38, 25, 39, 40, 41, 42, | 416 32, 33, 34, 35, 36, 6, 37, 38, 39, 40, |
| 418 43, 44, 25, 45, 46, 47, 48, 49, 50, 51, | 417 41, 42, 6, 43, 44, 45, 46, 47, 48, 6, |
| 419 52, 25, 53, 54, 55, 1, 1, 1, 1, 1, | 418 49, 6, 50, 51, 52, 1, 1, 1, 1, 1, |
| 420 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 420 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 423 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 424 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 423 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 424 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 427 | 426 |
| 428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 433 1, 1, 1, 1, 1 | 432 1, 1, 1, 1, 1 |
| 434 } ; | 433 } ; |
| 435 | 434 |
| 436 static yyconst flex_int32_t yy_meta[56] = | 435 static yyconst flex_int32_t yy_meta[53] = |
| 437 { 0, | 436 { 0, |
| 438 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, | 437 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, |
| 439 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, | 438 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, |
| 440 1, 1, 1, 1, 5, 5, 1, 1, 1, 5, | 439 1, 1, 1, 3, 1, 1, 1, 3, 3, 3, |
| 441 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, | 440 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 442 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, | 441 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, |
| 443 5, 5, 1, 1, 1 | 442 1, 1 |
| 444 } ; | 443 } ; |
| 445 | 444 |
| 446 static yyconst flex_int16_t yy_base[210] = | 445 static yyconst flex_int16_t yy_base[206] = |
| 447 { 0, | 446 { 0, |
| 448 0, 0, 272, 273, 54, 56, 249, 0, 0, 248, | 447 0, 0, 238, 239, 51, 53, 216, 0, 0, 215, |
| 449 52, 273, 273, 247, 49, 273, 48, 46, 56, 51, | 448 49, 239, 239, 214, 46, 239, 45, 217, 52, 45, |
| 450 58, 273, 273, 58, 246, 59, 273, 273, 273, 61, | 449 239, 239, 44, 212, 50, 239, 239, 239, 53, 189, |
| 451 222, 223, 48, 225, 57, 226, 53, 63, 229, 219, | 450 190, 40, 192, 47, 193, 46, 50, 196, 186, 180, |
| 452 213, 215, 225, 211, 212, 214, 218, 273, 67, 273, | 451 182, 192, 178, 179, 181, 185, 239, 61, 239, 81, |
| 453 96, 273, 0, 0, 273, 232, 273, 273, 273, 273, | 452 239, 0, 0, 239, 198, 239, 239, 239, 239, 239, |
| 454 273, 273, 86, 242, 0, 273, 90, 96, 111, 0, | 453 239, 70, 207, 0, 239, 72, 75, 81, 196, 239, |
| 455 230, 273, 273, 273, 229, 273, 228, 215, 206, 201, | 454 239, 239, 195, 239, 194, 182, 173, 168, 0, 167, |
| 456 0, 200, 205, 214, 198, 206, 0, 198, 188, 189, | 455 172, 181, 165, 173, 0, 165, 156, 156, 172, 160, |
| 457 205, 193, 189, 201, 187, 188, 184, 193, 192, 273, | 456 156, 168, 154, 155, 151, 160, 159, 239, 173, 0, |
| 458 | 457 |
| 459 207, 0, 273, 119, 217, 211, 0, 92, 126, 117, | 458 239, 89, 182, 176, 0, 91, 97, 174, 173, 239, |
| 460 124, 0, 273, 273, 273, 196, 99, 193, 190, 177, | 459 239, 239, 161, 72, 158, 155, 142, 140, 0, 149, |
| 461 175, 0, 184, 172, 176, 174, 179, 182, 0, 183, | 460 137, 141, 139, 144, 147, 0, 148, 131, 130, 143, |
| 462 166, 165, 178, 176, 170, 273, 130, 132, 273, 139, | 461 141, 135, 239, 155, 154, 239, 107, 153, 152, 131, |
| 463 137, 141, 170, 161, 169, 176, 0, 171, 0, 160, | 462 122, 130, 137, 0, 132, 0, 121, 117, 115, 0, |
| 464 156, 154, 0, 153, 155, 161, 153, 165, 0, 153, | 463 114, 116, 122, 114, 126, 0, 114, 122, 136, 135, |
| 465 161, 143, 145, 0, 0, 152, 148, 0, 0, 0, | 464 0, 0, 111, 107, 0, 0, 0, 104, 109, 103, |
| 466 145, 150, 144, 143, 146, 140, 141, 0, 137, 146, | 465 102, 105, 99, 100, 0, 96, 110, 0, 98, 97, |
| 467 0, 121, 108, 101, 0, 0, 91, 93, 0, 0, | 466 102, 0, 0, 98, 102, 0, 0, 90, 79, 0, |
| 468 85, 74, 0, 0, 83, 63, 54, 0, 58, 45, | 467 0, 88, 73, 65, 0, 69, 53, 65, 0, 239, |
| 469 | 468 |
| 470 31, 0, 273, 161, 164, 167, 172, 177, 179 | 469 58, 122, 124, 128, 132 |
| 471 } ; | 470 } ; |
| 472 | 471 |
| 473 static yyconst flex_int16_t yy_def[210] = | 472 static yyconst flex_int16_t yy_def[206] = |
| 474 { 0, | 473 { 0, |
| 475 203, 1, 203, 203, 203, 203, 203, 204, 205, 203, | 474 200, 1, 200, 200, 200, 200, 200, 201, 202, 200, |
| 476 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 475 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 477 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 476 200, 200, 200, 200, 200, 200, 200, 200, 200, 202, |
| 478 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 477 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 479 205, 205, 205, 205, 205, 205, 205, 203, 203, 203, | 478 202, 202, 202, 202, 202, 202, 200, 200, 200, 200, |
| 480 203, 203, 206, 205, 203, 203, 203, 203, 203, 203, | 479 200, 203, 202, 200, 200, 200, 200, 200, 200, 200, |
| 481 203, 203, 203, 207, 208, 203, 203, 203, 203, 209, | 480 200, 200, 204, 205, 200, 200, 200, 200, 200, 200, |
| 482 203, 203, 203, 203, 203, 203, 203, 205, 205, 205, | 481 200, 200, 200, 200, 200, 202, 202, 202, 202, 202, |
| 483 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 482 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 484 205, 205, 205, 205, 205, 205, 205, 205, 205, 203, | 483 202, 202, 202, 202, 202, 202, 202, 200, 200, 203, |
| 485 | 484 |
| 486 203, 206, 203, 203, 207, 207, 208, 203, 203, 203, | 485 200, 200, 204, 204, 205, 200, 200, 200, 200, 200, |
| 487 203, 209, 203, 203, 203, 205, 205, 205, 205, 205, | 486 200, 200, 202, 202, 202, 202, 202, 202, 202, 202, |
| 488 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 487 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 489 205, 205, 205, 205, 205, 203, 203, 203, 203, 203, | 488 202, 202, 200, 200, 200, 200, 200, 200, 200, 202, |
| 490 203, 203, 205, 205, 205, 205, 205, 205, 205, 205, | 489 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 491 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 490 202, 202, 202, 202, 202, 202, 202, 202, 200, 200, |
| 492 205, 203, 203, 205, 205, 205, 205, 205, 205, 205, | 491 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 493 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 492 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 494 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 493 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 495 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, | 494 202, 202, 202, 202, 202, 202, 202, 202, 202, 0, |
| 496 | 495 |
| 497 205, 205, 0, 203, 203, 203, 203, 203, 203 | 496 200, 200, 200, 200, 200 |
| 498 } ; | 497 } ; |
| 499 | 498 |
| 500 static yyconst flex_int16_t yy_nxt[329] = | 499 static yyconst flex_int16_t yy_nxt[292] = |
| 501 { 0, | 500 { 0, |
| 502 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, | 501 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
| 503 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, | 502 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, |
| 504 24, 25, 26, 27, 9, 9, 28, 29, 30, 9, | 503 24, 25, 26, 9, 27, 28, 29, 9, 30, 31, |
| 505 31, 32, 33, 34, 35, 9, 36, 37, 9, 38, | 504 32, 33, 34, 9, 35, 36, 9, 37, 38, 39, |
| 506 39, 40, 41, 42, 43, 44, 45, 46, 9, 47, | 505 40, 41, 42, 43, 44, 45, 9, 46, 9, 47, |
| 507 9, 9, 48, 49, 50, 51, 51, 51, 51, 56, | 506 48, 49, 50, 50, 50, 50, 55, 58, 60, 66, |
| 508 59, 61, 63, 63, 202, 67, 64, 68, 68, 62, | 507 52, 67, 63, 69, 70, 61, 59, 64, 68, 56, |
| 509 60, 65, 67, 57, 68, 68, 69, 66, 71, 72, | 508 72, 73, 65, 74, 81, 78, 68, 87, 85, 75, |
| 510 74, 75, 76, 69, 69, 80, 83, 87, 100, 77, | 509 79, 98, 50, 50, 82, 86, 62, 83, 106, 66, |
| 511 81, 69, 89, 201, 88, 200, 84, 51, 51, 85, | 510 88, 67, 108, 102, 108, 107, 199, 109, 68, 198, |
| 512 | 511 |
| 513 199, 70, 63, 63, 198, 90, 108, 108, 108, 108, | 512 134, 102, 134, 107, 197, 135, 68, 106, 138, 196, |
| 514 67, 104, 68, 68, 197, 109, 196, 140, 195, 104, | 513 138, 99, 195, 139, 137, 141, 142, 194, 159, 193, |
| 515 101, 69, 110, 109, 110, 140, 194, 111, 111, 69, | 514 159, 192, 137, 160, 53, 53, 100, 100, 103, 103, |
| 516 137, 193, 137, 111, 111, 138, 138, 141, 192, 141, | 515 103, 103, 105, 191, 105, 105, 190, 189, 188, 187, |
| 517 111, 111, 142, 142, 144, 145, 138, 138, 138, 138, | 516 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, |
| 518 162, 191, 162, 142, 142, 163, 163, 142, 142, 163, | 517 176, 160, 160, 175, 174, 173, 172, 171, 170, 169, |
| 519 163, 163, 163, 53, 190, 53, 54, 54, 54, 102, | 518 168, 167, 166, 165, 164, 163, 162, 161, 139, 139, |
| 520 102, 102, 105, 105, 105, 105, 105, 107, 189, 107, | 519 135, 135, 158, 157, 156, 155, 154, 153, 152, 151, |
| 521 107, 107, 112, 112, 188, 187, 186, 185, 184, 183, | 520 150, 149, 148, 147, 146, 145, 144, 143, 140, 109, |
| 522 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, | 521 109, 136, 104, 133, 132, 131, 130, 129, 128, 127, |
| 523 | 522 |
| 524 172, 171, 170, 169, 168, 167, 166, 165, 164, 161, | 523 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, |
| 525 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, | 524 116, 115, 114, 113, 112, 111, 110, 104, 101, 97, |
| 526 150, 149, 148, 147, 146, 143, 139, 106, 136, 135, | 525 96, 95, 94, 93, 92, 91, 90, 89, 84, 80, |
| 527 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, | 526 77, 76, 71, 62, 57, 54, 51, 200, 3, 200, |
| 528 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, | 527 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 529 114, 113, 106, 103, 99, 98, 97, 96, 95, 94, | 528 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 530 93, 92, 91, 86, 82, 79, 78, 73, 58, 55, | 529 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 531 52, 203, 3, 203, 203, 203, 203, 203, 203, 203, | 530 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 532 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 531 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 533 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 532 200 |
| 534 | 533 |
| 535 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | |
| 536 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | |
| 537 203, 203, 203, 203, 203, 203, 203, 203 | |
| 538 } ; | 534 } ; |
| 539 | 535 |
| 540 static yyconst flex_int16_t yy_chk[329] = | 536 static yyconst flex_int16_t yy_chk[292] = |
| 541 { 0, | 537 { 0, |
| 542 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 538 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 543 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 539 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 544 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 540 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 545 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 541 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 546 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 542 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 547 1, 1, 1, 1, 1, 5, 5, 6, 6, 11, | 543 1, 1, 5, 5, 6, 6, 11, 15, 17, 20, |
| 548 15, 17, 18, 18, 201, 20, 19, 20, 20, 17, | 544 201, 20, 19, 23, 23, 17, 15, 19, 20, 11, |
| 549 15, 19, 21, 11, 21, 21, 20, 19, 24, 24, | 545 25, 25, 19, 29, 34, 32, 20, 37, 36, 29, |
| 550 26, 26, 30, 21, 20, 33, 35, 37, 49, 30, | 546 32, 48, 50, 50, 34, 36, 62, 34, 66, 67, |
| 551 33, 21, 38, 200, 37, 199, 35, 51, 51, 35, | 547 37, 67, 68, 62, 68, 66, 198, 68, 67, 197, |
| 552 | 548 |
| 553 197, 20, 63, 63, 196, 38, 67, 67, 108, 108, | 549 102, 62, 102, 66, 196, 102, 67, 106, 107, 194, |
| 554 68, 63, 68, 68, 195, 67, 192, 108, 191, 63, | 550 107, 48, 193, 107, 106, 114, 114, 192, 137, 189, |
| 555 49, 68, 69, 67, 69, 108, 188, 69, 69, 68, | 551 137, 188, 106, 137, 202, 202, 203, 203, 204, 204, |
| 556 104, 187, 104, 110, 110, 104, 104, 109, 184, 109, | 552 204, 204, 205, 185, 205, 205, 184, 181, 180, 179, |
| 557 111, 111, 109, 109, 117, 117, 137, 137, 138, 138, | 553 177, 176, 174, 173, 172, 171, 170, 169, 168, 164, |
| 558 140, 183, 140, 141, 141, 140, 140, 142, 142, 162, | 554 163, 160, 159, 158, 157, 155, 154, 153, 152, 151, |
| 559 162, 163, 163, 204, 182, 204, 205, 205, 205, 206, | 555 149, 148, 147, 145, 143, 142, 141, 140, 139, 138, |
| 560 206, 206, 207, 207, 207, 207, 207, 208, 180, 208, | 556 135, 134, 132, 131, 130, 129, 128, 127, 125, 124, |
| 561 208, 208, 209, 209, 179, 177, 176, 175, 174, 173, | 557 123, 122, 121, 120, 118, 117, 116, 115, 113, 109, |
| 562 172, 171, 167, 166, 161, 160, 158, 157, 156, 155, | 558 108, 104, 103, 99, 97, 96, 95, 94, 93, 92, |
| 563 | 559 |
| 564 154, 152, 151, 150, 148, 146, 145, 144, 143, 135, | 560 91, 90, 89, 88, 87, 86, 84, 83, 82, 81, |
| 565 134, 133, 132, 131, 130, 128, 127, 126, 125, 124, | 561 80, 78, 77, 76, 75, 73, 69, 63, 55, 46, |
| 566 123, 121, 120, 119, 118, 116, 106, 105, 101, 99, | 562 45, 44, 43, 42, 41, 40, 39, 38, 35, 33, |
| 567 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, | 563 31, 30, 24, 18, 14, 10, 7, 3, 200, 200, |
| 568 88, 86, 85, 84, 83, 82, 80, 79, 78, 77, | 564 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 569 75, 71, 64, 56, 47, 46, 45, 44, 43, 42, | 565 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 570 41, 40, 39, 36, 34, 32, 31, 25, 14, 10, | 566 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 571 7, 3, 203, 203, 203, 203, 203, 203, 203, 203, | 567 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 572 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 568 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 573 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | 569 200 |
| 574 | 570 |
| 575 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | |
| 576 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, | |
| 577 203, 203, 203, 203, 203, 203, 203, 203 | |
| 578 } ; | 571 } ; |
| 579 | 572 |
| 580 /* Table of booleans, true if rule could match eol. */ | 573 /* Table of booleans, true if rule could match eol. */ |
| 581 static yyconst flex_int32_t yy_rule_can_match_eol[84] = | 574 static yyconst flex_int32_t yy_rule_can_match_eol[83] = |
| 582 { 0, | 575 { 0, |
| 583 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 576 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 584 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 577 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 585 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 578 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 586 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 579 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, |
| 587 1, 1, 0, 0, }; | 580 1, 0, 0, }; |
| 588 | 581 |
| 589 /* The intent behind this definition is that it'll catch | 582 /* The intent behind this definition is that it'll catch |
| 590 * any uses of REJECT which flex missed. | 583 * any uses of REJECT which flex missed. |
| 591 */ | 584 */ |
| 592 #define REJECT reject_used_but_not_detected | 585 #define REJECT reject_used_but_not_detected |
| 593 #define yymore() yymore_used_but_not_detected | 586 #define yymore() yymore_used_but_not_detected |
| 594 #define YY_MORE_ADJ 0 | 587 #define YY_MORE_ADJ 0 |
| 595 #define YY_RESTORE_YY_MORE_OFFSET | 588 #define YY_RESTORE_YY_MORE_OFFSET |
| 596 #line 1 "sksl.flex" | 589 #line 1 "sksl.flex" |
| 597 /* | 590 /* |
| 598 | 591 |
| 599 This file is IGNORED during the build process! | 592 This file is IGNORED during the build process! |
| 600 | 593 |
| 601 As this file is updated so infrequently and flex is not universally pres
ent on build machines, | 594 As this file is updated so infrequently and flex is not universally pres
ent on build machines, |
| 602 the lex.sksl.c file must be manually regenerated if you make any changes
to this file. Just run: | 595 the lex.sksl.c file must be manually regenerated if you make any changes
to this file. Just run: |
| 603 | 596 |
| 604 flex sksl.flex | 597 flex sksl.flex |
| 605 | 598 |
| 606 You will have to manually add a copyright notice to the top of lex.sksl.c. | 599 You will have to manually add a copyright notice to the top of lex.sksl.c. |
| 607 | 600 |
| 608 */ | 601 */ |
| 609 #define YY_NO_UNISTD_H 1 | 602 #define YY_NO_UNISTD_H 1 |
| 610 #line 605 "lex.sksl.c" | 603 #line 598 "lex.sksl.c" |
| 611 | 604 |
| 612 #define INITIAL 0 | 605 #define INITIAL 0 |
| 613 | 606 |
| 614 #ifndef YY_NO_UNISTD_H | 607 #ifndef YY_NO_UNISTD_H |
| 615 /* Special case for "unistd.h", since it is non-ANSI. We include it way | 608 /* Special case for "unistd.h", since it is non-ANSI. We include it way |
| 616 * down here because we want the user's section 1 to have been scanned first. | 609 * down here because we want the user's section 1 to have been scanned first. |
| 617 * The user has a chance to override it with an option. | 610 * The user has a chance to override it with an option. |
| 618 */ | 611 */ |
| 619 #include <unistd.h> | 612 #include <unistd.h> |
| 620 #endif | 613 #endif |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 void skslset_out (FILE * out_str ,yyscan_t yyscanner ); | 678 void skslset_out (FILE * out_str ,yyscan_t yyscanner ); |
| 686 | 679 |
| 687 yy_size_t skslget_leng (yyscan_t yyscanner ); | 680 yy_size_t skslget_leng (yyscan_t yyscanner ); |
| 688 | 681 |
| 689 char *skslget_text (yyscan_t yyscanner ); | 682 char *skslget_text (yyscan_t yyscanner ); |
| 690 | 683 |
| 691 int skslget_lineno (yyscan_t yyscanner ); | 684 int skslget_lineno (yyscan_t yyscanner ); |
| 692 | 685 |
| 693 void skslset_lineno (int line_number ,yyscan_t yyscanner ); | 686 void skslset_lineno (int line_number ,yyscan_t yyscanner ); |
| 694 | 687 |
| 688 int skslget_column (yyscan_t yyscanner ); |
| 689 |
| 690 void skslset_column (int column_no ,yyscan_t yyscanner ); |
| 691 |
| 695 /* Macros after this point can all be overridden by user definitions in | 692 /* Macros after this point can all be overridden by user definitions in |
| 696 * section 1. | 693 * section 1. |
| 697 */ | 694 */ |
| 698 | 695 |
| 699 #ifndef YY_SKIP_YYWRAP | 696 #ifndef YY_SKIP_YYWRAP |
| 700 #ifdef __cplusplus | 697 #ifdef __cplusplus |
| 701 extern "C" int skslwrap (yyscan_t yyscanner ); | 698 extern "C" int skslwrap (yyscan_t yyscanner ); |
| 702 #else | 699 #else |
| 703 extern int skslwrap (yyscan_t yyscanner ); | 700 extern int skslwrap (yyscan_t yyscanner ); |
| 704 #endif | 701 #endif |
| (...skipping 22 matching lines...) Expand all Loading... |
| 727 /* Amount of stuff to slurp up with each read. */ | 724 /* Amount of stuff to slurp up with each read. */ |
| 728 #ifndef YY_READ_BUF_SIZE | 725 #ifndef YY_READ_BUF_SIZE |
| 729 #define YY_READ_BUF_SIZE 8192 | 726 #define YY_READ_BUF_SIZE 8192 |
| 730 #endif | 727 #endif |
| 731 | 728 |
| 732 /* Copy whatever the last rule matched to the standard output. */ | 729 /* Copy whatever the last rule matched to the standard output. */ |
| 733 #ifndef ECHO | 730 #ifndef ECHO |
| 734 /* This used to be an fputs(), but since the string might contain NUL's, | 731 /* This used to be an fputs(), but since the string might contain NUL's, |
| 735 * we now use fwrite(). | 732 * we now use fwrite(). |
| 736 */ | 733 */ |
| 737 #define ECHO fwrite( yytext, yyleng, 1, yyout ) | 734 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
| 738 #endif | 735 #endif |
| 739 | 736 |
| 740 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, | 737 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| 741 * is returned in "result". | 738 * is returned in "result". |
| 742 */ | 739 */ |
| 743 #ifndef YY_INPUT | 740 #ifndef YY_INPUT |
| 744 #define YY_INPUT(buf,result,max_size) \ | 741 #define YY_INPUT(buf,result,max_size) \ |
| 745 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ | 742 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
| 746 { \ | 743 { \ |
| 747 int c = '*'; \ | 744 int c = '*'; \ |
| 748 » » yy_size_t n; \ | 745 » » size_t n; \ |
| 749 for ( n = 0; n < max_size && \ | 746 for ( n = 0; n < max_size && \ |
| 750 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ | 747 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
| 751 buf[n] = (char) c; \ | 748 buf[n] = (char) c; \ |
| 752 if ( c == '\n' ) \ | 749 if ( c == '\n' ) \ |
| 753 buf[n++] = (char) c; \ | 750 buf[n++] = (char) c; \ |
| 754 if ( c == EOF && ferror( yyin ) ) \ | 751 if ( c == EOF && ferror( yyin ) ) \ |
| 755 YY_FATAL_ERROR( "input in flex scanner failed" ); \ | 752 YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| 756 result = n; \ | 753 result = n; \ |
| 757 } \ | 754 } \ |
| 758 else \ | 755 else \ |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 YY_DECL | 821 YY_DECL |
| 825 { | 822 { |
| 826 register yy_state_type yy_current_state; | 823 register yy_state_type yy_current_state; |
| 827 register char *yy_cp, *yy_bp; | 824 register char *yy_cp, *yy_bp; |
| 828 register int yy_act; | 825 register int yy_act; |
| 829 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 826 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 830 | 827 |
| 831 #line 23 "sksl.flex" | 828 #line 23 "sksl.flex" |
| 832 | 829 |
| 833 | 830 |
| 834 #line 829 "lex.sksl.c" | 831 #line 826 "lex.sksl.c" |
| 835 | 832 |
| 836 if ( !yyg->yy_init ) | 833 if ( !yyg->yy_init ) |
| 837 { | 834 { |
| 838 yyg->yy_init = 1; | 835 yyg->yy_init = 1; |
| 839 | 836 |
| 840 #ifdef YY_USER_INIT | 837 #ifdef YY_USER_INIT |
| 841 YY_USER_INIT; | 838 YY_USER_INIT; |
| 842 #endif | 839 #endif |
| 843 | 840 |
| 844 if ( ! yyg->yy_start ) | 841 if ( ! yyg->yy_start ) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 { | 874 { |
| 878 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; | 875 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
| 879 if ( yy_accept[yy_current_state] ) | 876 if ( yy_accept[yy_current_state] ) |
| 880 { | 877 { |
| 881 yyg->yy_last_accepting_state = yy_current_state; | 878 yyg->yy_last_accepting_state = yy_current_state; |
| 882 yyg->yy_last_accepting_cpos = yy_cp; | 879 yyg->yy_last_accepting_cpos = yy_cp; |
| 883 } | 880 } |
| 884 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_c
urrent_state ) | 881 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_c
urrent_state ) |
| 885 { | 882 { |
| 886 yy_current_state = (int) yy_def[yy_current_state
]; | 883 yy_current_state = (int) yy_def[yy_current_state
]; |
| 887 » » » » if ( yy_current_state >= 204 ) | 884 » » » » if ( yy_current_state >= 201 ) |
| 888 yy_c = yy_meta[(unsigned int) yy_c]; | 885 yy_c = yy_meta[(unsigned int) yy_c]; |
| 889 } | 886 } |
| 890 yy_current_state = yy_nxt[yy_base[yy_current_state] + (u
nsigned int) yy_c]; | 887 yy_current_state = yy_nxt[yy_base[yy_current_state] + (u
nsigned int) yy_c]; |
| 891 ++yy_cp; | 888 ++yy_cp; |
| 892 } | 889 } |
| 893 » » while ( yy_current_state != 203 ); | 890 » » while ( yy_current_state != 200 ); |
| 894 yy_cp = yyg->yy_last_accepting_cpos; | 891 yy_cp = yyg->yy_last_accepting_cpos; |
| 895 yy_current_state = yyg->yy_last_accepting_state; | 892 yy_current_state = yyg->yy_last_accepting_state; |
| 896 | 893 |
| 897 yy_find_action: | 894 yy_find_action: |
| 898 yy_act = yy_accept[yy_current_state]; | 895 yy_act = yy_accept[yy_current_state]; |
| 899 | 896 |
| 900 YY_DO_BEFORE_ACTION; | 897 YY_DO_BEFORE_ACTION; |
| 901 | 898 |
| 902 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act]
) | 899 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act]
) |
| 903 { | 900 { |
| 904 » » » yy_size_t yyl; | 901 » » » int yyl; |
| 905 for ( yyl = 0; yyl < yyleng; ++yyl ) | 902 for ( yyl = 0; yyl < yyleng; ++yyl ) |
| 906 if ( yytext[yyl] == '\n' ) | 903 if ( yytext[yyl] == '\n' ) |
| 907 | 904 |
| 908 do{ yylineno++; | 905 do{ yylineno++; |
| 909 yycolumn=0; | 906 yycolumn=0; |
| 910 }while(0) | 907 }while(0) |
| 911 ; | 908 ; |
| 912 } | 909 } |
| 913 | 910 |
| 914 do_action: /* This label is used only to access EOF actions. */ | 911 do_action: /* This label is used only to access EOF actions. */ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 938 { return SkSL::Token::FLOAT_LITERAL; } | 935 { return SkSL::Token::FLOAT_LITERAL; } |
| 939 YY_BREAK | 936 YY_BREAK |
| 940 case 4: | 937 case 4: |
| 941 YY_RULE_SETUP | 938 YY_RULE_SETUP |
| 942 #line 31 "sksl.flex" | 939 #line 31 "sksl.flex" |
| 943 { return SkSL::Token::INT_LITERAL; } | 940 { return SkSL::Token::INT_LITERAL; } |
| 944 YY_BREAK | 941 YY_BREAK |
| 945 case 5: | 942 case 5: |
| 946 YY_RULE_SETUP | 943 YY_RULE_SETUP |
| 947 #line 33 "sksl.flex" | 944 #line 33 "sksl.flex" |
| 948 { return SkSL::Token::INT_LITERAL; } | 945 { return SkSL::Token::TRUE_LITERAL; } |
| 949 YY_BREAK | 946 YY_BREAK |
| 950 case 6: | 947 case 6: |
| 951 YY_RULE_SETUP | 948 YY_RULE_SETUP |
| 952 #line 35 "sksl.flex" | 949 #line 35 "sksl.flex" |
| 953 { return SkSL::Token::TRUE_LITERAL; } | 950 { return SkSL::Token::FALSE_LITERAL; } |
| 954 YY_BREAK | 951 YY_BREAK |
| 955 case 7: | 952 case 7: |
| 956 YY_RULE_SETUP | 953 YY_RULE_SETUP |
| 957 #line 37 "sksl.flex" | 954 #line 37 "sksl.flex" |
| 958 { return SkSL::Token::FALSE_LITERAL; } | 955 { return SkSL::Token::IF; } |
| 959 YY_BREAK | 956 YY_BREAK |
| 960 case 8: | 957 case 8: |
| 961 YY_RULE_SETUP | 958 YY_RULE_SETUP |
| 962 #line 39 "sksl.flex" | 959 #line 39 "sksl.flex" |
| 963 { return SkSL::Token::IF; } | 960 { return SkSL::Token::ELSE; } |
| 964 YY_BREAK | 961 YY_BREAK |
| 965 case 9: | 962 case 9: |
| 966 YY_RULE_SETUP | 963 YY_RULE_SETUP |
| 967 #line 41 "sksl.flex" | 964 #line 41 "sksl.flex" |
| 968 { return SkSL::Token::ELSE; } | 965 { return SkSL::Token::FOR; } |
| 969 YY_BREAK | 966 YY_BREAK |
| 970 case 10: | 967 case 10: |
| 971 YY_RULE_SETUP | 968 YY_RULE_SETUP |
| 972 #line 43 "sksl.flex" | 969 #line 43 "sksl.flex" |
| 973 { return SkSL::Token::FOR; } | 970 { return SkSL::Token::WHILE; } |
| 974 YY_BREAK | 971 YY_BREAK |
| 975 case 11: | 972 case 11: |
| 976 YY_RULE_SETUP | 973 YY_RULE_SETUP |
| 977 #line 45 "sksl.flex" | 974 #line 45 "sksl.flex" |
| 978 { return SkSL::Token::WHILE; } | 975 { return SkSL::Token::DO; } |
| 979 YY_BREAK | 976 YY_BREAK |
| 980 case 12: | 977 case 12: |
| 981 YY_RULE_SETUP | 978 YY_RULE_SETUP |
| 982 #line 47 "sksl.flex" | 979 #line 47 "sksl.flex" |
| 983 { return SkSL::Token::DO; } | 980 { return SkSL::Token::BREAK; } |
| 984 YY_BREAK | 981 YY_BREAK |
| 985 case 13: | 982 case 13: |
| 986 YY_RULE_SETUP | 983 YY_RULE_SETUP |
| 987 #line 49 "sksl.flex" | 984 #line 49 "sksl.flex" |
| 988 { return SkSL::Token::BREAK; } | 985 { return SkSL::Token::CONTINUE; } |
| 989 YY_BREAK | 986 YY_BREAK |
| 990 case 14: | 987 case 14: |
| 991 YY_RULE_SETUP | 988 YY_RULE_SETUP |
| 992 #line 51 "sksl.flex" | 989 #line 51 "sksl.flex" |
| 993 { return SkSL::Token::CONTINUE; } | 990 { return SkSL::Token::DISCARD; } |
| 994 YY_BREAK | 991 YY_BREAK |
| 995 case 15: | 992 case 15: |
| 996 YY_RULE_SETUP | 993 YY_RULE_SETUP |
| 997 #line 53 "sksl.flex" | 994 #line 53 "sksl.flex" |
| 998 { return SkSL::Token::DISCARD; } | 995 { return SkSL::Token::RETURN; } |
| 999 YY_BREAK | 996 YY_BREAK |
| 1000 case 16: | 997 case 16: |
| 1001 YY_RULE_SETUP | 998 YY_RULE_SETUP |
| 1002 #line 55 "sksl.flex" | 999 #line 55 "sksl.flex" |
| 1003 { return SkSL::Token::RETURN; } | 1000 { return SkSL::Token::IN; } |
| 1004 YY_BREAK | 1001 YY_BREAK |
| 1005 case 17: | 1002 case 17: |
| 1006 YY_RULE_SETUP | 1003 YY_RULE_SETUP |
| 1007 #line 57 "sksl.flex" | 1004 #line 57 "sksl.flex" |
| 1008 { return SkSL::Token::IN; } | 1005 { return SkSL::Token::OUT; } |
| 1009 YY_BREAK | 1006 YY_BREAK |
| 1010 case 18: | 1007 case 18: |
| 1011 YY_RULE_SETUP | 1008 YY_RULE_SETUP |
| 1012 #line 59 "sksl.flex" | 1009 #line 59 "sksl.flex" |
| 1013 { return SkSL::Token::OUT; } | 1010 { return SkSL::Token::INOUT; } |
| 1014 YY_BREAK | 1011 YY_BREAK |
| 1015 case 19: | 1012 case 19: |
| 1016 YY_RULE_SETUP | 1013 YY_RULE_SETUP |
| 1017 #line 61 "sksl.flex" | 1014 #line 61 "sksl.flex" |
| 1018 { return SkSL::Token::INOUT; } | 1015 { return SkSL::Token::UNIFORM; } |
| 1019 YY_BREAK | 1016 YY_BREAK |
| 1020 case 20: | 1017 case 20: |
| 1021 YY_RULE_SETUP | 1018 YY_RULE_SETUP |
| 1022 #line 63 "sksl.flex" | 1019 #line 63 "sksl.flex" |
| 1023 { return SkSL::Token::UNIFORM; } | 1020 { return SkSL::Token::CONST; } |
| 1024 YY_BREAK | 1021 YY_BREAK |
| 1025 case 21: | 1022 case 21: |
| 1026 YY_RULE_SETUP | 1023 YY_RULE_SETUP |
| 1027 #line 65 "sksl.flex" | 1024 #line 65 "sksl.flex" |
| 1028 { return SkSL::Token::CONST; } | 1025 { return SkSL::Token::LOWP; } |
| 1029 YY_BREAK | 1026 YY_BREAK |
| 1030 case 22: | 1027 case 22: |
| 1031 YY_RULE_SETUP | 1028 YY_RULE_SETUP |
| 1032 #line 67 "sksl.flex" | 1029 #line 67 "sksl.flex" |
| 1033 { return SkSL::Token::LOWP; } | 1030 { return SkSL::Token::MEDIUMP; } |
| 1034 YY_BREAK | 1031 YY_BREAK |
| 1035 case 23: | 1032 case 23: |
| 1036 YY_RULE_SETUP | 1033 YY_RULE_SETUP |
| 1037 #line 69 "sksl.flex" | 1034 #line 69 "sksl.flex" |
| 1038 { return SkSL::Token::MEDIUMP; } | 1035 { return SkSL::Token::HIGHP; } |
| 1039 YY_BREAK | 1036 YY_BREAK |
| 1040 case 24: | 1037 case 24: |
| 1041 YY_RULE_SETUP | 1038 YY_RULE_SETUP |
| 1042 #line 71 "sksl.flex" | 1039 #line 71 "sksl.flex" |
| 1043 { return SkSL::Token::HIGHP; } | 1040 { return SkSL::Token::FLAT; } |
| 1044 YY_BREAK | 1041 YY_BREAK |
| 1045 case 25: | 1042 case 25: |
| 1046 YY_RULE_SETUP | 1043 YY_RULE_SETUP |
| 1047 #line 73 "sksl.flex" | 1044 #line 73 "sksl.flex" |
| 1048 { return SkSL::Token::FLAT; } | 1045 { return SkSL::Token::NOPERSPECTIVE; } |
| 1049 YY_BREAK | 1046 YY_BREAK |
| 1050 case 26: | 1047 case 26: |
| 1051 YY_RULE_SETUP | 1048 YY_RULE_SETUP |
| 1052 #line 75 "sksl.flex" | 1049 #line 75 "sksl.flex" |
| 1053 { return SkSL::Token::NOPERSPECTIVE; } | 1050 { return SkSL::Token::STRUCT; } |
| 1054 YY_BREAK | 1051 YY_BREAK |
| 1055 case 27: | 1052 case 27: |
| 1056 YY_RULE_SETUP | 1053 YY_RULE_SETUP |
| 1057 #line 77 "sksl.flex" | 1054 #line 77 "sksl.flex" |
| 1058 { return SkSL::Token::STRUCT; } | 1055 { return SkSL::Token::LAYOUT; } |
| 1059 YY_BREAK | 1056 YY_BREAK |
| 1060 case 28: | 1057 case 28: |
| 1061 YY_RULE_SETUP | 1058 YY_RULE_SETUP |
| 1062 #line 79 "sksl.flex" | 1059 #line 79 "sksl.flex" |
| 1063 { return SkSL::Token::LAYOUT; } | 1060 { return SkSL::Token::PRECISION; } |
| 1064 YY_BREAK | 1061 YY_BREAK |
| 1065 case 29: | 1062 case 29: |
| 1066 YY_RULE_SETUP | 1063 YY_RULE_SETUP |
| 1067 #line 81 "sksl.flex" | 1064 #line 81 "sksl.flex" |
| 1068 { return SkSL::Token::PRECISION; } | 1065 { return SkSL::Token::IDENTIFIER; } |
| 1069 YY_BREAK | 1066 YY_BREAK |
| 1070 case 30: | 1067 case 30: |
| 1071 YY_RULE_SETUP | 1068 YY_RULE_SETUP |
| 1072 #line 83 "sksl.flex" | 1069 #line 83 "sksl.flex" |
| 1073 { return SkSL::Token::IDENTIFIER; } | 1070 { return SkSL::Token::DIRECTIVE; } |
| 1074 YY_BREAK | 1071 YY_BREAK |
| 1075 case 31: | 1072 case 31: |
| 1076 YY_RULE_SETUP | 1073 YY_RULE_SETUP |
| 1077 #line 85 "sksl.flex" | 1074 #line 85 "sksl.flex" |
| 1078 { return SkSL::Token::DIRECTIVE; } | 1075 { return SkSL::Token::LPAREN; } |
| 1079 YY_BREAK | 1076 YY_BREAK |
| 1080 case 32: | 1077 case 32: |
| 1081 YY_RULE_SETUP | 1078 YY_RULE_SETUP |
| 1082 #line 87 "sksl.flex" | 1079 #line 87 "sksl.flex" |
| 1083 { return SkSL::Token::LPAREN; } | 1080 { return SkSL::Token::RPAREN; } |
| 1084 YY_BREAK | 1081 YY_BREAK |
| 1085 case 33: | 1082 case 33: |
| 1086 YY_RULE_SETUP | 1083 YY_RULE_SETUP |
| 1087 #line 89 "sksl.flex" | 1084 #line 89 "sksl.flex" |
| 1088 { return SkSL::Token::RPAREN; } | 1085 { return SkSL::Token::LBRACE; } |
| 1089 YY_BREAK | 1086 YY_BREAK |
| 1090 case 34: | 1087 case 34: |
| 1091 YY_RULE_SETUP | 1088 YY_RULE_SETUP |
| 1092 #line 91 "sksl.flex" | 1089 #line 91 "sksl.flex" |
| 1093 { return SkSL::Token::LBRACE; } | 1090 { return SkSL::Token::RBRACE; } |
| 1094 YY_BREAK | 1091 YY_BREAK |
| 1095 case 35: | 1092 case 35: |
| 1096 YY_RULE_SETUP | 1093 YY_RULE_SETUP |
| 1097 #line 93 "sksl.flex" | 1094 #line 93 "sksl.flex" |
| 1098 { return SkSL::Token::RBRACE; } | 1095 { return SkSL::Token::LBRACKET; } |
| 1099 YY_BREAK | 1096 YY_BREAK |
| 1100 case 36: | 1097 case 36: |
| 1101 YY_RULE_SETUP | 1098 YY_RULE_SETUP |
| 1102 #line 95 "sksl.flex" | 1099 #line 95 "sksl.flex" |
| 1103 { return SkSL::Token::LBRACKET; } | 1100 { return SkSL::Token::RBRACKET; } |
| 1104 YY_BREAK | 1101 YY_BREAK |
| 1105 case 37: | 1102 case 37: |
| 1106 YY_RULE_SETUP | 1103 YY_RULE_SETUP |
| 1107 #line 97 "sksl.flex" | 1104 #line 97 "sksl.flex" |
| 1108 { return SkSL::Token::RBRACKET; } | 1105 { return SkSL::Token::DOT; } |
| 1109 YY_BREAK | 1106 YY_BREAK |
| 1110 case 38: | 1107 case 38: |
| 1111 YY_RULE_SETUP | 1108 YY_RULE_SETUP |
| 1112 #line 99 "sksl.flex" | 1109 #line 99 "sksl.flex" |
| 1113 { return SkSL::Token::DOT; } | 1110 { return SkSL::Token::COMMA; } |
| 1114 YY_BREAK | 1111 YY_BREAK |
| 1115 case 39: | 1112 case 39: |
| 1116 YY_RULE_SETUP | 1113 YY_RULE_SETUP |
| 1117 #line 101 "sksl.flex" | 1114 #line 101 "sksl.flex" |
| 1118 { return SkSL::Token::COMMA; } | 1115 { return SkSL::Token::PLUSPLUS; } |
| 1119 YY_BREAK | 1116 YY_BREAK |
| 1120 case 40: | 1117 case 40: |
| 1121 YY_RULE_SETUP | 1118 YY_RULE_SETUP |
| 1122 #line 103 "sksl.flex" | 1119 #line 103 "sksl.flex" |
| 1123 { return SkSL::Token::PLUSPLUS; } | 1120 { return SkSL::Token::MINUSMINUS; } |
| 1124 YY_BREAK | 1121 YY_BREAK |
| 1125 case 41: | 1122 case 41: |
| 1126 YY_RULE_SETUP | 1123 YY_RULE_SETUP |
| 1127 #line 105 "sksl.flex" | 1124 #line 105 "sksl.flex" |
| 1128 { return SkSL::Token::MINUSMINUS; } | 1125 { return SkSL::Token::PLUS; } |
| 1129 YY_BREAK | 1126 YY_BREAK |
| 1130 case 42: | 1127 case 42: |
| 1131 YY_RULE_SETUP | 1128 YY_RULE_SETUP |
| 1132 #line 107 "sksl.flex" | 1129 #line 107 "sksl.flex" |
| 1133 { return SkSL::Token::PLUS; } | 1130 { return SkSL::Token::MINUS; } |
| 1134 YY_BREAK | 1131 YY_BREAK |
| 1135 case 43: | 1132 case 43: |
| 1136 YY_RULE_SETUP | 1133 YY_RULE_SETUP |
| 1137 #line 109 "sksl.flex" | 1134 #line 109 "sksl.flex" |
| 1138 { return SkSL::Token::MINUS; } | 1135 { return SkSL::Token::STAR; } |
| 1139 YY_BREAK | 1136 YY_BREAK |
| 1140 case 44: | 1137 case 44: |
| 1141 YY_RULE_SETUP | 1138 YY_RULE_SETUP |
| 1142 #line 111 "sksl.flex" | 1139 #line 111 "sksl.flex" |
| 1143 { return SkSL::Token::STAR; } | 1140 { return SkSL::Token::SLASH; } |
| 1144 YY_BREAK | 1141 YY_BREAK |
| 1145 case 45: | 1142 case 45: |
| 1146 YY_RULE_SETUP | 1143 YY_RULE_SETUP |
| 1147 #line 113 "sksl.flex" | 1144 #line 113 "sksl.flex" |
| 1148 { return SkSL::Token::SLASH; } | 1145 { return SkSL::Token::PERCENT; } |
| 1149 YY_BREAK | 1146 YY_BREAK |
| 1150 case 46: | 1147 case 46: |
| 1151 YY_RULE_SETUP | 1148 YY_RULE_SETUP |
| 1152 #line 115 "sksl.flex" | 1149 #line 115 "sksl.flex" |
| 1153 { return SkSL::Token::PERCENT; } | 1150 { return SkSL::Token::SHL; } |
| 1154 YY_BREAK | 1151 YY_BREAK |
| 1155 case 47: | 1152 case 47: |
| 1156 YY_RULE_SETUP | 1153 YY_RULE_SETUP |
| 1157 #line 117 "sksl.flex" | 1154 #line 117 "sksl.flex" |
| 1158 { return SkSL::Token::SHL; } | 1155 { return SkSL::Token::SHR; } |
| 1159 YY_BREAK | 1156 YY_BREAK |
| 1160 case 48: | 1157 case 48: |
| 1161 YY_RULE_SETUP | 1158 YY_RULE_SETUP |
| 1162 #line 119 "sksl.flex" | 1159 #line 119 "sksl.flex" |
| 1163 { return SkSL::Token::SHR; } | 1160 { return SkSL::Token::BITWISEOR; } |
| 1164 YY_BREAK | 1161 YY_BREAK |
| 1165 case 49: | 1162 case 49: |
| 1166 YY_RULE_SETUP | 1163 YY_RULE_SETUP |
| 1167 #line 121 "sksl.flex" | 1164 #line 121 "sksl.flex" |
| 1168 { return SkSL::Token::BITWISEOR; } | 1165 { return SkSL::Token::BITWISEXOR; } |
| 1169 YY_BREAK | 1166 YY_BREAK |
| 1170 case 50: | 1167 case 50: |
| 1171 YY_RULE_SETUP | 1168 YY_RULE_SETUP |
| 1172 #line 123 "sksl.flex" | 1169 #line 123 "sksl.flex" |
| 1173 { return SkSL::Token::BITWISEXOR; } | 1170 { return SkSL::Token::BITWISEAND; } |
| 1174 YY_BREAK | 1171 YY_BREAK |
| 1175 case 51: | 1172 case 51: |
| 1176 YY_RULE_SETUP | 1173 YY_RULE_SETUP |
| 1177 #line 125 "sksl.flex" | 1174 #line 125 "sksl.flex" |
| 1178 { return SkSL::Token::BITWISEAND; } | 1175 { return SkSL::Token::LOGICALOR; } |
| 1179 YY_BREAK | 1176 YY_BREAK |
| 1180 case 52: | 1177 case 52: |
| 1181 YY_RULE_SETUP | 1178 YY_RULE_SETUP |
| 1182 #line 127 "sksl.flex" | 1179 #line 127 "sksl.flex" |
| 1183 { return SkSL::Token::LOGICALOR; } | 1180 { return SkSL::Token::LOGICALXOR; } |
| 1184 YY_BREAK | 1181 YY_BREAK |
| 1185 case 53: | 1182 case 53: |
| 1186 YY_RULE_SETUP | 1183 YY_RULE_SETUP |
| 1187 #line 129 "sksl.flex" | 1184 #line 129 "sksl.flex" |
| 1188 { return SkSL::Token::LOGICALXOR; } | 1185 { return SkSL::Token::LOGICALAND; } |
| 1189 YY_BREAK | 1186 YY_BREAK |
| 1190 case 54: | 1187 case 54: |
| 1191 YY_RULE_SETUP | 1188 YY_RULE_SETUP |
| 1192 #line 131 "sksl.flex" | 1189 #line 131 "sksl.flex" |
| 1193 { return SkSL::Token::LOGICALAND; } | 1190 { return SkSL::Token::NOT; } |
| 1194 YY_BREAK | 1191 YY_BREAK |
| 1195 case 55: | 1192 case 55: |
| 1196 YY_RULE_SETUP | 1193 YY_RULE_SETUP |
| 1197 #line 133 "sksl.flex" | 1194 #line 133 "sksl.flex" |
| 1198 { return SkSL::Token::NOT; } | 1195 { return SkSL::Token::QUESTION; } |
| 1199 YY_BREAK | 1196 YY_BREAK |
| 1200 case 56: | 1197 case 56: |
| 1201 YY_RULE_SETUP | 1198 YY_RULE_SETUP |
| 1202 #line 135 "sksl.flex" | 1199 #line 135 "sksl.flex" |
| 1203 { return SkSL::Token::QUESTION; } | 1200 { return SkSL::Token::COLON; } |
| 1204 YY_BREAK | 1201 YY_BREAK |
| 1205 case 57: | 1202 case 57: |
| 1206 YY_RULE_SETUP | 1203 YY_RULE_SETUP |
| 1207 #line 137 "sksl.flex" | 1204 #line 137 "sksl.flex" |
| 1208 { return SkSL::Token::COLON; } | 1205 { return SkSL::Token::EQ; } |
| 1209 YY_BREAK | 1206 YY_BREAK |
| 1210 case 58: | 1207 case 58: |
| 1211 YY_RULE_SETUP | 1208 YY_RULE_SETUP |
| 1212 #line 139 "sksl.flex" | 1209 #line 139 "sksl.flex" |
| 1213 { return SkSL::Token::EQ; } | 1210 { return SkSL::Token::EQEQ; } |
| 1214 YY_BREAK | 1211 YY_BREAK |
| 1215 case 59: | 1212 case 59: |
| 1216 YY_RULE_SETUP | 1213 YY_RULE_SETUP |
| 1217 #line 141 "sksl.flex" | 1214 #line 141 "sksl.flex" |
| 1218 { return SkSL::Token::EQEQ; } | 1215 { return SkSL::Token::NEQ; } |
| 1219 YY_BREAK | 1216 YY_BREAK |
| 1220 case 60: | 1217 case 60: |
| 1221 YY_RULE_SETUP | 1218 YY_RULE_SETUP |
| 1222 #line 143 "sksl.flex" | 1219 #line 143 "sksl.flex" |
| 1223 { return SkSL::Token::NEQ; } | 1220 { return SkSL::Token::GT; } |
| 1224 YY_BREAK | 1221 YY_BREAK |
| 1225 case 61: | 1222 case 61: |
| 1226 YY_RULE_SETUP | 1223 YY_RULE_SETUP |
| 1227 #line 145 "sksl.flex" | 1224 #line 145 "sksl.flex" |
| 1228 { return SkSL::Token::GT; } | 1225 { return SkSL::Token::LT; } |
| 1229 YY_BREAK | 1226 YY_BREAK |
| 1230 case 62: | 1227 case 62: |
| 1231 YY_RULE_SETUP | 1228 YY_RULE_SETUP |
| 1232 #line 147 "sksl.flex" | 1229 #line 147 "sksl.flex" |
| 1233 { return SkSL::Token::LT; } | 1230 { return SkSL::Token::GTEQ; } |
| 1234 YY_BREAK | 1231 YY_BREAK |
| 1235 case 63: | 1232 case 63: |
| 1236 YY_RULE_SETUP | 1233 YY_RULE_SETUP |
| 1237 #line 149 "sksl.flex" | 1234 #line 149 "sksl.flex" |
| 1238 { return SkSL::Token::GTEQ; } | 1235 { return SkSL::Token::LTEQ; } |
| 1239 YY_BREAK | 1236 YY_BREAK |
| 1240 case 64: | 1237 case 64: |
| 1241 YY_RULE_SETUP | 1238 YY_RULE_SETUP |
| 1242 #line 151 "sksl.flex" | 1239 #line 151 "sksl.flex" |
| 1243 { return SkSL::Token::LTEQ; } | 1240 { return SkSL::Token::PLUSEQ; } |
| 1244 YY_BREAK | 1241 YY_BREAK |
| 1245 case 65: | 1242 case 65: |
| 1246 YY_RULE_SETUP | 1243 YY_RULE_SETUP |
| 1247 #line 153 "sksl.flex" | 1244 #line 153 "sksl.flex" |
| 1248 { return SkSL::Token::PLUSEQ; } | 1245 { return SkSL::Token::MINUSEQ; } |
| 1249 YY_BREAK | 1246 YY_BREAK |
| 1250 case 66: | 1247 case 66: |
| 1251 YY_RULE_SETUP | 1248 YY_RULE_SETUP |
| 1252 #line 155 "sksl.flex" | 1249 #line 155 "sksl.flex" |
| 1253 { return SkSL::Token::MINUSEQ; } | 1250 { return SkSL::Token::STAREQ; } |
| 1254 YY_BREAK | 1251 YY_BREAK |
| 1255 case 67: | 1252 case 67: |
| 1256 YY_RULE_SETUP | 1253 YY_RULE_SETUP |
| 1257 #line 157 "sksl.flex" | 1254 #line 157 "sksl.flex" |
| 1258 { return SkSL::Token::STAREQ; } | 1255 { return SkSL::Token::SLASHEQ; } |
| 1259 YY_BREAK | 1256 YY_BREAK |
| 1260 case 68: | 1257 case 68: |
| 1261 YY_RULE_SETUP | 1258 YY_RULE_SETUP |
| 1262 #line 159 "sksl.flex" | 1259 #line 159 "sksl.flex" |
| 1263 { return SkSL::Token::SLASHEQ; } | 1260 { return SkSL::Token::PERCENTEQ; } |
| 1264 YY_BREAK | 1261 YY_BREAK |
| 1265 case 69: | 1262 case 69: |
| 1266 YY_RULE_SETUP | 1263 YY_RULE_SETUP |
| 1267 #line 161 "sksl.flex" | 1264 #line 161 "sksl.flex" |
| 1268 { return SkSL::Token::PERCENTEQ; } | 1265 { return SkSL::Token::SHLEQ; } |
| 1269 YY_BREAK | 1266 YY_BREAK |
| 1270 case 70: | 1267 case 70: |
| 1271 YY_RULE_SETUP | 1268 YY_RULE_SETUP |
| 1272 #line 163 "sksl.flex" | 1269 #line 163 "sksl.flex" |
| 1273 { return SkSL::Token::SHLEQ; } | 1270 { return SkSL::Token::SHREQ; } |
| 1274 YY_BREAK | 1271 YY_BREAK |
| 1275 case 71: | 1272 case 71: |
| 1276 YY_RULE_SETUP | 1273 YY_RULE_SETUP |
| 1277 #line 165 "sksl.flex" | 1274 #line 165 "sksl.flex" |
| 1278 { return SkSL::Token::SHREQ; } | 1275 { return SkSL::Token::BITWISEOREQ; } |
| 1279 YY_BREAK | 1276 YY_BREAK |
| 1280 case 72: | 1277 case 72: |
| 1281 YY_RULE_SETUP | 1278 YY_RULE_SETUP |
| 1282 #line 167 "sksl.flex" | 1279 #line 167 "sksl.flex" |
| 1283 { return SkSL::Token::BITWISEOREQ; } | 1280 { return SkSL::Token::BITWISEXOREQ; } |
| 1284 YY_BREAK | 1281 YY_BREAK |
| 1285 case 73: | 1282 case 73: |
| 1286 YY_RULE_SETUP | 1283 YY_RULE_SETUP |
| 1287 #line 169 "sksl.flex" | 1284 #line 169 "sksl.flex" |
| 1288 { return SkSL::Token::BITWISEXOREQ; } | 1285 { return SkSL::Token::BITWISEANDEQ; } |
| 1289 YY_BREAK | 1286 YY_BREAK |
| 1290 case 74: | 1287 case 74: |
| 1291 YY_RULE_SETUP | 1288 YY_RULE_SETUP |
| 1292 #line 171 "sksl.flex" | 1289 #line 171 "sksl.flex" |
| 1293 { return SkSL::Token::BITWISEANDEQ; } | 1290 { return SkSL::Token::LOGICALOREQ; } |
| 1294 YY_BREAK | 1291 YY_BREAK |
| 1295 case 75: | 1292 case 75: |
| 1296 YY_RULE_SETUP | 1293 YY_RULE_SETUP |
| 1297 #line 173 "sksl.flex" | 1294 #line 173 "sksl.flex" |
| 1298 { return SkSL::Token::LOGICALOREQ; } | 1295 { return SkSL::Token::LOGICALXOREQ; } |
| 1299 YY_BREAK | 1296 YY_BREAK |
| 1300 case 76: | 1297 case 76: |
| 1301 YY_RULE_SETUP | 1298 YY_RULE_SETUP |
| 1302 #line 175 "sksl.flex" | 1299 #line 175 "sksl.flex" |
| 1303 { return SkSL::Token::LOGICALXOREQ; } | 1300 { return SkSL::Token::LOGICALANDEQ; } |
| 1304 YY_BREAK | 1301 YY_BREAK |
| 1305 case 77: | 1302 case 77: |
| 1306 YY_RULE_SETUP | 1303 YY_RULE_SETUP |
| 1307 #line 177 "sksl.flex" | 1304 #line 177 "sksl.flex" |
| 1308 { return SkSL::Token::LOGICALANDEQ; } | 1305 { return SkSL::Token::SEMICOLON; } |
| 1309 YY_BREAK | 1306 YY_BREAK |
| 1310 case 78: | 1307 case 78: |
| 1311 YY_RULE_SETUP | 1308 YY_RULE_SETUP |
| 1312 #line 179 "sksl.flex" | 1309 #line 179 "sksl.flex" |
| 1313 { return SkSL::Token::SEMICOLON; } | 1310 /* line comment */ |
| 1314 YY_BREAK | 1311 YY_BREAK |
| 1315 case 79: | 1312 case 79: |
| 1313 /* rule 79 can match eol */ |
| 1316 YY_RULE_SETUP | 1314 YY_RULE_SETUP |
| 1317 #line 181 "sksl.flex" | 1315 #line 181 "sksl.flex" |
| 1318 /* line comment */ | 1316 /* block comment */ |
| 1319 YY_BREAK | 1317 YY_BREAK |
| 1320 case 80: | 1318 case 80: |
| 1321 /* rule 80 can match eol */ | 1319 /* rule 80 can match eol */ |
| 1322 YY_RULE_SETUP | 1320 YY_RULE_SETUP |
| 1323 #line 183 "sksl.flex" | 1321 #line 183 "sksl.flex" |
| 1324 /* block comment */ | 1322 /* whitespace */ |
| 1325 YY_BREAK | 1323 YY_BREAK |
| 1326 case 81: | 1324 case 81: |
| 1327 /* rule 81 can match eol */ | |
| 1328 YY_RULE_SETUP | 1325 YY_RULE_SETUP |
| 1329 #line 185 "sksl.flex" | 1326 #line 185 "sksl.flex" |
| 1330 /* whitespace */ | 1327 { return SkSL::Token::INVALID_TOKEN; } |
| 1331 YY_BREAK | 1328 YY_BREAK |
| 1332 case 82: | 1329 case 82: |
| 1333 YY_RULE_SETUP | 1330 YY_RULE_SETUP |
| 1334 #line 187 "sksl.flex" | 1331 #line 187 "sksl.flex" |
| 1335 { return SkSL::Token::INVALID_TOKEN; } | |
| 1336 YY_BREAK | |
| 1337 case 83: | |
| 1338 YY_RULE_SETUP | |
| 1339 #line 189 "sksl.flex" | |
| 1340 ECHO; | 1332 ECHO; |
| 1341 YY_BREAK | 1333 YY_BREAK |
| 1342 #line 1337 "lex.sksl.c" | 1334 #line 1329 "lex.sksl.c" |
| 1343 case YY_STATE_EOF(INITIAL): | 1335 case YY_STATE_EOF(INITIAL): |
| 1344 yyterminate(); | 1336 yyterminate(); |
| 1345 | 1337 |
| 1346 case YY_END_OF_BUFFER: | 1338 case YY_END_OF_BUFFER: |
| 1347 { | 1339 { |
| 1348 /* Amount of text matched not including the EOB char. */ | 1340 /* Amount of text matched not including the EOB char. */ |
| 1349 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr)
- 1; | 1341 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr)
- 1; |
| 1350 | 1342 |
| 1351 /* Undo the effects of YY_DO_BEFORE_ACTION. */ | 1343 /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
| 1352 *yy_cp = yyg->yy_hold_char; | 1344 *yy_cp = yyg->yy_hold_char; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 | 1519 |
| 1528 else | 1520 else |
| 1529 { | 1521 { |
| 1530 yy_size_t num_to_read = | 1522 yy_size_t num_to_read = |
| 1531 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move -
1; | 1523 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move -
1; |
| 1532 | 1524 |
| 1533 while ( num_to_read <= 0 ) | 1525 while ( num_to_read <= 0 ) |
| 1534 { /* Not enough room in the buffer - grow it. */ | 1526 { /* Not enough room in the buffer - grow it. */ |
| 1535 | 1527 |
| 1536 /* just a shorter name for the current buffer */ | 1528 /* just a shorter name for the current buffer */ |
| 1537 » » » YY_BUFFER_STATE b = YY_CURRENT_BUFFER; | 1529 » » » YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; |
| 1538 | 1530 |
| 1539 int yy_c_buf_p_offset = | 1531 int yy_c_buf_p_offset = |
| 1540 (int) (yyg->yy_c_buf_p - b->yy_ch_buf); | 1532 (int) (yyg->yy_c_buf_p - b->yy_ch_buf); |
| 1541 | 1533 |
| 1542 if ( b->yy_is_our_buffer ) | 1534 if ( b->yy_is_our_buffer ) |
| 1543 { | 1535 { |
| 1544 yy_size_t new_size = b->yy_buf_size * 2; | 1536 yy_size_t new_size = b->yy_buf_size * 2; |
| 1545 | 1537 |
| 1546 if ( new_size <= 0 ) | 1538 if ( new_size <= 0 ) |
| 1547 b->yy_buf_size += b->yy_buf_size / 8; | 1539 b->yy_buf_size += b->yy_buf_size / 8; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1627 { | 1619 { |
| 1628 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1
); | 1620 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1
); |
| 1629 if ( yy_accept[yy_current_state] ) | 1621 if ( yy_accept[yy_current_state] ) |
| 1630 { | 1622 { |
| 1631 yyg->yy_last_accepting_state = yy_current_state; | 1623 yyg->yy_last_accepting_state = yy_current_state; |
| 1632 yyg->yy_last_accepting_cpos = yy_cp; | 1624 yyg->yy_last_accepting_cpos = yy_cp; |
| 1633 } | 1625 } |
| 1634 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_s
tate ) | 1626 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_s
tate ) |
| 1635 { | 1627 { |
| 1636 yy_current_state = (int) yy_def[yy_current_state]; | 1628 yy_current_state = (int) yy_def[yy_current_state]; |
| 1637 » » » if ( yy_current_state >= 204 ) | 1629 » » » if ( yy_current_state >= 201 ) |
| 1638 yy_c = yy_meta[(unsigned int) yy_c]; | 1630 yy_c = yy_meta[(unsigned int) yy_c]; |
| 1639 } | 1631 } |
| 1640 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned
int) yy_c]; | 1632 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned
int) yy_c]; |
| 1641 } | 1633 } |
| 1642 | 1634 |
| 1643 return yy_current_state; | 1635 return yy_current_state; |
| 1644 } | 1636 } |
| 1645 | 1637 |
| 1646 /* yy_try_NUL_trans - try to make a transition on the NUL character | 1638 /* yy_try_NUL_trans - try to make a transition on the NUL character |
| 1647 * | 1639 * |
| 1648 * synopsis | 1640 * synopsis |
| 1649 * next_state = yy_try_NUL_trans( current_state ); | 1641 * next_state = yy_try_NUL_trans( current_state ); |
| 1650 */ | 1642 */ |
| 1651 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yys
can_t yyscanner) | 1643 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yys
can_t yyscanner) |
| 1652 { | 1644 { |
| 1653 register int yy_is_jam; | 1645 register int yy_is_jam; |
| 1654 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unus
ed depending upon options. */ | 1646 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unus
ed depending upon options. */ |
| 1655 register char *yy_cp = yyg->yy_c_buf_p; | 1647 register char *yy_cp = yyg->yy_c_buf_p; |
| 1656 | 1648 |
| 1657 register YY_CHAR yy_c = 1; | 1649 register YY_CHAR yy_c = 1; |
| 1658 if ( yy_accept[yy_current_state] ) | 1650 if ( yy_accept[yy_current_state] ) |
| 1659 { | 1651 { |
| 1660 yyg->yy_last_accepting_state = yy_current_state; | 1652 yyg->yy_last_accepting_state = yy_current_state; |
| 1661 yyg->yy_last_accepting_cpos = yy_cp; | 1653 yyg->yy_last_accepting_cpos = yy_cp; |
| 1662 } | 1654 } |
| 1663 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | 1655 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 1664 { | 1656 { |
| 1665 yy_current_state = (int) yy_def[yy_current_state]; | 1657 yy_current_state = (int) yy_def[yy_current_state]; |
| 1666 » » if ( yy_current_state >= 204 ) | 1658 » » if ( yy_current_state >= 201 ) |
| 1667 yy_c = yy_meta[(unsigned int) yy_c]; | 1659 yy_c = yy_meta[(unsigned int) yy_c]; |
| 1668 } | 1660 } |
| 1669 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_
c]; | 1661 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_
c]; |
| 1670 » yy_is_jam = (yy_current_state == 203); | 1662 » yy_is_jam = (yy_current_state == 200); |
| 1671 | 1663 |
| 1664 (void)yyg; |
| 1672 return yy_is_jam ? 0 : yy_current_state; | 1665 return yy_is_jam ? 0 : yy_current_state; |
| 1673 } | 1666 } |
| 1674 | 1667 |
| 1675 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) | 1668 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) |
| 1676 { | 1669 { |
| 1677 register char *yy_cp; | 1670 register char *yy_cp; |
| 1678 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 1671 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1679 | 1672 |
| 1680 yy_cp = yyg->yy_c_buf_p; | 1673 yy_cp = yyg->yy_c_buf_p; |
| 1681 | 1674 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 */ | 1749 */ |
| 1757 | 1750 |
| 1758 /* Reset buffer status. */ | 1751 /* Reset buffer status. */ |
| 1759 skslrestart(yyin ,yyscanner); | 1752 skslrestart(yyin ,yyscanner); |
| 1760 | 1753 |
| 1761 /*FALLTHROUGH*/ | 1754 /*FALLTHROUGH*/ |
| 1762 | 1755 |
| 1763 case EOB_ACT_END_OF_FILE: | 1756 case EOB_ACT_END_OF_FILE: |
| 1764 { | 1757 { |
| 1765 if ( skslwrap(yyscanner ) ) | 1758 if ( skslwrap(yyscanner ) ) |
| 1766 » » » » » » return 0; | 1759 » » » » » » return EOF; |
| 1767 | 1760 |
| 1768 if ( ! yyg->yy_did_buffer_switch_on_eof
) | 1761 if ( ! yyg->yy_did_buffer_switch_on_eof
) |
| 1769 YY_NEW_FILE; | 1762 YY_NEW_FILE; |
| 1770 #ifdef __cplusplus | 1763 #ifdef __cplusplus |
| 1771 return yyinput(yyscanner); | 1764 return yyinput(yyscanner); |
| 1772 #else | 1765 #else |
| 1773 return input(yyscanner); | 1766 return input(yyscanner); |
| 1774 #endif | 1767 #endif |
| 1775 } | 1768 } |
| 1776 | 1769 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 * sksl_scan_bytes() instead. | 2105 * sksl_scan_bytes() instead. |
| 2113 */ | 2106 */ |
| 2114 YY_BUFFER_STATE sksl_scan_string (yyconst char * yystr , yyscan_t yyscanner) | 2107 YY_BUFFER_STATE sksl_scan_string (yyconst char * yystr , yyscan_t yyscanner) |
| 2115 { | 2108 { |
| 2116 | 2109 |
| 2117 return sksl_scan_bytes(yystr,strlen(yystr) ,yyscanner); | 2110 return sksl_scan_bytes(yystr,strlen(yystr) ,yyscanner); |
| 2118 } | 2111 } |
| 2119 | 2112 |
| 2120 /** Setup the input buffer state to scan the given bytes. The next call to sksll
ex() will | 2113 /** Setup the input buffer state to scan the given bytes. The next call to sksll
ex() will |
| 2121 * scan from a @e copy of @a bytes. | 2114 * scan from a @e copy of @a bytes. |
| 2122 * @param bytes the byte buffer to scan | 2115 * @param yybytes the byte buffer to scan |
| 2123 * @param len the number of bytes in the buffer pointed to by @a bytes. | 2116 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
| 2124 * @param yyscanner The scanner object. | 2117 * @param yyscanner The scanner object. |
| 2125 * @return the newly allocated buffer state object. | 2118 * @return the newly allocated buffer state object. |
| 2126 */ | 2119 */ |
| 2127 YY_BUFFER_STATE sksl_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_le
n , yyscan_t yyscanner) | 2120 YY_BUFFER_STATE sksl_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_le
n , yyscan_t yyscanner) |
| 2128 { | 2121 { |
| 2129 YY_BUFFER_STATE b; | 2122 YY_BUFFER_STATE b; |
| 2130 char *buf; | 2123 char *buf; |
| 2131 » yy_size_t n, i; | 2124 » yy_size_t n; |
| 2125 » int i; |
| 2132 | 2126 |
| 2133 /* Get memory for full buffer, including space for trailing EOB's. */ | 2127 /* Get memory for full buffer, including space for trailing EOB's. */ |
| 2134 n = _yybytes_len + 2; | 2128 n = _yybytes_len + 2; |
| 2135 buf = (char *) skslalloc(n ,yyscanner ); | 2129 buf = (char *) skslalloc(n ,yyscanner ); |
| 2136 if ( ! buf ) | 2130 if ( ! buf ) |
| 2137 YY_FATAL_ERROR( "out of dynamic memory in sksl_scan_bytes()" ); | 2131 YY_FATAL_ERROR( "out of dynamic memory in sksl_scan_bytes()" ); |
| 2138 | 2132 |
| 2139 for ( i = 0; i < _yybytes_len; ++i ) | 2133 for ( i = 0; i < _yybytes_len; ++i ) |
| 2140 buf[i] = yybytes[i]; | 2134 buf[i] = yybytes[i]; |
| 2141 | 2135 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2267 /** Set the current line number. | 2261 /** Set the current line number. |
| 2268 * @param line_number | 2262 * @param line_number |
| 2269 * @param yyscanner The scanner object. | 2263 * @param yyscanner The scanner object. |
| 2270 */ | 2264 */ |
| 2271 void skslset_lineno (int line_number , yyscan_t yyscanner) | 2265 void skslset_lineno (int line_number , yyscan_t yyscanner) |
| 2272 { | 2266 { |
| 2273 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 2267 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 2274 | 2268 |
| 2275 /* lineno is only valid if an input buffer exists. */ | 2269 /* lineno is only valid if an input buffer exists. */ |
| 2276 if (! YY_CURRENT_BUFFER ) | 2270 if (! YY_CURRENT_BUFFER ) |
| 2277 yy_fatal_error( "skslset_lineno called with no buffer" , yyscanner); | 2271 YY_FATAL_ERROR( "skslset_lineno called with no buffer" ); |
| 2278 | 2272 |
| 2279 yylineno = line_number; | 2273 yylineno = line_number; |
| 2280 } | 2274 } |
| 2281 | 2275 |
| 2282 /** Set the current column. | 2276 /** Set the current column. |
| 2283 * @param line_number | 2277 * @param line_number |
| 2284 * @param yyscanner The scanner object. | 2278 * @param yyscanner The scanner object. |
| 2285 */ | 2279 */ |
| 2286 void skslset_column (int column_no , yyscan_t yyscanner) | 2280 void skslset_column (int column_no , yyscan_t yyscanner) |
| 2287 { | 2281 { |
| 2288 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 2282 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 2289 | 2283 |
| 2290 /* column is only valid if an input buffer exists. */ | 2284 /* column is only valid if an input buffer exists. */ |
| 2291 if (! YY_CURRENT_BUFFER ) | 2285 if (! YY_CURRENT_BUFFER ) |
| 2292 yy_fatal_error( "skslset_column called with no buffer" , yyscanner); | 2286 YY_FATAL_ERROR( "skslset_column called with no buffer" ); |
| 2293 | 2287 |
| 2294 yycolumn = column_no; | 2288 yycolumn = column_no; |
| 2295 } | 2289 } |
| 2296 | 2290 |
| 2297 /** Set the input stream. This does not discard the current | 2291 /** Set the input stream. This does not discard the current |
| 2298 * input buffer. | 2292 * input buffer. |
| 2299 * @param in_str A readable stream. | 2293 * @param in_str A readable stream. |
| 2300 * @param yyscanner The scanner object. | 2294 * @param yyscanner The scanner object. |
| 2301 * @see sksl_switch_to_buffer | 2295 * @see sksl_switch_to_buffer |
| 2302 */ | 2296 */ |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2494 return (void *) realloc( (char *) ptr, size ); | 2488 return (void *) realloc( (char *) ptr, size ); |
| 2495 } | 2489 } |
| 2496 | 2490 |
| 2497 void skslfree (void * ptr , yyscan_t yyscanner) | 2491 void skslfree (void * ptr , yyscan_t yyscanner) |
| 2498 { | 2492 { |
| 2499 free( (char *) ptr ); /* see skslrealloc() for (char *) cast */ | 2493 free( (char *) ptr ); /* see skslrealloc() for (char *) cast */ |
| 2500 } | 2494 } |
| 2501 | 2495 |
| 2502 #define YYTABLES_NAME "yytables" | 2496 #define YYTABLES_NAME "yytables" |
| 2503 | 2497 |
| 2504 #line 189 "sksl.flex" | 2498 #line 187 "sksl.flex" |
| 2505 | 2499 |
| 2506 | 2500 |
| 2507 | 2501 |
| 2508 int skslwrap(yyscan_t scanner) { | 2502 int skslwrap(yyscan_t scanner) { |
| 2509 return 1; // terminate | 2503 return 1; // terminate |
| 2510 } | 2504 } |
| 2511 | 2505 |
| OLD | NEW |