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 80 | 368 #define YY_NUM_RULES 82 |
369 #define YY_END_OF_BUFFER 81 | 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[185] = | 377 static yyconst flex_int16_t yy_accept[201] = |
378 { 0, | 378 { 0, |
379 0, 0, 81, 79, 78, 78, 52, 79, 27, 43, | 379 0, 0, 83, 81, 80, 80, 54, 81, 29, 45, |
380 48, 29, 30, 41, 39, 36, 40, 35, 42, 4, | 380 50, 31, 32, 43, 41, 38, 42, 37, 44, 4, |
381 54, 75, 59, 55, 58, 53, 33, 34, 47, 27, | 381 56, 77, 61, 57, 60, 55, 35, 36, 49, 29, |
382 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, | 382 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, |
383 27, 27, 27, 27, 27, 31, 46, 32, 78, 57, | 383 29, 29, 29, 29, 29, 29, 33, 48, 34, 80, |
384 28, 27, 66, 51, 71, 64, 37, 62, 38, 63, | 384 59, 30, 29, 68, 53, 73, 66, 39, 64, 40, |
385 1, 0, 76, 65, 2, 4, 0, 44, 61, 56, | 385 65, 1, 0, 78, 67, 2, 4, 0, 46, 63, |
386 60, 45, 70, 50, 27, 27, 27, 11, 27, 27, | 386 58, 62, 47, 72, 52, 29, 29, 29, 11, 29, |
387 27, 27, 7, 16, 27, 27, 27, 27, 27, 27, | 387 29, 29, 29, 29, 7, 16, 29, 29, 29, 29, |
388 27, 27, 27, 27, 69, 49, 28, 74, 0, 0, | 388 29, 29, 29, 29, 29, 29, 29, 71, 51, 30, |
389 | 389 |
390 0, 76, 1, 0, 0, 3, 67, 68, 73, 27, | 390 76, 0, 0, 0, 78, 1, 0, 0, 3, 69, |
391 27, 27, 27, 27, 9, 27, 27, 27, 27, 27, | 391 70, 75, 29, 29, 29, 29, 29, 29, 9, 29, |
392 17, 27, 27, 27, 27, 27, 27, 72, 0, 1, | 392 29, 29, 29, 29, 29, 17, 29, 29, 29, 29, |
393 77, 0, 0, 2, 27, 27, 27, 27, 8, 27, | 393 29, 29, 74, 0, 1, 79, 0, 0, 2, 29, |
394 27, 27, 27, 21, 27, 27, 27, 27, 5, 27, | 394 29, 29, 29, 8, 29, 24, 29, 29, 29, 21, |
395 27, 0, 1, 12, 20, 27, 27, 6, 23, 18, | 395 29, 29, 29, 29, 29, 5, 29, 29, 0, 1, |
396 27, 27, 27, 27, 27, 27, 10, 27, 27, 25, | 396 12, 20, 29, 29, 6, 23, 18, 29, 29, 29, |
397 27, 27, 15, 24, 27, 27, 14, 22, 27, 19, | 397 29, 29, 29, 29, 10, 29, 29, 27, 29, 29, |
398 13, 27, 26, 0 | 398 29, 15, 26, 29, 29, 14, 22, 29, 29, 19, |
| 399 13, 29, 29, 29, 28, 29, 29, 29, 25, 0 |
| 400 |
399 } ; | 401 } ; |
400 | 402 |
401 static yyconst flex_int32_t yy_ec[256] = | 403 static yyconst flex_int32_t yy_ec[256] = |
402 { 0, | 404 { 0, |
403 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, | 405 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
404 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, | 406 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, |
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
406 1, 2, 4, 1, 5, 6, 7, 8, 1, 9, | 408 1, 2, 4, 1, 5, 6, 7, 8, 1, 9, |
407 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, | 409 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, |
408 17, 17, 17, 17, 17, 17, 17, 18, 19, 20, | 410 17, 17, 17, 17, 17, 17, 17, 18, 19, 20, |
409 21, 22, 23, 1, 6, 6, 6, 6, 24, 6, | 411 21, 22, 23, 1, 6, 6, 6, 6, 24, 6, |
410 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, | 412 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, |
411 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, | 413 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, |
412 25, 1, 26, 27, 6, 1, 28, 29, 30, 31, | 414 25, 1, 26, 27, 6, 1, 28, 29, 30, 31, |
413 | 415 |
414 32, 33, 34, 35, 36, 6, 37, 38, 39, 40, | 416 32, 33, 34, 35, 36, 6, 37, 38, 39, 40, |
415 41, 42, 6, 43, 44, 45, 46, 6, 47, 6, | 417 41, 42, 6, 43, 44, 45, 46, 47, 48, 6, |
416 48, 6, 49, 50, 51, 1, 1, 1, 1, 1, | 418 49, 6, 50, 51, 52, 1, 1, 1, 1, 1, |
417 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
418 1, 1, 1, 1, 1, 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 | 426 |
425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 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 | 432 1, 1, 1, 1, 1 |
431 } ; | 433 } ; |
432 | 434 |
433 static yyconst flex_int32_t yy_meta[52] = | 435 static yyconst flex_int32_t yy_meta[53] = |
434 { 0, | 436 { 0, |
435 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, | 437 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, |
436 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, | 438 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, |
437 1, 1, 1, 3, 1, 1, 1, 3, 3, 3, | 439 1, 1, 1, 3, 1, 1, 1, 3, 3, 3, |
438 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, | 440 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
439 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, | 441 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, |
440 1 | 442 1, 1 |
441 } ; | 443 } ; |
442 | 444 |
443 static yyconst flex_int16_t yy_base[190] = | 445 static yyconst flex_int16_t yy_base[206] = |
444 { 0, | 446 { 0, |
445 0, 0, 222, 223, 50, 52, 200, 0, 0, 199, | 447 0, 0, 238, 239, 51, 53, 216, 0, 0, 215, |
446 48, 223, 223, 198, 45, 223, 44, 201, 51, 44, | 448 49, 239, 239, 214, 46, 239, 45, 217, 52, 45, |
447 223, 223, 43, 196, 49, 223, 223, 223, 52, 173, | 449 239, 239, 44, 212, 50, 239, 239, 239, 53, 189, |
448 174, 39, 176, 46, 177, 44, 50, 180, 165, 167, | 450 190, 40, 192, 47, 193, 46, 50, 196, 186, 180, |
449 177, 163, 164, 166, 170, 223, 39, 223, 79, 223, | 451 182, 192, 178, 179, 181, 185, 239, 61, 239, 81, |
450 0, 0, 223, 183, 223, 223, 223, 223, 223, 223, | 452 239, 0, 0, 239, 198, 239, 239, 239, 239, 239, |
451 66, 192, 0, 223, 68, 71, 82, 181, 223, 223, | 453 239, 70, 207, 0, 239, 72, 75, 81, 196, 239, |
452 223, 180, 223, 179, 167, 158, 153, 0, 152, 157, | 454 239, 239, 195, 239, 194, 182, 173, 168, 0, 167, |
453 151, 159, 0, 151, 143, 143, 158, 143, 155, 141, | 455 172, 181, 165, 173, 0, 165, 156, 156, 172, 160, |
454 142, 138, 147, 146, 223, 160, 0, 223, 90, 169, | 456 156, 168, 154, 155, 151, 160, 159, 239, 173, 0, |
455 | 457 |
456 163, 0, 84, 97, 161, 160, 223, 223, 223, 148, | 458 239, 89, 182, 176, 0, 91, 97, 174, 173, 239, |
457 61, 145, 142, 129, 0, 137, 125, 129, 127, 132, | 459 239, 239, 161, 72, 158, 155, 142, 140, 0, 149, |
458 0, 137, 120, 119, 132, 130, 124, 223, 144, 143, | 460 137, 141, 139, 144, 147, 0, 148, 131, 130, 143, |
459 223, 98, 142, 141, 120, 111, 119, 126, 0, 121, | 461 141, 135, 239, 155, 154, 239, 107, 153, 152, 131, |
460 110, 106, 104, 0, 103, 112, 104, 116, 0, 104, | 462 122, 130, 137, 0, 132, 0, 121, 117, 115, 0, |
461 112, 126, 125, 0, 0, 101, 97, 0, 0, 0, | 463 114, 116, 122, 114, 126, 0, 114, 122, 136, 135, |
462 94, 99, 93, 96, 90, 91, 0, 87, 101, 0, | 464 0, 0, 111, 107, 0, 0, 0, 104, 109, 103, |
463 89, 94, 0, 0, 90, 94, 0, 0, 72, 0, | 465 102, 105, 99, 100, 0, 96, 110, 0, 98, 97, |
464 0, 57, 0, 223, 90, 114, 116, 120, 124 | 466 102, 0, 0, 98, 102, 0, 0, 90, 79, 0, |
| 467 0, 88, 73, 65, 0, 69, 53, 65, 0, 239, |
| 468 |
| 469 58, 122, 124, 128, 132 |
465 } ; | 470 } ; |
466 | 471 |
467 static yyconst flex_int16_t yy_def[190] = | 472 static yyconst flex_int16_t yy_def[206] = |
468 { 0, | 473 { 0, |
469 184, 1, 184, 184, 184, 184, 184, 185, 186, 184, | 474 200, 1, 200, 200, 200, 200, 200, 201, 202, 200, |
470 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 475 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
471 184, 184, 184, 184, 184, 184, 184, 184, 184, 186, | 476 200, 200, 200, 200, 200, 200, 200, 200, 200, 202, |
472 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 477 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
473 186, 186, 186, 186, 186, 184, 184, 184, 184, 184, | 478 202, 202, 202, 202, 202, 202, 200, 200, 200, 200, |
474 187, 186, 184, 184, 184, 184, 184, 184, 184, 184, | 479 200, 203, 202, 200, 200, 200, 200, 200, 200, 200, |
475 184, 188, 189, 184, 184, 184, 184, 184, 184, 184, | 480 200, 200, 204, 205, 200, 200, 200, 200, 200, 200, |
476 184, 184, 184, 184, 186, 186, 186, 186, 186, 186, | 481 200, 200, 200, 200, 200, 202, 202, 202, 202, 202, |
477 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 482 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
478 186, 186, 186, 186, 184, 184, 187, 184, 184, 188, | 483 202, 202, 202, 202, 202, 202, 202, 200, 200, 203, |
479 | 484 |
480 188, 189, 184, 184, 184, 184, 184, 184, 184, 186, | 485 200, 200, 204, 204, 205, 200, 200, 200, 200, 200, |
481 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 486 200, 200, 202, 202, 202, 202, 202, 202, 202, 202, |
482 186, 186, 186, 186, 186, 186, 186, 184, 184, 184, | 487 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
483 184, 184, 184, 184, 186, 186, 186, 186, 186, 186, | 488 202, 202, 200, 200, 200, 200, 200, 200, 200, 202, |
484 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 489 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
485 186, 184, 184, 186, 186, 186, 186, 186, 186, 186, | 490 202, 202, 202, 202, 202, 202, 202, 202, 200, 200, |
486 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 491 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
487 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, | 492 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
488 186, 186, 186, 0, 184, 184, 184, 184, 184 | 493 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, |
| 494 202, 202, 202, 202, 202, 202, 202, 202, 202, 0, |
| 495 |
| 496 200, 200, 200, 200, 200 |
489 } ; | 497 } ; |
490 | 498 |
491 static yyconst flex_int16_t yy_nxt[275] = | 499 static yyconst flex_int16_t yy_nxt[292] = |
492 { 0, | 500 { 0, |
493 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, | 501 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
494 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, | 502 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, |
495 24, 25, 26, 9, 27, 28, 29, 9, 30, 31, | 503 24, 25, 26, 9, 27, 28, 29, 9, 30, 31, |
496 32, 33, 34, 9, 35, 36, 9, 37, 38, 9, | 504 32, 33, 34, 9, 35, 36, 9, 37, 38, 39, |
497 39, 40, 41, 42, 43, 44, 45, 9, 46, 47, | 505 40, 41, 42, 43, 44, 45, 9, 46, 9, 47, |
498 48, 49, 49, 49, 49, 54, 57, 59, 65, 95, | 506 48, 49, 50, 50, 50, 50, 55, 58, 60, 66, |
499 66, 62, 68, 69, 60, 58, 63, 67, 55, 71, | 507 52, 67, 63, 69, 70, 61, 59, 64, 68, 56, |
500 72, 64, 73, 80, 77, 67, 83, 85, 74, 78, | 508 72, 73, 65, 74, 81, 78, 68, 87, 85, 75, |
501 49, 49, 61, 84, 103, 65, 81, 66, 96, 99, | 509 79, 98, 50, 50, 82, 86, 62, 83, 106, 66, |
502 86, 104, 51, 105, 67, 105, 183, 99, 106, 104, | 510 88, 67, 108, 102, 108, 107, 199, 109, 68, 198, |
503 | 511 |
504 103, 129, 67, 129, 136, 137, 130, 132, 133, 152, | 512 134, 102, 134, 107, 197, 135, 68, 106, 138, 196, |
505 133, 152, 182, 134, 153, 132, 52, 52, 97, 97, | 513 138, 99, 195, 139, 137, 141, 142, 194, 159, 193, |
506 100, 100, 100, 100, 102, 181, 102, 102, 180, 179, | 514 159, 192, 137, 160, 53, 53, 100, 100, 103, 103, |
507 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, | 515 103, 103, 105, 191, 105, 105, 190, 189, 188, 187, |
508 168, 153, 153, 167, 166, 165, 164, 163, 162, 161, | 516 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, |
509 160, 159, 158, 157, 156, 155, 154, 134, 134, 130, | 517 176, 160, 160, 175, 174, 173, 172, 171, 170, 169, |
510 130, 151, 150, 149, 148, 147, 146, 145, 144, 143, | 518 168, 167, 166, 165, 164, 163, 162, 161, 139, 139, |
511 142, 141, 140, 139, 138, 135, 106, 106, 131, 101, | 519 135, 135, 158, 157, 156, 155, 154, 153, 152, 151, |
512 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, | 520 150, 149, 148, 147, 146, 145, 144, 143, 140, 109, |
513 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, | 521 109, 136, 104, 133, 132, 131, 130, 129, 128, 127, |
514 | 522 |
515 108, 107, 101, 98, 94, 93, 92, 91, 90, 89, | 523 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, |
516 88, 87, 82, 79, 76, 75, 70, 61, 56, 53, | 524 116, 115, 114, 113, 112, 111, 110, 104, 101, 97, |
517 50, 184, 3, 184, 184, 184, 184, 184, 184, 184, | 525 96, 95, 94, 93, 92, 91, 90, 89, 84, 80, |
518 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 526 77, 76, 71, 62, 57, 54, 51, 200, 3, 200, |
519 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 527 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
520 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 528 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
521 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 529 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
522 184, 184, 184, 184 | 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 |
523 } ; | 534 } ; |
524 | 535 |
525 static yyconst flex_int16_t yy_chk[275] = | 536 static yyconst flex_int16_t yy_chk[292] = |
526 { 0, | 537 { 0, |
527 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 538 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
528 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 539 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
529 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 540 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
530 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 541 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
531 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 542 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
532 1, 5, 5, 6, 6, 11, 15, 17, 20, 47, | 543 1, 1, 5, 5, 6, 6, 11, 15, 17, 20, |
533 20, 19, 23, 23, 17, 15, 19, 20, 11, 25, | 544 201, 20, 19, 23, 23, 17, 15, 19, 20, 11, |
534 25, 19, 29, 34, 32, 20, 36, 37, 29, 32, | 545 25, 25, 19, 29, 34, 32, 20, 37, 36, 29, |
535 49, 49, 61, 36, 65, 66, 34, 66, 47, 61, | 546 32, 48, 50, 50, 34, 36, 62, 34, 66, 67, |
536 37, 65, 185, 67, 66, 67, 182, 61, 67, 65, | 547 37, 67, 68, 62, 68, 66, 198, 68, 67, 197, |
537 | 548 |
538 103, 99, 66, 99, 111, 111, 99, 103, 104, 132, | 549 102, 62, 102, 66, 196, 102, 67, 106, 107, 194, |
539 104, 132, 179, 104, 132, 103, 186, 186, 187, 187, | 550 107, 48, 193, 107, 106, 114, 114, 192, 137, 189, |
540 188, 188, 188, 188, 189, 176, 189, 189, 175, 172, | 551 137, 188, 106, 137, 202, 202, 203, 203, 204, 204, |
541 171, 169, 168, 166, 165, 164, 163, 162, 161, 157, | 552 204, 204, 205, 185, 205, 205, 184, 181, 180, 179, |
542 156, 153, 152, 151, 150, 148, 147, 146, 145, 143, | 553 177, 176, 174, 173, 172, 171, 170, 169, 168, 164, |
543 142, 141, 140, 138, 137, 136, 135, 134, 133, 130, | 554 163, 160, 159, 158, 157, 155, 154, 153, 152, 151, |
544 129, 127, 126, 125, 124, 123, 122, 120, 119, 118, | 555 149, 148, 147, 145, 143, 142, 141, 140, 139, 138, |
545 117, 116, 114, 113, 112, 110, 106, 105, 101, 100, | 556 135, 134, 132, 131, 130, 129, 128, 127, 125, 124, |
546 96, 94, 93, 92, 91, 90, 89, 88, 87, 86, | 557 123, 122, 121, 120, 118, 117, 116, 115, 113, 109, |
547 85, 84, 82, 81, 80, 79, 77, 76, 75, 74, | 558 108, 104, 103, 99, 97, 96, 95, 94, 93, 92, |
548 | 559 |
549 72, 68, 62, 54, 45, 44, 43, 42, 41, 40, | 560 91, 90, 89, 88, 87, 86, 84, 83, 82, 81, |
550 39, 38, 35, 33, 31, 30, 24, 18, 14, 10, | 561 80, 78, 77, 76, 75, 73, 69, 63, 55, 46, |
551 7, 3, 184, 184, 184, 184, 184, 184, 184, 184, | 562 45, 44, 43, 42, 41, 40, 39, 38, 35, 33, |
552 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 563 31, 30, 24, 18, 14, 10, 7, 3, 200, 200, |
553 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 564 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
554 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 565 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
555 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, | 566 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
556 184, 184, 184, 184 | 567 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 568 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, |
| 569 200 |
| 570 |
557 } ; | 571 } ; |
558 | 572 |
559 /* Table of booleans, true if rule could match eol. */ | 573 /* Table of booleans, true if rule could match eol. */ |
560 static yyconst flex_int32_t yy_rule_can_match_eol[81] = | 574 static yyconst flex_int32_t yy_rule_can_match_eol[83] = |
561 { 0, | 575 { 0, |
562 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, |
563 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, |
564 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, |
565 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, | 579 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, |
566 0, }; | 580 1, 0, 0, }; |
567 | 581 |
568 /* The intent behind this definition is that it'll catch | 582 /* The intent behind this definition is that it'll catch |
569 * any uses of REJECT which flex missed. | 583 * any uses of REJECT which flex missed. |
570 */ | 584 */ |
571 #define REJECT reject_used_but_not_detected | 585 #define REJECT reject_used_but_not_detected |
572 #define yymore() yymore_used_but_not_detected | 586 #define yymore() yymore_used_but_not_detected |
573 #define YY_MORE_ADJ 0 | 587 #define YY_MORE_ADJ 0 |
574 #define YY_RESTORE_YY_MORE_OFFSET | 588 #define YY_RESTORE_YY_MORE_OFFSET |
575 #line 1 "sksl.flex" | 589 #line 1 "sksl.flex" |
576 /* | 590 /* |
577 | 591 |
578 This file is IGNORED during the build process! | 592 This file is IGNORED during the build process! |
579 | 593 |
580 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, |
581 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: |
582 | 596 |
583 flex sksl.flex | 597 flex sksl.flex |
584 | 598 |
| 599 You will have to manually add a copyright notice to the top of lex.sksl.c. |
| 600 |
585 */ | 601 */ |
586 #define YY_NO_UNISTD_H 1 | 602 #define YY_NO_UNISTD_H 1 |
587 #line 582 "lex.sksl.c" | 603 #line 598 "lex.sksl.c" |
588 | 604 |
589 #define INITIAL 0 | 605 #define INITIAL 0 |
590 | 606 |
591 #ifndef YY_NO_UNISTD_H | 607 #ifndef YY_NO_UNISTD_H |
592 /* 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 |
593 * 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. |
594 * The user has a chance to override it with an option. | 610 * The user has a chance to override it with an option. |
595 */ | 611 */ |
596 #include <unistd.h> | 612 #include <unistd.h> |
597 #endif | 613 #endif |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 void skslset_out (FILE * out_str ,yyscan_t yyscanner ); | 678 void skslset_out (FILE * out_str ,yyscan_t yyscanner ); |
663 | 679 |
664 yy_size_t skslget_leng (yyscan_t yyscanner ); | 680 yy_size_t skslget_leng (yyscan_t yyscanner ); |
665 | 681 |
666 char *skslget_text (yyscan_t yyscanner ); | 682 char *skslget_text (yyscan_t yyscanner ); |
667 | 683 |
668 int skslget_lineno (yyscan_t yyscanner ); | 684 int skslget_lineno (yyscan_t yyscanner ); |
669 | 685 |
670 void skslset_lineno (int line_number ,yyscan_t yyscanner ); | 686 void skslset_lineno (int line_number ,yyscan_t yyscanner ); |
671 | 687 |
| 688 int skslget_column (yyscan_t yyscanner ); |
| 689 |
| 690 void skslset_column (int column_no ,yyscan_t yyscanner ); |
| 691 |
672 /* 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 |
673 * section 1. | 693 * section 1. |
674 */ | 694 */ |
675 | 695 |
676 #ifndef YY_SKIP_YYWRAP | 696 #ifndef YY_SKIP_YYWRAP |
677 #ifdef __cplusplus | 697 #ifdef __cplusplus |
678 extern "C" int skslwrap (yyscan_t yyscanner ); | 698 extern "C" int skslwrap (yyscan_t yyscanner ); |
679 #else | 699 #else |
680 extern int skslwrap (yyscan_t yyscanner ); | 700 extern int skslwrap (yyscan_t yyscanner ); |
681 #endif | 701 #endif |
(...skipping 22 matching lines...) Expand all Loading... |
704 /* Amount of stuff to slurp up with each read. */ | 724 /* Amount of stuff to slurp up with each read. */ |
705 #ifndef YY_READ_BUF_SIZE | 725 #ifndef YY_READ_BUF_SIZE |
706 #define YY_READ_BUF_SIZE 8192 | 726 #define YY_READ_BUF_SIZE 8192 |
707 #endif | 727 #endif |
708 | 728 |
709 /* Copy whatever the last rule matched to the standard output. */ | 729 /* Copy whatever the last rule matched to the standard output. */ |
710 #ifndef ECHO | 730 #ifndef ECHO |
711 /* 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, |
712 * we now use fwrite(). | 732 * we now use fwrite(). |
713 */ | 733 */ |
714 #define ECHO fwrite( yytext, yyleng, 1, yyout ) | 734 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
715 #endif | 735 #endif |
716 | 736 |
717 /* 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, |
718 * is returned in "result". | 738 * is returned in "result". |
719 */ | 739 */ |
720 #ifndef YY_INPUT | 740 #ifndef YY_INPUT |
721 #define YY_INPUT(buf,result,max_size) \ | 741 #define YY_INPUT(buf,result,max_size) \ |
722 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ | 742 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
723 { \ | 743 { \ |
724 int c = '*'; \ | 744 int c = '*'; \ |
725 » » yy_size_t n; \ | 745 » » size_t n; \ |
726 for ( n = 0; n < max_size && \ | 746 for ( n = 0; n < max_size && \ |
727 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ | 747 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
728 buf[n] = (char) c; \ | 748 buf[n] = (char) c; \ |
729 if ( c == '\n' ) \ | 749 if ( c == '\n' ) \ |
730 buf[n++] = (char) c; \ | 750 buf[n++] = (char) c; \ |
731 if ( c == EOF && ferror( yyin ) ) \ | 751 if ( c == EOF && ferror( yyin ) ) \ |
732 YY_FATAL_ERROR( "input in flex scanner failed" ); \ | 752 YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
733 result = n; \ | 753 result = n; \ |
734 } \ | 754 } \ |
735 else \ | 755 else \ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 818 |
799 /** The main scanner function which does all the work. | 819 /** The main scanner function which does all the work. |
800 */ | 820 */ |
801 YY_DECL | 821 YY_DECL |
802 { | 822 { |
803 register yy_state_type yy_current_state; | 823 register yy_state_type yy_current_state; |
804 register char *yy_cp, *yy_bp; | 824 register char *yy_cp, *yy_bp; |
805 register int yy_act; | 825 register int yy_act; |
806 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 826 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
807 | 827 |
808 #line 21 "sksl.flex" | 828 #line 23 "sksl.flex" |
809 | 829 |
810 | 830 |
811 #line 806 "lex.sksl.c" | 831 #line 826 "lex.sksl.c" |
812 | 832 |
813 if ( !yyg->yy_init ) | 833 if ( !yyg->yy_init ) |
814 { | 834 { |
815 yyg->yy_init = 1; | 835 yyg->yy_init = 1; |
816 | 836 |
817 #ifdef YY_USER_INIT | 837 #ifdef YY_USER_INIT |
818 YY_USER_INIT; | 838 YY_USER_INIT; |
819 #endif | 839 #endif |
820 | 840 |
821 if ( ! yyg->yy_start ) | 841 if ( ! yyg->yy_start ) |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 { | 874 { |
855 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)]; |
856 if ( yy_accept[yy_current_state] ) | 876 if ( yy_accept[yy_current_state] ) |
857 { | 877 { |
858 yyg->yy_last_accepting_state = yy_current_state; | 878 yyg->yy_last_accepting_state = yy_current_state; |
859 yyg->yy_last_accepting_cpos = yy_cp; | 879 yyg->yy_last_accepting_cpos = yy_cp; |
860 } | 880 } |
861 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 ) |
862 { | 882 { |
863 yy_current_state = (int) yy_def[yy_current_state
]; | 883 yy_current_state = (int) yy_def[yy_current_state
]; |
864 » » » » if ( yy_current_state >= 185 ) | 884 » » » » if ( yy_current_state >= 201 ) |
865 yy_c = yy_meta[(unsigned int) yy_c]; | 885 yy_c = yy_meta[(unsigned int) yy_c]; |
866 } | 886 } |
867 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]; |
868 ++yy_cp; | 888 ++yy_cp; |
869 } | 889 } |
870 » » while ( yy_current_state != 184 ); | 890 » » while ( yy_current_state != 200 ); |
871 yy_cp = yyg->yy_last_accepting_cpos; | 891 yy_cp = yyg->yy_last_accepting_cpos; |
872 yy_current_state = yyg->yy_last_accepting_state; | 892 yy_current_state = yyg->yy_last_accepting_state; |
873 | 893 |
874 yy_find_action: | 894 yy_find_action: |
875 yy_act = yy_accept[yy_current_state]; | 895 yy_act = yy_accept[yy_current_state]; |
876 | 896 |
877 YY_DO_BEFORE_ACTION; | 897 YY_DO_BEFORE_ACTION; |
878 | 898 |
879 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]
) |
880 { | 900 { |
881 » » » yy_size_t yyl; | 901 » » » int yyl; |
882 for ( yyl = 0; yyl < yyleng; ++yyl ) | 902 for ( yyl = 0; yyl < yyleng; ++yyl ) |
883 if ( yytext[yyl] == '\n' ) | 903 if ( yytext[yyl] == '\n' ) |
884 | 904 |
885 do{ yylineno++; | 905 do{ yylineno++; |
886 yycolumn=0; | 906 yycolumn=0; |
887 }while(0) | 907 }while(0) |
888 ; | 908 ; |
889 } | 909 } |
890 | 910 |
891 do_action: /* This label is used only to access EOF actions. */ | 911 do_action: /* This label is used only to access EOF actions. */ |
892 | 912 |
893 switch ( yy_act ) | 913 switch ( yy_act ) |
894 { /* beginning of action switch */ | 914 { /* beginning of action switch */ |
895 case 0: /* must back up */ | 915 case 0: /* must back up */ |
896 /* undo the effects of YY_DO_BEFORE_ACTION */ | 916 /* undo the effects of YY_DO_BEFORE_ACTION */ |
897 *yy_cp = yyg->yy_hold_char; | 917 *yy_cp = yyg->yy_hold_char; |
898 yy_cp = yyg->yy_last_accepting_cpos; | 918 yy_cp = yyg->yy_last_accepting_cpos; |
899 yy_current_state = yyg->yy_last_accepting_state; | 919 yy_current_state = yyg->yy_last_accepting_state; |
900 goto yy_find_action; | 920 goto yy_find_action; |
901 | 921 |
902 case 1: | 922 case 1: |
903 YY_RULE_SETUP | 923 YY_RULE_SETUP |
904 #line 23 "sksl.flex" | |
905 { return SkSL::Token::FLOAT_LITERAL; } | |
906 YY_BREAK | |
907 case 2: | |
908 YY_RULE_SETUP | |
909 #line 25 "sksl.flex" | 924 #line 25 "sksl.flex" |
910 { return SkSL::Token::FLOAT_LITERAL; } | 925 { return SkSL::Token::FLOAT_LITERAL; } |
911 YY_BREAK | 926 YY_BREAK |
912 case 3: | 927 case 2: |
913 YY_RULE_SETUP | 928 YY_RULE_SETUP |
914 #line 27 "sksl.flex" | 929 #line 27 "sksl.flex" |
915 { return SkSL::Token::FLOAT_LITERAL; } | 930 { return SkSL::Token::FLOAT_LITERAL; } |
916 YY_BREAK | 931 YY_BREAK |
| 932 case 3: |
| 933 YY_RULE_SETUP |
| 934 #line 29 "sksl.flex" |
| 935 { return SkSL::Token::FLOAT_LITERAL; } |
| 936 YY_BREAK |
917 case 4: | 937 case 4: |
918 YY_RULE_SETUP | 938 YY_RULE_SETUP |
919 #line 29 "sksl.flex" | 939 #line 31 "sksl.flex" |
920 { return SkSL::Token::INT_LITERAL; } | 940 { return SkSL::Token::INT_LITERAL; } |
921 YY_BREAK | 941 YY_BREAK |
922 case 5: | 942 case 5: |
923 YY_RULE_SETUP | 943 YY_RULE_SETUP |
924 #line 31 "sksl.flex" | 944 #line 33 "sksl.flex" |
925 { return SkSL::Token::TRUE_LITERAL; } | 945 { return SkSL::Token::TRUE_LITERAL; } |
926 YY_BREAK | 946 YY_BREAK |
927 case 6: | 947 case 6: |
928 YY_RULE_SETUP | 948 YY_RULE_SETUP |
929 #line 33 "sksl.flex" | 949 #line 35 "sksl.flex" |
930 { return SkSL::Token::FALSE_LITERAL; } | 950 { return SkSL::Token::FALSE_LITERAL; } |
931 YY_BREAK | 951 YY_BREAK |
932 case 7: | 952 case 7: |
933 YY_RULE_SETUP | 953 YY_RULE_SETUP |
934 #line 35 "sksl.flex" | 954 #line 37 "sksl.flex" |
935 { return SkSL::Token::IF; } | 955 { return SkSL::Token::IF; } |
936 YY_BREAK | 956 YY_BREAK |
937 case 8: | 957 case 8: |
938 YY_RULE_SETUP | 958 YY_RULE_SETUP |
939 #line 37 "sksl.flex" | 959 #line 39 "sksl.flex" |
940 { return SkSL::Token::ELSE; } | 960 { return SkSL::Token::ELSE; } |
941 YY_BREAK | 961 YY_BREAK |
942 case 9: | 962 case 9: |
943 YY_RULE_SETUP | 963 YY_RULE_SETUP |
944 #line 39 "sksl.flex" | 964 #line 41 "sksl.flex" |
945 { return SkSL::Token::FOR; } | 965 { return SkSL::Token::FOR; } |
946 YY_BREAK | 966 YY_BREAK |
947 case 10: | 967 case 10: |
948 YY_RULE_SETUP | 968 YY_RULE_SETUP |
949 #line 41 "sksl.flex" | 969 #line 43 "sksl.flex" |
950 { return SkSL::Token::WHILE; } | 970 { return SkSL::Token::WHILE; } |
951 YY_BREAK | 971 YY_BREAK |
952 case 11: | 972 case 11: |
953 YY_RULE_SETUP | 973 YY_RULE_SETUP |
954 #line 43 "sksl.flex" | 974 #line 45 "sksl.flex" |
955 { return SkSL::Token::DO; } | 975 { return SkSL::Token::DO; } |
956 YY_BREAK | 976 YY_BREAK |
957 case 12: | 977 case 12: |
958 YY_RULE_SETUP | 978 YY_RULE_SETUP |
959 #line 45 "sksl.flex" | 979 #line 47 "sksl.flex" |
960 { return SkSL::Token::BREAK; } | 980 { return SkSL::Token::BREAK; } |
961 YY_BREAK | 981 YY_BREAK |
962 case 13: | 982 case 13: |
963 YY_RULE_SETUP | 983 YY_RULE_SETUP |
964 #line 47 "sksl.flex" | 984 #line 49 "sksl.flex" |
965 { return SkSL::Token::CONTINUE; } | 985 { return SkSL::Token::CONTINUE; } |
966 YY_BREAK | 986 YY_BREAK |
967 case 14: | 987 case 14: |
968 YY_RULE_SETUP | 988 YY_RULE_SETUP |
969 #line 49 "sksl.flex" | 989 #line 51 "sksl.flex" |
970 { return SkSL::Token::DISCARD; } | 990 { return SkSL::Token::DISCARD; } |
971 YY_BREAK | 991 YY_BREAK |
972 case 15: | 992 case 15: |
973 YY_RULE_SETUP | 993 YY_RULE_SETUP |
974 #line 51 "sksl.flex" | 994 #line 53 "sksl.flex" |
975 { return SkSL::Token::RETURN; } | 995 { return SkSL::Token::RETURN; } |
976 YY_BREAK | 996 YY_BREAK |
977 case 16: | 997 case 16: |
978 YY_RULE_SETUP | 998 YY_RULE_SETUP |
979 #line 53 "sksl.flex" | 999 #line 55 "sksl.flex" |
980 { return SkSL::Token::IN; } | 1000 { return SkSL::Token::IN; } |
981 YY_BREAK | 1001 YY_BREAK |
982 case 17: | 1002 case 17: |
983 YY_RULE_SETUP | 1003 YY_RULE_SETUP |
984 #line 55 "sksl.flex" | 1004 #line 57 "sksl.flex" |
985 { return SkSL::Token::OUT; } | 1005 { return SkSL::Token::OUT; } |
986 YY_BREAK | 1006 YY_BREAK |
987 case 18: | 1007 case 18: |
988 YY_RULE_SETUP | 1008 YY_RULE_SETUP |
989 #line 57 "sksl.flex" | 1009 #line 59 "sksl.flex" |
990 { return SkSL::Token::INOUT; } | 1010 { return SkSL::Token::INOUT; } |
991 YY_BREAK | 1011 YY_BREAK |
992 case 19: | 1012 case 19: |
993 YY_RULE_SETUP | 1013 YY_RULE_SETUP |
994 #line 59 "sksl.flex" | 1014 #line 61 "sksl.flex" |
995 { return SkSL::Token::UNIFORM; } | 1015 { return SkSL::Token::UNIFORM; } |
996 YY_BREAK | 1016 YY_BREAK |
997 case 20: | 1017 case 20: |
998 YY_RULE_SETUP | 1018 YY_RULE_SETUP |
999 #line 61 "sksl.flex" | 1019 #line 63 "sksl.flex" |
1000 { return SkSL::Token::CONST; } | 1020 { return SkSL::Token::CONST; } |
1001 YY_BREAK | 1021 YY_BREAK |
1002 case 21: | 1022 case 21: |
1003 YY_RULE_SETUP | 1023 YY_RULE_SETUP |
1004 #line 63 "sksl.flex" | 1024 #line 65 "sksl.flex" |
1005 { return SkSL::Token::LOWP; } | 1025 { return SkSL::Token::LOWP; } |
1006 YY_BREAK | 1026 YY_BREAK |
1007 case 22: | 1027 case 22: |
1008 YY_RULE_SETUP | 1028 YY_RULE_SETUP |
1009 #line 65 "sksl.flex" | 1029 #line 67 "sksl.flex" |
1010 { return SkSL::Token::MEDIUMP; } | 1030 { return SkSL::Token::MEDIUMP; } |
1011 YY_BREAK | 1031 YY_BREAK |
1012 case 23: | 1032 case 23: |
1013 YY_RULE_SETUP | 1033 YY_RULE_SETUP |
1014 #line 67 "sksl.flex" | 1034 #line 69 "sksl.flex" |
1015 { return SkSL::Token::HIGHP; } | 1035 { return SkSL::Token::HIGHP; } |
1016 YY_BREAK | 1036 YY_BREAK |
1017 case 24: | 1037 case 24: |
1018 YY_RULE_SETUP | 1038 YY_RULE_SETUP |
1019 #line 69 "sksl.flex" | 1039 #line 71 "sksl.flex" |
| 1040 { return SkSL::Token::FLAT; } |
| 1041 » YY_BREAK |
| 1042 case 25: |
| 1043 YY_RULE_SETUP |
| 1044 #line 73 "sksl.flex" |
| 1045 { return SkSL::Token::NOPERSPECTIVE; } |
| 1046 » YY_BREAK |
| 1047 case 26: |
| 1048 YY_RULE_SETUP |
| 1049 #line 75 "sksl.flex" |
1020 { return SkSL::Token::STRUCT; } | 1050 { return SkSL::Token::STRUCT; } |
1021 YY_BREAK | 1051 YY_BREAK |
1022 case 25: | 1052 case 27: |
1023 YY_RULE_SETUP | 1053 YY_RULE_SETUP |
1024 #line 71 "sksl.flex" | 1054 #line 77 "sksl.flex" |
1025 { return SkSL::Token::LAYOUT; } | 1055 { return SkSL::Token::LAYOUT; } |
1026 YY_BREAK | 1056 YY_BREAK |
1027 case 26: | 1057 case 28: |
1028 YY_RULE_SETUP | 1058 YY_RULE_SETUP |
1029 #line 73 "sksl.flex" | 1059 #line 79 "sksl.flex" |
1030 { return SkSL::Token::PRECISION; } | 1060 { return SkSL::Token::PRECISION; } |
1031 YY_BREAK | 1061 YY_BREAK |
1032 case 27: | 1062 case 29: |
1033 YY_RULE_SETUP | 1063 YY_RULE_SETUP |
1034 #line 75 "sksl.flex" | 1064 #line 81 "sksl.flex" |
1035 { return SkSL::Token::IDENTIFIER; } | 1065 { return SkSL::Token::IDENTIFIER; } |
1036 YY_BREAK | 1066 YY_BREAK |
1037 case 28: | 1067 case 30: |
1038 YY_RULE_SETUP | 1068 YY_RULE_SETUP |
1039 #line 77 "sksl.flex" | 1069 #line 83 "sksl.flex" |
1040 { return SkSL::Token::DIRECTIVE; } | 1070 { return SkSL::Token::DIRECTIVE; } |
1041 YY_BREAK | 1071 YY_BREAK |
1042 case 29: | 1072 case 31: |
1043 YY_RULE_SETUP | 1073 YY_RULE_SETUP |
1044 #line 79 "sksl.flex" | 1074 #line 85 "sksl.flex" |
1045 { return SkSL::Token::LPAREN; } | 1075 { return SkSL::Token::LPAREN; } |
1046 YY_BREAK | 1076 YY_BREAK |
1047 case 30: | 1077 case 32: |
1048 YY_RULE_SETUP | 1078 YY_RULE_SETUP |
1049 #line 81 "sksl.flex" | 1079 #line 87 "sksl.flex" |
1050 { return SkSL::Token::RPAREN; } | 1080 { return SkSL::Token::RPAREN; } |
1051 YY_BREAK | 1081 YY_BREAK |
1052 case 31: | 1082 case 33: |
1053 YY_RULE_SETUP | 1083 YY_RULE_SETUP |
1054 #line 83 "sksl.flex" | 1084 #line 89 "sksl.flex" |
1055 { return SkSL::Token::LBRACE; } | 1085 { return SkSL::Token::LBRACE; } |
1056 YY_BREAK | 1086 YY_BREAK |
1057 case 32: | 1087 case 34: |
1058 YY_RULE_SETUP | 1088 YY_RULE_SETUP |
1059 #line 85 "sksl.flex" | 1089 #line 91 "sksl.flex" |
1060 { return SkSL::Token::RBRACE; } | 1090 { return SkSL::Token::RBRACE; } |
1061 YY_BREAK | 1091 YY_BREAK |
1062 case 33: | 1092 case 35: |
1063 YY_RULE_SETUP | 1093 YY_RULE_SETUP |
1064 #line 87 "sksl.flex" | 1094 #line 93 "sksl.flex" |
1065 { return SkSL::Token::LBRACKET; } | 1095 { return SkSL::Token::LBRACKET; } |
1066 YY_BREAK | 1096 YY_BREAK |
1067 case 34: | 1097 case 36: |
1068 YY_RULE_SETUP | 1098 YY_RULE_SETUP |
1069 #line 89 "sksl.flex" | 1099 #line 95 "sksl.flex" |
1070 { return SkSL::Token::RBRACKET; } | 1100 { return SkSL::Token::RBRACKET; } |
1071 YY_BREAK | 1101 YY_BREAK |
1072 case 35: | 1102 case 37: |
1073 YY_RULE_SETUP | 1103 YY_RULE_SETUP |
1074 #line 91 "sksl.flex" | 1104 #line 97 "sksl.flex" |
1075 { return SkSL::Token::DOT; } | 1105 { return SkSL::Token::DOT; } |
1076 YY_BREAK | 1106 YY_BREAK |
1077 case 36: | 1107 case 38: |
1078 YY_RULE_SETUP | 1108 YY_RULE_SETUP |
1079 #line 93 "sksl.flex" | 1109 #line 99 "sksl.flex" |
1080 { return SkSL::Token::COMMA; } | 1110 { return SkSL::Token::COMMA; } |
1081 YY_BREAK | 1111 YY_BREAK |
1082 case 37: | 1112 case 39: |
1083 YY_RULE_SETUP | 1113 YY_RULE_SETUP |
1084 #line 95 "sksl.flex" | 1114 #line 101 "sksl.flex" |
1085 { return SkSL::Token::PLUSPLUS; } | 1115 { return SkSL::Token::PLUSPLUS; } |
1086 YY_BREAK | 1116 YY_BREAK |
1087 case 38: | 1117 case 40: |
1088 YY_RULE_SETUP | 1118 YY_RULE_SETUP |
1089 #line 97 "sksl.flex" | 1119 #line 103 "sksl.flex" |
1090 { return SkSL::Token::MINUSMINUS; } | 1120 { return SkSL::Token::MINUSMINUS; } |
1091 YY_BREAK | 1121 YY_BREAK |
1092 case 39: | 1122 case 41: |
1093 YY_RULE_SETUP | 1123 YY_RULE_SETUP |
1094 #line 99 "sksl.flex" | 1124 #line 105 "sksl.flex" |
1095 { return SkSL::Token::PLUS; } | 1125 { return SkSL::Token::PLUS; } |
1096 YY_BREAK | 1126 YY_BREAK |
1097 case 40: | 1127 case 42: |
1098 YY_RULE_SETUP | 1128 YY_RULE_SETUP |
1099 #line 101 "sksl.flex" | 1129 #line 107 "sksl.flex" |
1100 { return SkSL::Token::MINUS; } | 1130 { return SkSL::Token::MINUS; } |
1101 YY_BREAK | 1131 YY_BREAK |
1102 case 41: | 1132 case 43: |
1103 YY_RULE_SETUP | 1133 YY_RULE_SETUP |
1104 #line 103 "sksl.flex" | 1134 #line 109 "sksl.flex" |
1105 { return SkSL::Token::STAR; } | 1135 { return SkSL::Token::STAR; } |
1106 YY_BREAK | 1136 YY_BREAK |
1107 case 42: | 1137 case 44: |
1108 YY_RULE_SETUP | 1138 YY_RULE_SETUP |
1109 #line 105 "sksl.flex" | 1139 #line 111 "sksl.flex" |
1110 { return SkSL::Token::SLASH; } | 1140 { return SkSL::Token::SLASH; } |
1111 YY_BREAK | 1141 YY_BREAK |
1112 case 43: | 1142 case 45: |
1113 YY_RULE_SETUP | 1143 YY_RULE_SETUP |
1114 #line 107 "sksl.flex" | 1144 #line 113 "sksl.flex" |
1115 { return SkSL::Token::PERCENT; } | 1145 { return SkSL::Token::PERCENT; } |
1116 YY_BREAK | 1146 YY_BREAK |
1117 case 44: | 1147 case 46: |
1118 YY_RULE_SETUP | 1148 YY_RULE_SETUP |
1119 #line 109 "sksl.flex" | 1149 #line 115 "sksl.flex" |
1120 { return SkSL::Token::SHL; } | 1150 { return SkSL::Token::SHL; } |
1121 YY_BREAK | 1151 YY_BREAK |
1122 case 45: | 1152 case 47: |
1123 YY_RULE_SETUP | 1153 YY_RULE_SETUP |
1124 #line 111 "sksl.flex" | 1154 #line 117 "sksl.flex" |
1125 { return SkSL::Token::SHR; } | 1155 { return SkSL::Token::SHR; } |
1126 YY_BREAK | 1156 YY_BREAK |
1127 case 46: | 1157 case 48: |
1128 YY_RULE_SETUP | 1158 YY_RULE_SETUP |
1129 #line 113 "sksl.flex" | 1159 #line 119 "sksl.flex" |
1130 { return SkSL::Token::BITWISEOR; } | 1160 { return SkSL::Token::BITWISEOR; } |
1131 YY_BREAK | 1161 YY_BREAK |
1132 case 47: | 1162 case 49: |
1133 YY_RULE_SETUP | 1163 YY_RULE_SETUP |
1134 #line 115 "sksl.flex" | 1164 #line 121 "sksl.flex" |
1135 { return SkSL::Token::BITWISEXOR; } | 1165 { return SkSL::Token::BITWISEXOR; } |
1136 YY_BREAK | 1166 YY_BREAK |
1137 case 48: | 1167 case 50: |
1138 YY_RULE_SETUP | 1168 YY_RULE_SETUP |
1139 #line 117 "sksl.flex" | 1169 #line 123 "sksl.flex" |
1140 { return SkSL::Token::BITWISEAND; } | 1170 { return SkSL::Token::BITWISEAND; } |
1141 YY_BREAK | 1171 YY_BREAK |
1142 case 49: | 1172 case 51: |
1143 YY_RULE_SETUP | 1173 YY_RULE_SETUP |
1144 #line 119 "sksl.flex" | 1174 #line 125 "sksl.flex" |
1145 { return SkSL::Token::LOGICALOR; } | 1175 { return SkSL::Token::LOGICALOR; } |
1146 YY_BREAK | 1176 YY_BREAK |
1147 case 50: | 1177 case 52: |
1148 YY_RULE_SETUP | 1178 YY_RULE_SETUP |
1149 #line 121 "sksl.flex" | 1179 #line 127 "sksl.flex" |
1150 { return SkSL::Token::LOGICALXOR; } | 1180 { return SkSL::Token::LOGICALXOR; } |
1151 YY_BREAK | 1181 YY_BREAK |
1152 case 51: | 1182 case 53: |
1153 YY_RULE_SETUP | 1183 YY_RULE_SETUP |
1154 #line 123 "sksl.flex" | 1184 #line 129 "sksl.flex" |
1155 { return SkSL::Token::LOGICALAND; } | 1185 { return SkSL::Token::LOGICALAND; } |
1156 YY_BREAK | 1186 YY_BREAK |
1157 case 52: | 1187 case 54: |
1158 YY_RULE_SETUP | 1188 YY_RULE_SETUP |
1159 #line 125 "sksl.flex" | 1189 #line 131 "sksl.flex" |
1160 { return SkSL::Token::NOT; } | 1190 { return SkSL::Token::NOT; } |
1161 YY_BREAK | 1191 YY_BREAK |
1162 case 53: | 1192 case 55: |
1163 YY_RULE_SETUP | 1193 YY_RULE_SETUP |
1164 #line 127 "sksl.flex" | 1194 #line 133 "sksl.flex" |
1165 { return SkSL::Token::QUESTION; } | 1195 { return SkSL::Token::QUESTION; } |
1166 YY_BREAK | 1196 YY_BREAK |
1167 case 54: | 1197 case 56: |
1168 YY_RULE_SETUP | 1198 YY_RULE_SETUP |
1169 #line 129 "sksl.flex" | 1199 #line 135 "sksl.flex" |
1170 { return SkSL::Token::COLON; } | 1200 { return SkSL::Token::COLON; } |
1171 YY_BREAK | 1201 YY_BREAK |
1172 case 55: | 1202 case 57: |
1173 YY_RULE_SETUP | 1203 YY_RULE_SETUP |
1174 #line 131 "sksl.flex" | 1204 #line 137 "sksl.flex" |
1175 { return SkSL::Token::EQ; } | 1205 { return SkSL::Token::EQ; } |
1176 YY_BREAK | 1206 YY_BREAK |
1177 case 56: | 1207 case 58: |
1178 YY_RULE_SETUP | 1208 YY_RULE_SETUP |
1179 #line 133 "sksl.flex" | 1209 #line 139 "sksl.flex" |
1180 { return SkSL::Token::EQEQ; } | 1210 { return SkSL::Token::EQEQ; } |
1181 YY_BREAK | 1211 YY_BREAK |
1182 case 57: | 1212 case 59: |
1183 YY_RULE_SETUP | 1213 YY_RULE_SETUP |
1184 #line 135 "sksl.flex" | 1214 #line 141 "sksl.flex" |
1185 { return SkSL::Token::NEQ; } | 1215 { return SkSL::Token::NEQ; } |
1186 YY_BREAK | 1216 YY_BREAK |
1187 case 58: | 1217 case 60: |
1188 YY_RULE_SETUP | 1218 YY_RULE_SETUP |
1189 #line 137 "sksl.flex" | 1219 #line 143 "sksl.flex" |
1190 { return SkSL::Token::GT; } | 1220 { return SkSL::Token::GT; } |
1191 YY_BREAK | 1221 YY_BREAK |
1192 case 59: | 1222 case 61: |
1193 YY_RULE_SETUP | 1223 YY_RULE_SETUP |
1194 #line 139 "sksl.flex" | 1224 #line 145 "sksl.flex" |
1195 { return SkSL::Token::LT; } | 1225 { return SkSL::Token::LT; } |
1196 YY_BREAK | 1226 YY_BREAK |
1197 case 60: | 1227 case 62: |
1198 YY_RULE_SETUP | 1228 YY_RULE_SETUP |
1199 #line 141 "sksl.flex" | 1229 #line 147 "sksl.flex" |
1200 { return SkSL::Token::GTEQ; } | 1230 { return SkSL::Token::GTEQ; } |
1201 YY_BREAK | 1231 YY_BREAK |
1202 case 61: | 1232 case 63: |
1203 YY_RULE_SETUP | 1233 YY_RULE_SETUP |
1204 #line 143 "sksl.flex" | 1234 #line 149 "sksl.flex" |
1205 { return SkSL::Token::LTEQ; } | 1235 { return SkSL::Token::LTEQ; } |
1206 YY_BREAK | 1236 YY_BREAK |
1207 case 62: | 1237 case 64: |
1208 YY_RULE_SETUP | 1238 YY_RULE_SETUP |
1209 #line 145 "sksl.flex" | 1239 #line 151 "sksl.flex" |
1210 { return SkSL::Token::PLUSEQ; } | 1240 { return SkSL::Token::PLUSEQ; } |
1211 YY_BREAK | 1241 YY_BREAK |
1212 case 63: | 1242 case 65: |
1213 YY_RULE_SETUP | 1243 YY_RULE_SETUP |
1214 #line 147 "sksl.flex" | 1244 #line 153 "sksl.flex" |
1215 { return SkSL::Token::MINUSEQ; } | 1245 { return SkSL::Token::MINUSEQ; } |
1216 YY_BREAK | 1246 YY_BREAK |
1217 case 64: | 1247 case 66: |
1218 YY_RULE_SETUP | 1248 YY_RULE_SETUP |
1219 #line 149 "sksl.flex" | 1249 #line 155 "sksl.flex" |
1220 { return SkSL::Token::STAREQ; } | 1250 { return SkSL::Token::STAREQ; } |
1221 YY_BREAK | 1251 YY_BREAK |
1222 case 65: | 1252 case 67: |
1223 YY_RULE_SETUP | 1253 YY_RULE_SETUP |
1224 #line 151 "sksl.flex" | 1254 #line 157 "sksl.flex" |
1225 { return SkSL::Token::SLASHEQ; } | 1255 { return SkSL::Token::SLASHEQ; } |
1226 YY_BREAK | 1256 YY_BREAK |
1227 case 66: | 1257 case 68: |
1228 YY_RULE_SETUP | 1258 YY_RULE_SETUP |
1229 #line 153 "sksl.flex" | 1259 #line 159 "sksl.flex" |
1230 { return SkSL::Token::PERCENTEQ; } | 1260 { return SkSL::Token::PERCENTEQ; } |
1231 YY_BREAK | 1261 YY_BREAK |
1232 case 67: | 1262 case 69: |
1233 YY_RULE_SETUP | 1263 YY_RULE_SETUP |
1234 #line 155 "sksl.flex" | 1264 #line 161 "sksl.flex" |
1235 { return SkSL::Token::SHLEQ; } | 1265 { return SkSL::Token::SHLEQ; } |
1236 YY_BREAK | 1266 YY_BREAK |
1237 case 68: | 1267 case 70: |
1238 YY_RULE_SETUP | 1268 YY_RULE_SETUP |
1239 #line 157 "sksl.flex" | 1269 #line 163 "sksl.flex" |
1240 { return SkSL::Token::SHREQ; } | 1270 { return SkSL::Token::SHREQ; } |
1241 YY_BREAK | 1271 YY_BREAK |
1242 case 69: | 1272 case 71: |
1243 YY_RULE_SETUP | 1273 YY_RULE_SETUP |
1244 #line 159 "sksl.flex" | 1274 #line 165 "sksl.flex" |
1245 { return SkSL::Token::BITWISEOREQ; } | 1275 { return SkSL::Token::BITWISEOREQ; } |
1246 YY_BREAK | 1276 YY_BREAK |
1247 case 70: | 1277 case 72: |
1248 YY_RULE_SETUP | 1278 YY_RULE_SETUP |
1249 #line 161 "sksl.flex" | 1279 #line 167 "sksl.flex" |
1250 { return SkSL::Token::BITWISEXOREQ; } | 1280 { return SkSL::Token::BITWISEXOREQ; } |
1251 YY_BREAK | 1281 YY_BREAK |
1252 case 71: | 1282 case 73: |
1253 YY_RULE_SETUP | 1283 YY_RULE_SETUP |
1254 #line 163 "sksl.flex" | 1284 #line 169 "sksl.flex" |
1255 { return SkSL::Token::BITWISEANDEQ; } | 1285 { return SkSL::Token::BITWISEANDEQ; } |
1256 YY_BREAK | 1286 YY_BREAK |
1257 case 72: | 1287 case 74: |
1258 YY_RULE_SETUP | 1288 YY_RULE_SETUP |
1259 #line 165 "sksl.flex" | 1289 #line 171 "sksl.flex" |
1260 { return SkSL::Token::LOGICALOREQ; } | 1290 { return SkSL::Token::LOGICALOREQ; } |
1261 YY_BREAK | 1291 YY_BREAK |
1262 case 73: | 1292 case 75: |
1263 YY_RULE_SETUP | 1293 YY_RULE_SETUP |
1264 #line 167 "sksl.flex" | 1294 #line 173 "sksl.flex" |
1265 { return SkSL::Token::LOGICALXOREQ; } | 1295 { return SkSL::Token::LOGICALXOREQ; } |
1266 YY_BREAK | 1296 YY_BREAK |
1267 case 74: | 1297 case 76: |
1268 YY_RULE_SETUP | 1298 YY_RULE_SETUP |
1269 #line 169 "sksl.flex" | 1299 #line 175 "sksl.flex" |
1270 { return SkSL::Token::LOGICALANDEQ; } | 1300 { return SkSL::Token::LOGICALANDEQ; } |
1271 YY_BREAK | 1301 YY_BREAK |
1272 case 75: | 1302 case 77: |
1273 YY_RULE_SETUP | 1303 YY_RULE_SETUP |
1274 #line 171 "sksl.flex" | 1304 #line 177 "sksl.flex" |
1275 { return SkSL::Token::SEMICOLON; } | 1305 { return SkSL::Token::SEMICOLON; } |
1276 YY_BREAK | 1306 YY_BREAK |
1277 case 76: | 1307 case 78: |
1278 YY_RULE_SETUP | 1308 YY_RULE_SETUP |
1279 #line 173 "sksl.flex" | 1309 #line 179 "sksl.flex" |
1280 /* line comment */ | 1310 /* line comment */ |
1281 YY_BREAK | 1311 YY_BREAK |
1282 case 77: | 1312 case 79: |
1283 /* rule 77 can match eol */ | 1313 /* rule 79 can match eol */ |
1284 YY_RULE_SETUP | 1314 YY_RULE_SETUP |
1285 #line 175 "sksl.flex" | 1315 #line 181 "sksl.flex" |
1286 /* block comment */ | 1316 /* block comment */ |
1287 YY_BREAK | 1317 YY_BREAK |
1288 case 78: | 1318 case 80: |
1289 /* rule 78 can match eol */ | 1319 /* rule 80 can match eol */ |
1290 YY_RULE_SETUP | 1320 YY_RULE_SETUP |
1291 #line 177 "sksl.flex" | 1321 #line 183 "sksl.flex" |
1292 /* whitespace */ | 1322 /* whitespace */ |
1293 YY_BREAK | 1323 YY_BREAK |
1294 case 79: | 1324 case 81: |
1295 YY_RULE_SETUP | 1325 YY_RULE_SETUP |
1296 #line 179 "sksl.flex" | 1326 #line 185 "sksl.flex" |
1297 { return SkSL::Token::INVALID_TOKEN; } | 1327 { return SkSL::Token::INVALID_TOKEN; } |
1298 YY_BREAK | 1328 YY_BREAK |
1299 case 80: | 1329 case 82: |
1300 YY_RULE_SETUP | 1330 YY_RULE_SETUP |
1301 #line 181 "sksl.flex" | 1331 #line 187 "sksl.flex" |
1302 ECHO; | 1332 ECHO; |
1303 YY_BREAK | 1333 YY_BREAK |
1304 #line 1299 "lex.sksl.c" | 1334 #line 1329 "lex.sksl.c" |
1305 case YY_STATE_EOF(INITIAL): | 1335 case YY_STATE_EOF(INITIAL): |
1306 yyterminate(); | 1336 yyterminate(); |
1307 | 1337 |
1308 case YY_END_OF_BUFFER: | 1338 case YY_END_OF_BUFFER: |
1309 { | 1339 { |
1310 /* Amount of text matched not including the EOB char. */ | 1340 /* Amount of text matched not including the EOB char. */ |
1311 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; |
1312 | 1342 |
1313 /* Undo the effects of YY_DO_BEFORE_ACTION. */ | 1343 /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
1314 *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... |
1489 | 1519 |
1490 else | 1520 else |
1491 { | 1521 { |
1492 yy_size_t num_to_read = | 1522 yy_size_t num_to_read = |
1493 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move -
1; | 1523 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move -
1; |
1494 | 1524 |
1495 while ( num_to_read <= 0 ) | 1525 while ( num_to_read <= 0 ) |
1496 { /* Not enough room in the buffer - grow it. */ | 1526 { /* Not enough room in the buffer - grow it. */ |
1497 | 1527 |
1498 /* just a shorter name for the current buffer */ | 1528 /* just a shorter name for the current buffer */ |
1499 » » » YY_BUFFER_STATE b = YY_CURRENT_BUFFER; | 1529 » » » YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; |
1500 | 1530 |
1501 int yy_c_buf_p_offset = | 1531 int yy_c_buf_p_offset = |
1502 (int) (yyg->yy_c_buf_p - b->yy_ch_buf); | 1532 (int) (yyg->yy_c_buf_p - b->yy_ch_buf); |
1503 | 1533 |
1504 if ( b->yy_is_our_buffer ) | 1534 if ( b->yy_is_our_buffer ) |
1505 { | 1535 { |
1506 yy_size_t new_size = b->yy_buf_size * 2; | 1536 yy_size_t new_size = b->yy_buf_size * 2; |
1507 | 1537 |
1508 if ( new_size <= 0 ) | 1538 if ( new_size <= 0 ) |
1509 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... |
1589 { | 1619 { |
1590 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
); |
1591 if ( yy_accept[yy_current_state] ) | 1621 if ( yy_accept[yy_current_state] ) |
1592 { | 1622 { |
1593 yyg->yy_last_accepting_state = yy_current_state; | 1623 yyg->yy_last_accepting_state = yy_current_state; |
1594 yyg->yy_last_accepting_cpos = yy_cp; | 1624 yyg->yy_last_accepting_cpos = yy_cp; |
1595 } | 1625 } |
1596 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 ) |
1597 { | 1627 { |
1598 yy_current_state = (int) yy_def[yy_current_state]; | 1628 yy_current_state = (int) yy_def[yy_current_state]; |
1599 » » » if ( yy_current_state >= 185 ) | 1629 » » » if ( yy_current_state >= 201 ) |
1600 yy_c = yy_meta[(unsigned int) yy_c]; | 1630 yy_c = yy_meta[(unsigned int) yy_c]; |
1601 } | 1631 } |
1602 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]; |
1603 } | 1633 } |
1604 | 1634 |
1605 return yy_current_state; | 1635 return yy_current_state; |
1606 } | 1636 } |
1607 | 1637 |
1608 /* 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 |
1609 * | 1639 * |
1610 * synopsis | 1640 * synopsis |
1611 * next_state = yy_try_NUL_trans( current_state ); | 1641 * next_state = yy_try_NUL_trans( current_state ); |
1612 */ | 1642 */ |
1613 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) |
1614 { | 1644 { |
1615 register int yy_is_jam; | 1645 register int yy_is_jam; |
1616 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. */ |
1617 register char *yy_cp = yyg->yy_c_buf_p; | 1647 register char *yy_cp = yyg->yy_c_buf_p; |
1618 | 1648 |
1619 register YY_CHAR yy_c = 1; | 1649 register YY_CHAR yy_c = 1; |
1620 if ( yy_accept[yy_current_state] ) | 1650 if ( yy_accept[yy_current_state] ) |
1621 { | 1651 { |
1622 yyg->yy_last_accepting_state = yy_current_state; | 1652 yyg->yy_last_accepting_state = yy_current_state; |
1623 yyg->yy_last_accepting_cpos = yy_cp; | 1653 yyg->yy_last_accepting_cpos = yy_cp; |
1624 } | 1654 } |
1625 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 ) |
1626 { | 1656 { |
1627 yy_current_state = (int) yy_def[yy_current_state]; | 1657 yy_current_state = (int) yy_def[yy_current_state]; |
1628 » » if ( yy_current_state >= 185 ) | 1658 » » if ( yy_current_state >= 201 ) |
1629 yy_c = yy_meta[(unsigned int) yy_c]; | 1659 yy_c = yy_meta[(unsigned int) yy_c]; |
1630 } | 1660 } |
1631 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]; |
1632 » yy_is_jam = (yy_current_state == 184); | 1662 » yy_is_jam = (yy_current_state == 200); |
1633 | 1663 |
| 1664 (void)yyg; |
1634 return yy_is_jam ? 0 : yy_current_state; | 1665 return yy_is_jam ? 0 : yy_current_state; |
1635 } | 1666 } |
1636 | 1667 |
1637 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) |
1638 { | 1669 { |
1639 register char *yy_cp; | 1670 register char *yy_cp; |
1640 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 1671 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
1641 | 1672 |
1642 yy_cp = yyg->yy_c_buf_p; | 1673 yy_cp = yyg->yy_c_buf_p; |
1643 | 1674 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 */ | 1749 */ |
1719 | 1750 |
1720 /* Reset buffer status. */ | 1751 /* Reset buffer status. */ |
1721 skslrestart(yyin ,yyscanner); | 1752 skslrestart(yyin ,yyscanner); |
1722 | 1753 |
1723 /*FALLTHROUGH*/ | 1754 /*FALLTHROUGH*/ |
1724 | 1755 |
1725 case EOB_ACT_END_OF_FILE: | 1756 case EOB_ACT_END_OF_FILE: |
1726 { | 1757 { |
1727 if ( skslwrap(yyscanner ) ) | 1758 if ( skslwrap(yyscanner ) ) |
1728 » » » » » » return 0; | 1759 » » » » » » return EOF; |
1729 | 1760 |
1730 if ( ! yyg->yy_did_buffer_switch_on_eof
) | 1761 if ( ! yyg->yy_did_buffer_switch_on_eof
) |
1731 YY_NEW_FILE; | 1762 YY_NEW_FILE; |
1732 #ifdef __cplusplus | 1763 #ifdef __cplusplus |
1733 return yyinput(yyscanner); | 1764 return yyinput(yyscanner); |
1734 #else | 1765 #else |
1735 return input(yyscanner); | 1766 return input(yyscanner); |
1736 #endif | 1767 #endif |
1737 } | 1768 } |
1738 | 1769 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 * sksl_scan_bytes() instead. | 2105 * sksl_scan_bytes() instead. |
2075 */ | 2106 */ |
2076 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) |
2077 { | 2108 { |
2078 | 2109 |
2079 return sksl_scan_bytes(yystr,strlen(yystr) ,yyscanner); | 2110 return sksl_scan_bytes(yystr,strlen(yystr) ,yyscanner); |
2080 } | 2111 } |
2081 | 2112 |
2082 /** 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 |
2083 * scan from a @e copy of @a bytes. | 2114 * scan from a @e copy of @a bytes. |
2084 * @param bytes the byte buffer to scan | 2115 * @param yybytes the byte buffer to scan |
2085 * @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. |
2086 * @param yyscanner The scanner object. | 2117 * @param yyscanner The scanner object. |
2087 * @return the newly allocated buffer state object. | 2118 * @return the newly allocated buffer state object. |
2088 */ | 2119 */ |
2089 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) |
2090 { | 2121 { |
2091 YY_BUFFER_STATE b; | 2122 YY_BUFFER_STATE b; |
2092 char *buf; | 2123 char *buf; |
2093 » yy_size_t n, i; | 2124 » yy_size_t n; |
| 2125 » int i; |
2094 | 2126 |
2095 /* Get memory for full buffer, including space for trailing EOB's. */ | 2127 /* Get memory for full buffer, including space for trailing EOB's. */ |
2096 n = _yybytes_len + 2; | 2128 n = _yybytes_len + 2; |
2097 buf = (char *) skslalloc(n ,yyscanner ); | 2129 buf = (char *) skslalloc(n ,yyscanner ); |
2098 if ( ! buf ) | 2130 if ( ! buf ) |
2099 YY_FATAL_ERROR( "out of dynamic memory in sksl_scan_bytes()" ); | 2131 YY_FATAL_ERROR( "out of dynamic memory in sksl_scan_bytes()" ); |
2100 | 2132 |
2101 for ( i = 0; i < _yybytes_len; ++i ) | 2133 for ( i = 0; i < _yybytes_len; ++i ) |
2102 buf[i] = yybytes[i]; | 2134 buf[i] = yybytes[i]; |
2103 | 2135 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 /** Set the current line number. | 2261 /** Set the current line number. |
2230 * @param line_number | 2262 * @param line_number |
2231 * @param yyscanner The scanner object. | 2263 * @param yyscanner The scanner object. |
2232 */ | 2264 */ |
2233 void skslset_lineno (int line_number , yyscan_t yyscanner) | 2265 void skslset_lineno (int line_number , yyscan_t yyscanner) |
2234 { | 2266 { |
2235 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 2267 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2236 | 2268 |
2237 /* lineno is only valid if an input buffer exists. */ | 2269 /* lineno is only valid if an input buffer exists. */ |
2238 if (! YY_CURRENT_BUFFER ) | 2270 if (! YY_CURRENT_BUFFER ) |
2239 yy_fatal_error( "skslset_lineno called with no buffer" , yyscanner); | 2271 YY_FATAL_ERROR( "skslset_lineno called with no buffer" ); |
2240 | 2272 |
2241 yylineno = line_number; | 2273 yylineno = line_number; |
2242 } | 2274 } |
2243 | 2275 |
2244 /** Set the current column. | 2276 /** Set the current column. |
2245 * @param line_number | 2277 * @param line_number |
2246 * @param yyscanner The scanner object. | 2278 * @param yyscanner The scanner object. |
2247 */ | 2279 */ |
2248 void skslset_column (int column_no , yyscan_t yyscanner) | 2280 void skslset_column (int column_no , yyscan_t yyscanner) |
2249 { | 2281 { |
2250 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; | 2282 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
2251 | 2283 |
2252 /* column is only valid if an input buffer exists. */ | 2284 /* column is only valid if an input buffer exists. */ |
2253 if (! YY_CURRENT_BUFFER ) | 2285 if (! YY_CURRENT_BUFFER ) |
2254 yy_fatal_error( "skslset_column called with no buffer" , yyscanner); | 2286 YY_FATAL_ERROR( "skslset_column called with no buffer" ); |
2255 | 2287 |
2256 yycolumn = column_no; | 2288 yycolumn = column_no; |
2257 } | 2289 } |
2258 | 2290 |
2259 /** Set the input stream. This does not discard the current | 2291 /** Set the input stream. This does not discard the current |
2260 * input buffer. | 2292 * input buffer. |
2261 * @param in_str A readable stream. | 2293 * @param in_str A readable stream. |
2262 * @param yyscanner The scanner object. | 2294 * @param yyscanner The scanner object. |
2263 * @see sksl_switch_to_buffer | 2295 * @see sksl_switch_to_buffer |
2264 */ | 2296 */ |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 return (void *) realloc( (char *) ptr, size ); | 2488 return (void *) realloc( (char *) ptr, size ); |
2457 } | 2489 } |
2458 | 2490 |
2459 void skslfree (void * ptr , yyscan_t yyscanner) | 2491 void skslfree (void * ptr , yyscan_t yyscanner) |
2460 { | 2492 { |
2461 free( (char *) ptr ); /* see skslrealloc() for (char *) cast */ | 2493 free( (char *) ptr ); /* see skslrealloc() for (char *) cast */ |
2462 } | 2494 } |
2463 | 2495 |
2464 #define YYTABLES_NAME "yytables" | 2496 #define YYTABLES_NAME "yytables" |
2465 | 2497 |
2466 #line 181 "sksl.flex" | 2498 #line 187 "sksl.flex" |
2467 | 2499 |
2468 | 2500 |
2469 | 2501 |
2470 int skslwrap(yyscan_t scanner) { | 2502 int skslwrap(yyscan_t scanner) { |
2471 return 1; // terminate | 2503 return 1; // terminate |
2472 } | 2504 } |
2473 | 2505 |
OLD | NEW |