Delete dead-code for handling comments and invalid octal integers. These are…

Delete dead-code for handling comments and invalid octal integers. These are already handled by the preprocessor. TEST=WebGL conformance tests. Review URL: https://codereview.appspot.com/8632053 git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@2228 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b867ebb8
......@@ -60,7 +60,7 @@ static int reserved_word(yyscan_t yyscanner);
%option yylineno reentrant bison-bridge
%option stack
%option extra-type="TParseContext*"
%x COMMENT FIELDS
%x FIELDS
D [0-9]
L [a-zA-Z_]
......@@ -74,15 +74,6 @@ O [0-7]
TParseContext* context = yyextra;
%}
/* Single-line comments */
"//"[^\n]* ;
/* Multi-line comments */
"/*" { yy_push_state(COMMENT, yyscanner); }
<COMMENT>. |
<COMMENT>\n ;
<COMMENT>"*/" { yy_pop_state(yyscanner); }
"invariant" { return INVARIANT; }
"highp" { return HIGH_PRECISION; }
"mediump" { return MEDIUM_PRECISION; }
......@@ -203,7 +194,6 @@ O [0-7]
0[xX]{H}+ { yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
0{O}+ { yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
0{D}+ { context->error(yylineno, "Invalid Octal number.", yytext); context->recover(); return 0;}
{D}+ { yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
{D}+{E} { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return FLOATCONSTANT; }
......
......@@ -383,8 +383,8 @@ static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 155
#define YY_END_OF_BUFFER 156
#define YY_NUM_RULES 149
#define YY_END_OF_BUFFER 150
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
......@@ -392,58 +392,57 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static yyconst flex_int16_t yy_accept[459] =
static yyconst flex_int16_t yy_accept[449] =
{ 0,
0, 0, 0, 0, 0, 0, 156, 154, 153, 153,
138, 144, 149, 133, 134, 142, 141, 130, 139, 137,
143, 102, 102, 131, 127, 145, 132, 146, 150, 98,
135, 136, 148, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 128, 147, 129, 140, 3, 4, 3,
152, 155, 151, 124, 110, 129, 118, 113, 108, 116,
106, 117, 107, 105, 2, 1, 109, 104, 100, 101,
0, 0, 102, 136, 128, 135, 125, 121, 123, 122,
126, 98, 114, 120, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 17, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 20, 22,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 115, 119, 5,
151, 0, 1, 104, 0, 0, 103, 99, 111, 112,
50, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 18,
98, 98, 98, 98, 98, 98, 98, 98, 26, 98,
98, 98, 98, 98, 98, 98, 98, 23, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 0, 105, 0, 104, 98, 28, 98, 98, 95,
98, 98, 98, 98, 98, 98, 98, 21, 53, 98,
98, 98, 69, 98, 98, 58, 73, 98, 98, 98,
98, 98, 98, 98, 98, 70, 9, 33, 34, 35,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 56, 29, 98, 98,
98, 98, 98, 98, 36, 37, 38, 27, 98, 98,
98, 15, 42, 43, 44, 51, 12, 98, 98, 98,
98, 82, 83, 84, 98, 30, 74, 25, 85, 86,
87, 7, 79, 80, 81, 98, 24, 77, 98, 98,
39, 40, 41, 98, 98, 98, 98, 98, 98, 98,
98, 98, 71, 98, 98, 98, 98, 98, 98, 98,
98, 52, 98, 97, 98, 98, 19, 98, 98, 98,
98, 72, 66, 61, 98, 98, 98, 98, 98, 78,
57, 98, 64, 32, 98, 94, 65, 49, 76, 59,
98, 98, 98, 98, 98, 98, 98, 98, 60, 31,
98, 98, 98, 8, 98, 98, 98, 98, 98, 54,
13, 98, 14, 98, 98, 16, 67, 98, 98, 98,
62, 98, 98, 98, 98, 98, 98, 55, 75, 63,
11, 68, 6, 96, 10, 88, 45, 89, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
46, 98, 98, 98, 98, 98, 98, 98, 48, 98,
92, 98, 98, 98, 98, 98, 90, 98, 91, 98,
98, 98, 98, 98, 98, 47, 93, 0
0, 0, 0, 0, 150, 148, 147, 147, 132, 138,
143, 127, 128, 136, 135, 124, 133, 131, 137, 96,
96, 125, 121, 139, 126, 140, 144, 93, 129, 130,
142, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 122, 141, 123, 134, 146, 149, 145, 118, 104,
123, 112, 107, 102, 110, 100, 111, 101, 99, 103,
98, 95, 96, 0, 0, 130, 122, 129, 119, 115,
117, 116, 120, 93, 108, 114, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 12, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
15, 17, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 109,
113, 145, 0, 98, 0, 0, 97, 94, 105, 106,
45, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 13,
93, 93, 93, 93, 93, 93, 93, 93, 21, 93,
93, 93, 93, 93, 93, 93, 93, 18, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 0, 99, 0, 98, 93, 23, 93, 93, 90,
93, 93, 93, 93, 93, 93, 93, 16, 48, 93,
93, 93, 64, 93, 93, 53, 68, 93, 93, 93,
93, 93, 93, 93, 93, 65, 4, 28, 29, 30,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 51, 24, 93, 93,
93, 93, 93, 93, 31, 32, 33, 22, 93, 93,
93, 10, 37, 38, 39, 46, 7, 93, 93, 93,
93, 77, 78, 79, 93, 25, 69, 20, 80, 81,
82, 2, 74, 75, 76, 93, 19, 72, 93, 93,
34, 35, 36, 93, 93, 93, 93, 93, 93, 93,
93, 93, 66, 93, 93, 93, 93, 93, 93, 93,
93, 47, 93, 92, 93, 93, 14, 93, 93, 93,
93, 67, 61, 56, 93, 93, 93, 93, 93, 73,
52, 93, 59, 27, 93, 89, 60, 44, 71, 54,
93, 93, 93, 93, 93, 93, 93, 93, 55, 26,
93, 93, 93, 3, 93, 93, 93, 93, 93, 49,
8, 93, 9, 93, 93, 11, 62, 93, 93, 93,
57, 93, 93, 93, 93, 93, 93, 50, 70, 58,
6, 63, 1, 91, 5, 83, 40, 84, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
41, 93, 93, 93, 93, 93, 93, 93, 43, 93,
87, 93, 93, 93, 93, 93, 85, 93, 86, 93,
93, 93, 93, 93, 93, 42, 88, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
......@@ -480,212 +479,208 @@ static yyconst flex_int32_t yy_ec[256] =
static yyconst flex_int32_t yy_meta[68] =
{ 0,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
3, 1, 1, 1, 1, 1, 1, 3, 3, 3,
3, 4, 4, 4, 4, 4, 1, 1, 1, 3,
3, 3, 3, 3, 3, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 1, 1, 1, 1
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 2, 2, 2, 2, 2, 2,
2, 1, 1, 1, 1, 1, 1, 2, 2, 2,
2, 3, 3, 3, 3, 3, 1, 1, 1, 2,
2, 2, 2, 2, 2, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 1, 1, 1, 1
} ;
static yyconst flex_int16_t yy_base[464] =
static yyconst flex_int16_t yy_base[452] =
{ 0,
0, 0, 65, 66, 75, 0, 680, 681, 681, 681,
654, 45, 137, 681, 681, 653, 134, 681, 133, 131,
146, 159, 168, 651, 681, 186, 651, 47, 681, 0,
681, 681, 128, 100, 110, 152, 156, 146, 166, 622,
173, 109, 621, 126, 177, 615, 178, 628, 187, 184,
141, 197, 624, 681, 157, 681, 681, 681, 681, 656,
681, 681, 0, 681, 681, 681, 681, 681, 681, 681,
681, 681, 681, 236, 681, 0, 681, 243, 273, 282,
304, 0, 314, 681, 681, 681, 644, 681, 681, 681,
643, 0, 681, 681, 616, 609, 612, 620, 619, 606,
621, 608, 614, 602, 599, 612, 599, 596, 596, 602,
590, 189, 595, 605, 591, 597, 600, 601, 0, 216,
600, 188, 586, 599, 590, 592, 582, 596, 593, 595,
578, 583, 580, 569, 183, 577, 582, 578, 580, 569,
572, 220, 577, 569, 581, 176, 574, 681, 681, 681,
0, 331, 0, 344, 361, 290, 374, 0, 681, 681,
0, 566, 570, 579, 576, 560, 560, 215, 575, 572,
572, 570, 567, 559, 565, 552, 563, 549, 565, 0,
562, 550, 557, 554, 558, 551, 540, 539, 552, 555,
552, 547, 538, 260, 543, 546, 537, 534, 538, 544,
535, 526, 529, 527, 537, 523, 521, 534, 520, 522,
519, 530, 529, 283, 524, 519, 508, 264, 526, 528,
517, 381, 388, 395, 402, 518, 0, 516, 320, 0,
508, 506, 514, 503, 520, 509, 336, 0, 0, 503,
513, 513, 0, 498, 349, 0, 0, 500, 366, 501,
495, 494, 495, 494, 407, 0, 0, 0, 0, 0,
490, 491, 496, 487, 500, 495, 494, 486, 490, 482,
485, 489, 494, 480, 492, 483, 0, 0, 489, 478,
478, 483, 482, 479, 0, 0, 0, 0, 469, 481,
483, 0, 0, 0, 0, 0, 0, 471, 472, 466,
476, 0, 0, 0, 467, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 474, 0, 0, 472, 468,
0, 0, 0, 464, 460, 465, 455, 468, 454, 467,
456, 463, 0, 461, 463, 447, 449, 455, 461, 456,
444, 0, 446, 0, 445, 448, 0, 437, 436, 436,
449, 0, 451, 0, 450, 449, 434, 447, 434, 0,
0, 437, 0, 0, 429, 0, 0, 0, 0, 0,
426, 437, 430, 436, 433, 428, 420, 432, 0, 0,
425, 432, 421, 0, 430, 427, 417, 411, 425, 0,
0, 425, 0, 423, 422, 0, 0, 421, 407, 419,
0, 410, 431, 430, 429, 400, 396, 0, 0, 0,
0, 0, 0, 0, 0, 421, 250, 421, 411, 384,
392, 394, 390, 392, 391, 390, 393, 390, 391, 388,
0, 332, 343, 317, 329, 313, 317, 304, 321, 291,
0, 302, 280, 271, 255, 262, 0, 256, 0, 232,
206, 212, 148, 159, 113, 0, 0, 681, 442, 444,
446, 450, 161
0, 0, 67, 0, 656, 657, 657, 657, 630, 110,
131, 657, 657, 629, 128, 657, 127, 125, 628, 144,
153, 626, 657, 171, 626, 122, 657, 0, 657, 657,
142, 93, 124, 149, 150, 140, 160, 597, 164, 162,
596, 111, 138, 590, 171, 603, 177, 183, 102, 178,
599, 657, 181, 657, 657, 657, 657, 0, 657, 657,
657, 657, 657, 657, 657, 657, 657, 657, 232, 657,
239, 269, 278, 300, 0, 657, 657, 657, 620, 657,
657, 657, 619, 0, 657, 657, 592, 585, 588, 596,
595, 582, 597, 584, 590, 578, 575, 588, 575, 572,
572, 578, 566, 175, 571, 581, 567, 573, 576, 577,
0, 212, 576, 180, 562, 575, 566, 568, 558, 572,
569, 571, 554, 559, 556, 545, 224, 553, 558, 554,
556, 545, 548, 185, 553, 545, 557, 137, 550, 657,
657, 0, 313, 320, 337, 286, 350, 0, 657, 657,
0, 542, 546, 555, 552, 536, 536, 186, 551, 548,
548, 546, 543, 535, 541, 528, 539, 525, 541, 0,
538, 526, 533, 530, 534, 527, 516, 515, 528, 531,
528, 523, 514, 255, 519, 522, 513, 510, 514, 520,
511, 502, 505, 503, 513, 499, 497, 510, 496, 498,
495, 506, 505, 191, 500, 495, 484, 325, 502, 504,
493, 357, 364, 371, 378, 494, 0, 492, 342, 0,
484, 482, 490, 479, 496, 485, 383, 0, 0, 479,
489, 489, 0, 474, 386, 0, 0, 476, 389, 477,
471, 470, 471, 470, 392, 0, 0, 0, 0, 0,
466, 467, 472, 463, 476, 471, 470, 462, 466, 458,
461, 465, 470, 456, 468, 459, 0, 0, 465, 454,
454, 459, 458, 455, 0, 0, 0, 0, 445, 457,
459, 0, 0, 0, 0, 0, 0, 447, 448, 442,
452, 0, 0, 0, 443, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 450, 0, 0, 448, 444,
0, 0, 0, 440, 436, 441, 431, 444, 430, 443,
432, 439, 0, 437, 439, 423, 425, 431, 437, 432,
420, 0, 422, 0, 421, 424, 0, 413, 412, 412,
425, 0, 427, 0, 426, 425, 410, 423, 410, 0,
0, 413, 0, 0, 405, 0, 0, 0, 0, 0,
402, 413, 406, 412, 409, 404, 396, 408, 0, 0,
401, 408, 397, 0, 406, 403, 393, 396, 401, 0,
0, 401, 0, 399, 398, 0, 0, 397, 383, 395,
0, 386, 407, 406, 405, 376, 372, 0, 0, 0,
0, 0, 0, 0, 0, 397, 233, 392, 383, 366,
375, 377, 373, 375, 374, 373, 376, 373, 323, 320,
0, 295, 305, 289, 302, 270, 274, 271, 279, 258,
0, 268, 232, 234, 220, 228, 0, 237, 0, 242,
218, 208, 167, 181, 126, 0, 0, 657, 426, 428,
180
} ;
static yyconst flex_int16_t yy_def[464] =
static yyconst flex_int16_t yy_def[452] =
{ 0,
458, 1, 459, 459, 458, 5, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 460,
458, 458, 458, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 458, 458, 458, 458, 458, 458, 458,
458, 458, 461, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 462, 458, 458, 458, 458,
458, 463, 458, 458, 458, 458, 458, 458, 458, 458,
458, 460, 458, 458, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 458, 458, 458,
461, 458, 462, 458, 458, 458, 458, 463, 458, 458,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 458, 458, 458, 458, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 0, 458, 458,
458, 458, 458
448, 1, 448, 3, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 449, 448, 448,
448, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 448, 448, 448, 448, 448, 448, 450, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 451, 448, 448, 448, 448, 448,
448, 448, 448, 449, 448, 448, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 448,
448, 450, 448, 448, 448, 448, 448, 451, 448, 448,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 448, 448, 448, 448, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 0, 448, 448,
448
} ;
static yyconst flex_int16_t yy_nxt[749] =
static yyconst flex_int16_t yy_nxt[725] =
{ 0,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 23, 23, 23, 23,
23, 24, 25, 26, 27, 28, 29, 30, 30, 30,
30, 30, 30, 30, 30, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 30, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
30, 30, 30, 54, 55, 56, 57, 59, 59, 65,
66, 90, 91, 60, 60, 8, 61, 62, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 63, 63, 63, 63, 63, 63, 63, 63,
63, 8, 8, 8, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63, 8, 8,
8, 8, 67, 70, 72, 74, 74, 74, 74, 74,
74, 74, 93, 119, 75, 95, 96, 73, 71, 76,
120, 68, 97, 158, 98, 123, 94, 121, 99, 124,
77, 78, 457, 79, 79, 79, 79, 79, 79, 80,
78, 148, 83, 83, 83, 83, 83, 83, 83, 81,
85, 100, 142, 456, 82, 107, 143, 108, 81, 103,
455, 101, 81, 104, 102, 110, 109, 86, 105, 87,
88, 81, 116, 111, 106, 112, 125, 128, 113, 82,
117, 149, 206, 219, 114, 220, 132, 138, 178, 126,
139, 118, 129, 133, 134, 130, 144, 207, 140, 192,
145, 179, 454, 135, 136, 141, 137, 193, 453, 146,
74, 74, 74, 74, 74, 74, 74, 154, 154, 154,
154, 154, 154, 154, 452, 186, 152, 214, 187, 188,
232, 233, 189, 155, 190, 215, 258, 259, 260, 152,
285, 286, 287, 422, 423, 78, 155, 79, 79, 79,
79, 79, 79, 80, 78, 451, 80, 80, 80, 80,
80, 80, 80, 81, 157, 157, 157, 157, 157, 157,
157, 450, 81, 156, 449, 156, 81, 448, 157, 157,
157, 157, 157, 157, 157, 81, 78, 280, 83, 83,
83, 83, 83, 83, 83, 281, 293, 294, 295, 447,
222, 446, 222, 445, 81, 223, 223, 223, 223, 223,
223, 223, 302, 303, 304, 444, 443, 81, 154, 154,
154, 154, 154, 154, 154, 309, 310, 311, 442, 441,
224, 440, 224, 439, 155, 225, 225, 225, 225, 225,
225, 225, 313, 314, 315, 438, 437, 155, 157, 157,
157, 157, 157, 157, 157, 223, 223, 223, 223, 223,
223, 223, 223, 223, 223, 223, 223, 223, 223, 225,
225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
225, 225, 225, 321, 322, 323, 403, 404, 405, 436,
435, 434, 433, 432, 431, 430, 429, 428, 427, 406,
426, 407, 58, 58, 58, 58, 92, 92, 151, 151,
153, 425, 153, 153, 424, 421, 420, 419, 418, 417,
416, 415, 414, 413, 412, 411, 410, 409, 408, 402,
401, 400, 399, 398, 397, 396, 395, 394, 393, 392,
391, 390, 389, 388, 387, 386, 385, 384, 383, 382,
381, 380, 379, 378, 377, 376, 375, 374, 373, 372,
371, 370, 369, 368, 367, 366, 365, 364, 363, 362,
361, 360, 359, 358, 357, 356, 355, 354, 353, 352,
351, 350, 349, 348, 347, 346, 345, 344, 343, 342,
341, 340, 339, 338, 337, 336, 335, 334, 333, 332,
331, 330, 329, 328, 327, 326, 325, 324, 320, 319,
318, 317, 316, 312, 308, 307, 306, 305, 301, 300,
299, 298, 297, 296, 292, 291, 290, 289, 288, 284,
283, 282, 279, 278, 277, 276, 275, 274, 273, 272,
271, 270, 269, 268, 267, 266, 265, 264, 263, 262,
261, 257, 256, 255, 254, 253, 252, 251, 250, 249,
248, 247, 246, 245, 244, 243, 242, 241, 240, 239,
238, 237, 236, 235, 234, 231, 230, 229, 228, 227,
226, 221, 218, 217, 216, 213, 212, 211, 210, 209,
208, 205, 204, 203, 202, 201, 200, 199, 198, 197,
196, 195, 194, 191, 185, 184, 183, 182, 181, 180,
177, 176, 175, 174, 173, 172, 171, 170, 169, 168,
167, 166, 165, 164, 163, 162, 161, 160, 159, 150,
147, 131, 127, 122, 115, 89, 84, 69, 64, 458,
7, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 21, 21, 21, 21,
21, 22, 23, 24, 25, 26, 27, 28, 28, 28,
28, 28, 28, 28, 28, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 28, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
28, 28, 28, 52, 53, 54, 55, 6, 56, 57,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 58, 58, 58, 58, 58, 58,
58, 58, 58, 6, 6, 6, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
6, 6, 6, 6, 60, 61, 62, 65, 67, 69,
69, 69, 69, 69, 69, 69, 82, 83, 87, 88,
115, 68, 66, 134, 116, 63, 71, 135, 72, 72,
72, 72, 72, 72, 73, 71, 85, 73, 73, 73,
73, 73, 73, 73, 74, 77, 89, 117, 90, 75,
86, 148, 91, 74, 209, 447, 210, 74, 92, 99,
118, 100, 78, 95, 79, 80, 74, 96, 93, 102,
101, 94, 97, 108, 75, 140, 111, 103, 98, 104,
120, 109, 105, 112, 168, 446, 124, 136, 106, 445,
113, 137, 110, 125, 126, 121, 130, 169, 122, 131,
138, 182, 204, 127, 128, 270, 129, 132, 444, 183,
205, 222, 223, 271, 133, 141, 69, 69, 69, 69,
69, 69, 69, 144, 144, 144, 144, 144, 144, 144,
443, 176, 143, 196, 177, 178, 412, 413, 179, 145,
180, 248, 249, 250, 442, 143, 441, 440, 197, 439,
438, 71, 145, 72, 72, 72, 72, 72, 72, 73,
71, 437, 73, 73, 73, 73, 73, 73, 73, 74,
147, 147, 147, 147, 147, 147, 147, 436, 74, 146,
435, 146, 74, 434, 147, 147, 147, 147, 147, 147,
147, 74, 212, 433, 212, 432, 431, 213, 213, 213,
213, 213, 213, 213, 144, 144, 144, 144, 144, 144,
144, 275, 276, 277, 430, 429, 214, 428, 214, 427,
145, 215, 215, 215, 215, 215, 215, 215, 283, 284,
285, 426, 425, 145, 147, 147, 147, 147, 147, 147,
147, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 215, 215, 215, 215, 215,
215, 215, 215, 215, 215, 215, 215, 215, 215, 292,
293, 294, 299, 300, 301, 303, 304, 305, 311, 312,
313, 393, 394, 395, 424, 423, 422, 421, 420, 419,
418, 417, 416, 415, 396, 414, 397, 84, 84, 142,
142, 411, 410, 409, 408, 407, 406, 405, 404, 403,
402, 401, 400, 399, 398, 392, 391, 390, 389, 388,
387, 386, 385, 384, 383, 382, 381, 380, 379, 378,
377, 376, 375, 374, 373, 372, 371, 370, 369, 368,
367, 366, 365, 364, 363, 362, 361, 360, 359, 358,
357, 356, 355, 354, 353, 352, 351, 350, 349, 348,
347, 346, 345, 344, 343, 342, 341, 340, 339, 338,
337, 336, 335, 334, 333, 332, 331, 330, 329, 328,
327, 326, 325, 324, 323, 322, 321, 320, 319, 318,
317, 316, 315, 314, 310, 309, 308, 307, 306, 302,
298, 297, 296, 295, 291, 290, 289, 288, 287, 286,
282, 281, 280, 279, 278, 274, 273, 272, 269, 268,
267, 266, 265, 264, 263, 262, 261, 260, 259, 258,
257, 256, 255, 254, 253, 252, 251, 247, 246, 245,
244, 243, 242, 241, 240, 239, 238, 237, 236, 235,
234, 233, 232, 231, 230, 229, 228, 227, 226, 225,
224, 221, 220, 219, 218, 217, 216, 211, 208, 207,
206, 203, 202, 201, 200, 199, 198, 195, 194, 193,
192, 191, 190, 189, 188, 187, 186, 185, 184, 181,
175, 174, 173, 172, 171, 170, 167, 166, 165, 164,
163, 162, 161, 160, 159, 158, 157, 156, 155, 154,
153, 152, 151, 150, 149, 139, 123, 119, 114, 107,
81, 76, 70, 64, 59, 448, 5, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448
} ;
static yyconst flex_int16_t yy_chk[749] =
static yyconst flex_int16_t yy_chk[725] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
......@@ -693,95 +688,93 @@ static yyconst flex_int16_t yy_chk[749] =
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 3, 4, 12,
12, 28, 28, 3, 4, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 13, 17, 19, 20, 20, 20, 20, 20,
20, 20, 33, 42, 21, 34, 34, 19, 17, 21,
42, 13, 35, 463, 35, 44, 33, 42, 35, 44,
21, 22, 455, 22, 22, 22, 22, 22, 22, 22,
23, 55, 23, 23, 23, 23, 23, 23, 23, 22,
26, 36, 51, 454, 22, 38, 51, 38, 23, 37,
453, 36, 22, 37, 36, 39, 38, 26, 37, 26,
26, 23, 41, 39, 37, 39, 45, 47, 39, 22,
41, 55, 135, 146, 39, 146, 49, 50, 112, 45,
50, 41, 47, 49, 49, 47, 52, 135, 50, 122,
52, 112, 452, 49, 49, 50, 49, 122, 451, 52,
74, 74, 74, 74, 74, 74, 74, 78, 78, 78,
78, 78, 78, 78, 450, 120, 74, 142, 120, 120,
168, 168, 120, 78, 120, 142, 194, 194, 194, 74,
218, 218, 218, 417, 417, 79, 78, 79, 79, 79,
79, 79, 79, 79, 80, 448, 80, 80, 80, 80,
80, 80, 80, 79, 156, 156, 156, 156, 156, 156,
156, 446, 80, 81, 445, 81, 79, 444, 81, 81,
81, 81, 81, 81, 81, 80, 83, 214, 83, 83,
83, 83, 83, 83, 83, 214, 229, 229, 229, 443,
152, 442, 152, 440, 83, 152, 152, 152, 152, 152,
152, 152, 237, 237, 237, 439, 438, 83, 154, 154,
154, 154, 154, 154, 154, 245, 245, 245, 437, 436,
155, 435, 155, 434, 154, 155, 155, 155, 155, 155,
155, 155, 249, 249, 249, 433, 432, 154, 157, 157,
157, 157, 157, 157, 157, 222, 222, 222, 222, 222,
222, 222, 223, 223, 223, 223, 223, 223, 223, 224,
224, 224, 224, 224, 224, 224, 225, 225, 225, 225,
225, 225, 225, 255, 255, 255, 388, 388, 388, 430,
429, 428, 427, 426, 425, 424, 423, 422, 421, 388,
420, 388, 459, 459, 459, 459, 460, 460, 461, 461,
462, 419, 462, 462, 418, 416, 407, 406, 405, 404,
403, 402, 400, 399, 398, 395, 394, 392, 389, 387,
386, 385, 383, 382, 381, 378, 377, 376, 375, 374,
373, 372, 371, 365, 362, 359, 358, 357, 356, 355,
353, 351, 350, 349, 348, 346, 345, 343, 341, 340,
339, 338, 337, 336, 335, 334, 332, 331, 330, 329,
328, 327, 326, 325, 324, 320, 319, 316, 305, 301,
300, 299, 298, 291, 290, 289, 284, 283, 282, 281,
280, 279, 276, 275, 274, 273, 272, 271, 270, 269,
268, 267, 266, 265, 264, 263, 262, 261, 254, 253,
252, 251, 250, 248, 244, 242, 241, 240, 236, 235,
234, 233, 232, 231, 228, 226, 221, 220, 219, 217,
216, 215, 213, 212, 211, 210, 209, 208, 207, 206,
205, 204, 203, 202, 201, 200, 199, 198, 197, 196,
195, 193, 192, 191, 190, 189, 188, 187, 186, 185,
184, 183, 182, 181, 179, 178, 177, 176, 175, 174,
173, 172, 171, 170, 169, 167, 166, 165, 164, 163,
162, 147, 145, 144, 143, 141, 140, 139, 138, 137,
136, 134, 133, 132, 131, 130, 129, 128, 127, 126,
125, 124, 123, 121, 118, 117, 116, 115, 114, 113,
111, 110, 109, 108, 107, 106, 105, 104, 103, 102,
101, 100, 99, 98, 97, 96, 95, 91, 87, 60,
53, 48, 46, 43, 40, 27, 24, 16, 11, 7,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 458
1, 1, 1, 1, 1, 1, 1, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 10, 10, 11, 15, 17, 18,
18, 18, 18, 18, 18, 18, 26, 26, 32, 32,
42, 17, 15, 49, 42, 11, 20, 49, 20, 20,
20, 20, 20, 20, 20, 21, 31, 21, 21, 21,
21, 21, 21, 21, 20, 24, 33, 43, 33, 20,
31, 451, 33, 21, 138, 445, 138, 20, 34, 36,
43, 36, 24, 35, 24, 24, 21, 35, 34, 37,
36, 34, 35, 39, 20, 53, 40, 37, 35, 37,
45, 39, 37, 40, 104, 444, 47, 50, 37, 443,
40, 50, 39, 47, 47, 45, 48, 104, 45, 48,
50, 114, 134, 47, 47, 204, 47, 48, 442, 114,
134, 158, 158, 204, 48, 53, 69, 69, 69, 69,
69, 69, 69, 71, 71, 71, 71, 71, 71, 71,
441, 112, 69, 127, 112, 112, 407, 407, 112, 71,
112, 184, 184, 184, 440, 69, 438, 436, 127, 435,
434, 72, 71, 72, 72, 72, 72, 72, 72, 72,
73, 433, 73, 73, 73, 73, 73, 73, 73, 72,
146, 146, 146, 146, 146, 146, 146, 432, 73, 74,
430, 74, 72, 429, 74, 74, 74, 74, 74, 74,
74, 73, 143, 428, 143, 427, 426, 143, 143, 143,
143, 143, 143, 143, 144, 144, 144, 144, 144, 144,
144, 208, 208, 208, 425, 424, 145, 423, 145, 422,
144, 145, 145, 145, 145, 145, 145, 145, 219, 219,
219, 420, 419, 144, 147, 147, 147, 147, 147, 147,
147, 212, 212, 212, 212, 212, 212, 212, 213, 213,
213, 213, 213, 213, 213, 214, 214, 214, 214, 214,
214, 214, 215, 215, 215, 215, 215, 215, 215, 227,
227, 227, 235, 235, 235, 239, 239, 239, 245, 245,
245, 378, 378, 378, 418, 417, 416, 415, 414, 413,
412, 411, 410, 409, 378, 408, 378, 449, 449, 450,
450, 406, 397, 396, 395, 394, 393, 392, 390, 389,
388, 385, 384, 382, 379, 377, 376, 375, 373, 372,
371, 368, 367, 366, 365, 364, 363, 362, 361, 355,
352, 349, 348, 347, 346, 345, 343, 341, 340, 339,
338, 336, 335, 333, 331, 330, 329, 328, 327, 326,
325, 324, 322, 321, 320, 319, 318, 317, 316, 315,
314, 310, 309, 306, 295, 291, 290, 289, 288, 281,
280, 279, 274, 273, 272, 271, 270, 269, 266, 265,
264, 263, 262, 261, 260, 259, 258, 257, 256, 255,
254, 253, 252, 251, 244, 243, 242, 241, 240, 238,
234, 232, 231, 230, 226, 225, 224, 223, 222, 221,
218, 216, 211, 210, 209, 207, 206, 205, 203, 202,
201, 200, 199, 198, 197, 196, 195, 194, 193, 192,
191, 190, 189, 188, 187, 186, 185, 183, 182, 181,
180, 179, 178, 177, 176, 175, 174, 173, 172, 171,
169, 168, 167, 166, 165, 164, 163, 162, 161, 160,
159, 157, 156, 155, 154, 153, 152, 139, 137, 136,
135, 133, 132, 131, 130, 129, 128, 126, 125, 124,
123, 122, 121, 120, 119, 118, 117, 116, 115, 113,
110, 109, 108, 107, 106, 105, 103, 102, 101, 100,
99, 98, 97, 96, 95, 94, 93, 92, 91, 90,
89, 88, 87, 83, 79, 51, 46, 44, 41, 38,
25, 22, 19, 14, 9, 5, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448, 448, 448, 448, 448, 448, 448,
448, 448, 448, 448
} ;
/* Table of booleans, true if rule could match eol. */
static yyconst flex_int32_t yy_rule_can_match_eol[156] =
static yyconst flex_int32_t yy_rule_can_match_eol[150] =
{ 0,
0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, };
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, };
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
......@@ -825,8 +818,7 @@ static int check_type(yyscan_t yyscanner);
static int reserved_word(yyscan_t yyscanner);
#define INITIAL 0
#define COMMENT 1
#define FIELDS 2
#define FIELDS 1
#define YY_EXTRA_TYPE TParseContext*
......@@ -1053,8 +1045,6 @@ YY_DECL
TParseContext* context = yyextra;
/* Single-line comments */
yylval = yylval_param;
if ( !yyg->yy_init )
......@@ -1108,13 +1098,13 @@ yy_match:
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 459 )
if ( yy_current_state >= 449 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_current_state != 458 );
while ( yy_current_state != 448 );
yy_cp = yyg->yy_last_accepting_cpos;
yy_current_state = yyg->yy_last_accepting_state;
......@@ -1148,198 +1138,199 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
;
{ return INVARIANT; }
YY_BREAK
/* Multi-line comments */
case 2:
YY_RULE_SETUP
{ yy_push_state(COMMENT, yyscanner); }
{ return HIGH_PRECISION; }
YY_BREAK
case 3:
YY_RULE_SETUP
{ return MEDIUM_PRECISION; }
YY_BREAK
case 4:
/* rule 4 can match eol */
YY_RULE_SETUP
;
{ return LOW_PRECISION; }
YY_BREAK
case 5:
YY_RULE_SETUP
{ yy_pop_state(yyscanner); }
{ return PRECISION; }
YY_BREAK
case 6:
YY_RULE_SETUP
{ return INVARIANT; }
{ return ATTRIBUTE; }
YY_BREAK
case 7:
YY_RULE_SETUP
{ return HIGH_PRECISION; }
{ return CONST_QUAL; }
YY_BREAK
case 8:
YY_RULE_SETUP
{ return MEDIUM_PRECISION; }
{ return UNIFORM; }
YY_BREAK
case 9:
YY_RULE_SETUP
{ return LOW_PRECISION; }
{ return VARYING; }
YY_BREAK
case 10:
YY_RULE_SETUP
{ return PRECISION; }
{ return BREAK; }
YY_BREAK
case 11:
YY_RULE_SETUP
{ return ATTRIBUTE; }
{ return CONTINUE; }
YY_BREAK
case 12:
YY_RULE_SETUP
{ return CONST_QUAL; }
{ return DO; }
YY_BREAK
case 13:
YY_RULE_SETUP
{ return UNIFORM; }
{ return FOR; }
YY_BREAK
case 14:
YY_RULE_SETUP
{ return VARYING; }
{ return WHILE; }
YY_BREAK
case 15:
YY_RULE_SETUP
{ return BREAK; }
{ return IF; }
YY_BREAK
case 16:
YY_RULE_SETUP
{ return CONTINUE; }
{ return ELSE; }
YY_BREAK
case 17:
YY_RULE_SETUP
{ return DO; }
{ return IN_QUAL; }
YY_BREAK
case 18:
YY_RULE_SETUP
{ return FOR; }
{ return OUT_QUAL; }
YY_BREAK
case 19:
YY_RULE_SETUP
{ return WHILE; }
{ return INOUT_QUAL; }
YY_BREAK
case 20:
YY_RULE_SETUP
{ return IF; }
{ context->lexAfterType = true; return FLOAT_TYPE; }
YY_BREAK
case 21:
YY_RULE_SETUP
{ return ELSE; }
{ context->lexAfterType = true; return INT_TYPE; }
YY_BREAK
case 22:
YY_RULE_SETUP
{ return IN_QUAL; }
{ context->lexAfterType = true; return VOID_TYPE; }
YY_BREAK
case 23:
YY_RULE_SETUP
{ return OUT_QUAL; }
{ context->lexAfterType = true; return BOOL_TYPE; }
YY_BREAK
case 24:
YY_RULE_SETUP
{ return INOUT_QUAL; }
{ yylval->lex.b = true; return BOOLCONSTANT; }
YY_BREAK
case 25:
YY_RULE_SETUP
{ context->lexAfterType = true; return FLOAT_TYPE; }
{ yylval->lex.b = false; return BOOLCONSTANT; }
YY_BREAK
case 26:
YY_RULE_SETUP
{ context->lexAfterType = true; return INT_TYPE; }
{ return DISCARD; }
YY_BREAK
case 27:
YY_RULE_SETUP
{ context->lexAfterType = true; return VOID_TYPE; }
{ return RETURN; }
YY_BREAK
case 28:
YY_RULE_SETUP
{ context->lexAfterType = true; return BOOL_TYPE; }
{ context->lexAfterType = true; return MATRIX2; }
YY_BREAK
case 29:
YY_RULE_SETUP
{ yylval->lex.b = true; return BOOLCONSTANT; }
{ context->lexAfterType = true; return MATRIX3; }
YY_BREAK
case 30:
YY_RULE_SETUP
{ yylval->lex.b = false; return BOOLCONSTANT; }
{ context->lexAfterType = true; return MATRIX4; }
YY_BREAK
case 31:
YY_RULE_SETUP
{ return DISCARD; }
{ context->lexAfterType = true; return VEC2; }
YY_BREAK
case 32:
YY_RULE_SETUP
{ return RETURN; }
{ context->lexAfterType = true; return VEC3; }
YY_BREAK
case 33:
YY_RULE_SETUP
{ context->lexAfterType = true; return MATRIX2; }
{ context->lexAfterType = true; return VEC4; }
YY_BREAK
case 34:
YY_RULE_SETUP
{ context->lexAfterType = true; return MATRIX3; }
{ context->lexAfterType = true; return IVEC2; }
YY_BREAK
case 35:
YY_RULE_SETUP
{ context->lexAfterType = true; return MATRIX4; }
{ context->lexAfterType = true; return IVEC3; }
YY_BREAK
case 36:
YY_RULE_SETUP
{ context->lexAfterType = true; return VEC2; }
{ context->lexAfterType = true; return IVEC4; }
YY_BREAK
case 37:
YY_RULE_SETUP
{ context->lexAfterType = true; return VEC3; }
{ context->lexAfterType = true; return BVEC2; }
YY_BREAK
case 38:
YY_RULE_SETUP
{ context->lexAfterType = true; return VEC4; }
{ context->lexAfterType = true; return BVEC3; }
YY_BREAK
case 39:
YY_RULE_SETUP
{ context->lexAfterType = true; return IVEC2; }
{ context->lexAfterType = true; return BVEC4; }
YY_BREAK
case 40:
YY_RULE_SETUP
{ context->lexAfterType = true; return IVEC3; }
{ context->lexAfterType = true; return SAMPLER2D; }
YY_BREAK
case 41:
YY_RULE_SETUP
{ context->lexAfterType = true; return IVEC4; }
{ context->lexAfterType = true; return SAMPLERCUBE; }
YY_BREAK
case 42:
YY_RULE_SETUP
{ context->lexAfterType = true; return BVEC2; }
{ context->lexAfterType = true; return SAMPLER_EXTERNAL_OES; }
YY_BREAK
case 43:
YY_RULE_SETUP
{ context->lexAfterType = true; return BVEC3; }
{ context->lexAfterType = true; return SAMPLER2DRECT; }
YY_BREAK
case 44:
YY_RULE_SETUP
{ context->lexAfterType = true; return BVEC4; }
{ context->lexAfterType = true; return STRUCT; }
YY_BREAK
case 45:
YY_RULE_SETUP
{ context->lexAfterType = true; return SAMPLER2D; }
{ return reserved_word(yyscanner); }
YY_BREAK
case 46:
YY_RULE_SETUP
{ context->lexAfterType = true; return SAMPLERCUBE; }
{ return reserved_word(yyscanner); }
YY_BREAK
case 47:
YY_RULE_SETUP
{ context->lexAfterType = true; return SAMPLER_EXTERNAL_OES; }
{ return reserved_word(yyscanner); }
YY_BREAK
case 48:
YY_RULE_SETUP
{ context->lexAfterType = true; return SAMPLER2DRECT; }
{ return reserved_word(yyscanner); }
YY_BREAK
case 49:
YY_RULE_SETUP
{ context->lexAfterType = true; return STRUCT; }
{ return reserved_word(yyscanner); }
YY_BREAK
case 50:
YY_RULE_SETUP
......@@ -1515,240 +1506,216 @@ YY_RULE_SETUP
YY_BREAK
case 93:
YY_RULE_SETUP
{ return reserved_word(yyscanner); }
YY_BREAK
case 94:
YY_RULE_SETUP
{ return reserved_word(yyscanner); }
YY_BREAK
case 95:
YY_RULE_SETUP
{ return reserved_word(yyscanner); }
YY_BREAK
case 96:
YY_RULE_SETUP
{ return reserved_word(yyscanner); }
YY_BREAK
case 97:
YY_RULE_SETUP
{ return reserved_word(yyscanner); }
YY_BREAK
case 98:
YY_RULE_SETUP
{
yylval->lex.string = NewPoolTString(yytext);
return check_type(yyscanner);
}
YY_BREAK
case 99:
case 94:
YY_RULE_SETUP
{ yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
YY_BREAK
case 100:
case 95:
YY_RULE_SETUP
{ yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
YY_BREAK
case 101:
YY_RULE_SETUP
{ context->error(yylineno, "Invalid Octal number.", yytext); context->recover(); return 0;}
YY_BREAK
case 102:
case 96:
YY_RULE_SETUP
{ yylval->lex.i = static_cast<int>(strtol(yytext, 0, 0)); return INTCONSTANT; }
YY_BREAK
case 103:
case 97:
YY_RULE_SETUP
{ yylval->lex.f = static_cast<float>(atof_dot(yytext)); return FLOATCONSTANT; }
YY_BREAK
case 104:
case 98:
YY_RULE_SETUP
{ yylval->lex.f = static_cast<float>(atof_dot(yytext)); return FLOATCONSTANT; }
YY_BREAK
case 105:
case 99:
YY_RULE_SETUP
{ yylval->lex.f = static_cast<float>(atof_dot(yytext)); return FLOATCONSTANT; }
YY_BREAK
case 106:
case 100:
YY_RULE_SETUP
{ return ADD_ASSIGN; }
YY_BREAK
case 107:
case 101:
YY_RULE_SETUP
{ return SUB_ASSIGN; }
YY_BREAK
case 108:
case 102:
YY_RULE_SETUP
{ return MUL_ASSIGN; }
YY_BREAK
case 109:
case 103:
YY_RULE_SETUP
{ return DIV_ASSIGN; }
YY_BREAK
case 110:
case 104:
YY_RULE_SETUP
{ return MOD_ASSIGN; }
YY_BREAK
case 111:
case 105:
YY_RULE_SETUP
{ return LEFT_ASSIGN; }
YY_BREAK
case 112:
case 106:
YY_RULE_SETUP
{ return RIGHT_ASSIGN; }
YY_BREAK
case 113:
case 107:
YY_RULE_SETUP
{ return AND_ASSIGN; }
YY_BREAK
case 114:
case 108:
YY_RULE_SETUP
{ return XOR_ASSIGN; }
YY_BREAK
case 115:
case 109:
YY_RULE_SETUP
{ return OR_ASSIGN; }
YY_BREAK
case 116:
case 110:
YY_RULE_SETUP
{ return INC_OP; }
YY_BREAK
case 117:
case 111:
YY_RULE_SETUP
{ return DEC_OP; }
YY_BREAK
case 118:
case 112:
YY_RULE_SETUP
{ return AND_OP; }
YY_BREAK
case 119:
case 113:
YY_RULE_SETUP
{ return OR_OP; }
YY_BREAK
case 120:
case 114:
YY_RULE_SETUP
{ return XOR_OP; }
YY_BREAK
case 121:
case 115:
YY_RULE_SETUP
{ return LE_OP; }
YY_BREAK
case 122:
case 116:
YY_RULE_SETUP
{ return GE_OP; }
YY_BREAK
case 123:
case 117:
YY_RULE_SETUP
{ return EQ_OP; }
YY_BREAK
case 124:
case 118:
YY_RULE_SETUP
{ return NE_OP; }
YY_BREAK
case 125:
case 119:
YY_RULE_SETUP
{ return LEFT_OP; }
YY_BREAK
case 126:
case 120:
YY_RULE_SETUP
{ return RIGHT_OP; }
YY_BREAK
case 127:
case 121:
YY_RULE_SETUP
{ context->lexAfterType = false; return SEMICOLON; }
YY_BREAK
case 128:
case 122:
YY_RULE_SETUP
{ context->lexAfterType = false; return LEFT_BRACE; }
YY_BREAK
case 129:
case 123:
YY_RULE_SETUP
{ return RIGHT_BRACE; }
YY_BREAK
case 130:
case 124:
YY_RULE_SETUP
{ if (context->inTypeParen) context->lexAfterType = false; return COMMA; }
YY_BREAK
case 131:
case 125:
YY_RULE_SETUP
{ return COLON; }
YY_BREAK
case 132:
case 126:
YY_RULE_SETUP
{ context->lexAfterType = false; return EQUAL; }
YY_BREAK
case 133:
case 127:
YY_RULE_SETUP
{ context->lexAfterType = false; context->inTypeParen = true; return LEFT_PAREN; }
YY_BREAK
case 134:
case 128:
YY_RULE_SETUP
{ context->inTypeParen = false; return RIGHT_PAREN; }
YY_BREAK
case 135:
case 129:
YY_RULE_SETUP
{ return LEFT_BRACKET; }
YY_BREAK
case 136:
case 130:
YY_RULE_SETUP
{ return RIGHT_BRACKET; }
YY_BREAK
case 137:
case 131:
YY_RULE_SETUP
{ BEGIN(FIELDS); return DOT; }
YY_BREAK
case 138:
case 132:
YY_RULE_SETUP
{ return BANG; }
YY_BREAK
case 139:
case 133:
YY_RULE_SETUP
{ return DASH; }
YY_BREAK
case 140:
case 134:
YY_RULE_SETUP
{ return TILDE; }
YY_BREAK
case 141:
case 135:
YY_RULE_SETUP
{ return PLUS; }
YY_BREAK
case 142:
case 136:
YY_RULE_SETUP
{ return STAR; }
YY_BREAK
case 143:
case 137:
YY_RULE_SETUP
{ return SLASH; }
YY_BREAK
case 144:
case 138:
YY_RULE_SETUP
{ return PERCENT; }
YY_BREAK
case 145:
case 139:
YY_RULE_SETUP
{ return LEFT_ANGLE; }
YY_BREAK
case 146:
case 140:
YY_RULE_SETUP
{ return RIGHT_ANGLE; }
YY_BREAK
case 147:
case 141:
YY_RULE_SETUP
{ return VERTICAL_BAR; }
YY_BREAK
case 148:
case 142:
YY_RULE_SETUP
{ return CARET; }
YY_BREAK
case 149:
case 143:
YY_RULE_SETUP
{ return AMPERSAND; }
YY_BREAK
case 150:
case 144:
YY_RULE_SETUP
{ return QUESTION; }
YY_BREAK
case 151:
case 145:
YY_RULE_SETUP
{
BEGIN(INITIAL);
......@@ -1756,25 +1723,24 @@ YY_RULE_SETUP
return FIELD_SELECTION;
}
YY_BREAK
case 152:
case 146:
YY_RULE_SETUP
{}
YY_BREAK
case 153:
/* rule 153 can match eol */
case 147:
/* rule 147 can match eol */
YY_RULE_SETUP
{ }
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(FIELDS):
{ yyterminate(); }
YY_BREAK
case 154:
case 148:
YY_RULE_SETUP
{ context->warning(yylineno, "Unknown char", yytext, ""); return 0; }
YY_BREAK
case 155:
case 149:
YY_RULE_SETUP
ECHO;
YY_BREAK
......@@ -2070,7 +2036,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 459 )
if ( yy_current_state >= 449 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
......@@ -2099,11 +2065,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 459 )
if ( yy_current_state >= 449 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 458);
yy_is_jam = (yy_current_state == 448);
return yy_is_jam ? 0 : yy_current_state;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment