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