Implemented lexing support for the floating-point suffix.

TRAC #23185 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2414 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 2a5436ff
......@@ -58,6 +58,7 @@ static int ES2_reserved_ES3_keyword(TParseContext *context, int token);
static int ES2_keyword_ES3_reserved(TParseContext *context, int token);
static int ES2_ident_ES3_keyword(TParseContext *context, int token);
static int uint_constant(TParseContext *context);
static int floatsuffix_check(TParseContext* context);
%}
%option noyywrap nounput never-interactive
......@@ -314,6 +315,9 @@ O [0-7]
{D}+{E} { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
{D}+"."{D}*({E})? { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
"."{D}+({E})? { yylval->lex.f = static_cast<float>(atof_dot(yytext)); return(FLOATCONSTANT); }
{D}+{E}[fF] { return floatsuffix_check(context); }
{D}+"."{D}*({E})?[fF] { return floatsuffix_check(context); }
"."{D}+({E})?[fF] { return floatsuffix_check(context); }
"+=" { return(ADD_ASSIGN); }
"-=" { return(SUB_ASSIGN); }
......@@ -458,6 +462,8 @@ int uint_constant(TParseContext *context)
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
yyscan_t yyscanner = (yyscan_t) context->scanner;
yylval->lex.u = static_cast<unsigned int>(strtol(yytext, 0, 0));
if (context->shaderVersion < 300)
{
context->error(yylineno, "Unsigned integers are unsupported prior to GLSL ES 3.00", yytext, "");
......@@ -465,10 +471,25 @@ int uint_constant(TParseContext *context)
return 0;
}
yylval->lex.u = static_cast<unsigned int>(strtol(yytext, 0, 0));
return UINTCONSTANT;
}
int floatsuffix_check(TParseContext* context)
{
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
yylval->lex.f = static_cast<float>(atof_dot(yytext));
if (context->shaderVersion < 300)
{
context->error(yylineno, "Floating-point suffix unsupported prior to GLSL ES 3.00", yytext);
context->recover();
return 0;
}
return(FLOATCONSTANT);
}
void yyerror(TParseContext* context, const char* reason) {
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
......
......@@ -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 231
#define YY_END_OF_BUFFER 232
#define YY_NUM_RULES 234
#define YY_END_OF_BUFFER 235
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
......@@ -392,94 +392,94 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static yyconst flex_int16_t yy_accept[787] =
static yyconst flex_int16_t yy_accept[790] =
{ 0,
0, 0, 0, 0, 0, 0, 232, 230, 229, 229,
214, 220, 225, 209, 210, 218, 217, 206, 215, 213,
219, 175, 175, 207, 203, 221, 208, 222, 226, 171,
211, 212, 224, 171, 171, 171, 171, 171, 171, 171,
0, 0, 0, 0, 0, 0, 235, 233, 232, 232,
217, 223, 228, 212, 213, 221, 220, 209, 218, 216,
222, 175, 175, 210, 206, 224, 211, 225, 229, 171,
214, 215, 227, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 204, 223, 205, 216, 3, 4, 3,
228, 231, 227, 200, 186, 205, 194, 189, 184, 192,
182, 193, 183, 181, 2, 1, 185, 180, 173, 174,
0, 178, 0, 175, 212, 204, 211, 201, 197, 199,
198, 202, 171, 190, 196, 171, 171, 171, 171, 171,
171, 171, 171, 207, 226, 208, 219, 3, 4, 3,
231, 234, 230, 203, 189, 208, 197, 192, 187, 195,
185, 196, 186, 181, 2, 1, 188, 180, 173, 174,
0, 178, 0, 175, 215, 207, 214, 204, 200, 202,
201, 205, 171, 193, 199, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 17, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 20, 171, 171, 28, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 191, 195,
5, 227, 0, 1, 180, 0, 177, 0, 179, 172,
187, 188, 171, 130, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 194, 198,
5, 230, 0, 184, 1, 180, 0, 183, 177, 0,
179, 172, 190, 191, 171, 130, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 18, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 18,
171, 171, 171, 171, 171, 171, 171, 171, 32, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
29, 171, 171, 171, 171, 171, 171, 171, 171, 171,
32, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 29, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 0, 181, 0, 180, 176,
171, 171, 171, 35, 171, 171, 23, 168, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 21, 133,
171, 171, 171, 171, 26, 171, 171, 137, 149, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 0, 181, 0,
180, 182, 176, 171, 171, 171, 35, 171, 171, 23,
168, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 21, 133, 171, 171, 171, 171, 26, 171, 171,
137, 149, 171, 171, 171, 171, 171, 171, 171, 171,
171, 146, 9, 40, 41, 42, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 146, 9, 40, 41, 42, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
136, 36, 171, 171, 33, 171, 171, 171, 171, 171,
171, 171, 52, 53, 54, 34, 171, 171, 171, 171,
171, 171, 15, 61, 62, 63, 171, 131, 171, 171,
12, 171, 171, 171, 171, 158, 159, 160, 171, 37,
171, 150, 31, 161, 162, 163, 7, 155, 156, 157,
171, 171, 171, 30, 153, 171, 171, 171, 55, 56,
57, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 80, 171, 171, 171, 171, 171, 171, 171,
147, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 132, 171, 171, 170, 58, 59, 60, 171,
171, 19, 171, 85, 171, 171, 171, 171, 83, 171,
171, 171, 148, 143, 86, 171, 171, 171, 171, 171,
171, 138, 171, 171, 171, 72, 43, 46, 48, 47,
44, 50, 49, 51, 45, 171, 171, 171, 171, 154,
129, 171, 171, 141, 171, 171, 171, 39, 81, 167,
27, 142, 71, 171, 152, 22, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
24, 38, 171, 171, 171, 171, 171, 171, 87, 88,
89, 171, 171, 171, 171, 171, 8, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 171, 134, 171,
171, 171, 171, 171, 13, 171, 171, 14, 171, 171,
171, 171, 25, 73, 16, 144, 91, 92, 93, 171,
171, 171, 171, 136, 36, 171, 171, 33, 171, 171,
171, 171, 171, 171, 171, 52, 53, 54, 34, 171,
171, 171, 171, 171, 171, 15, 61, 62, 63, 171,
131, 171, 171, 12, 171, 171, 171, 171, 158, 159,
160, 171, 37, 171, 150, 31, 161, 162, 163, 7,
155, 156, 157, 171, 171, 171, 30, 153, 171, 171,
171, 55, 56, 57, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 80, 171, 171, 171, 171,
171, 171, 171, 147, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 132, 171, 171, 170, 58,
59, 60, 171, 171, 19, 171, 85, 171, 171, 171,
171, 83, 171, 171, 171, 148, 143, 86, 171, 171,
171, 171, 171, 171, 138, 171, 171, 171, 72, 43,
46, 48, 47, 44, 50, 49, 51, 45, 171, 171,
171, 171, 154, 129, 171, 171, 141, 171, 171, 171,
39, 81, 167, 27, 142, 71, 171, 152, 22, 171,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 139, 171, 171, 171, 75, 77, 74, 171, 171,
171, 171, 171, 171, 171, 135, 95, 96, 97, 171,
171, 151, 171, 140, 171, 171, 11, 171, 171, 171,
171, 171, 171, 171, 171, 171, 90, 145, 6, 171,
171, 171, 169, 171, 84, 10, 164, 64, 67, 171,
171, 171, 171, 24, 38, 171, 171, 171, 171, 171,
171, 87, 88, 89, 171, 171, 171, 171, 171, 8,
171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
76, 171, 171, 171, 171, 94, 171, 171, 171, 171,
171, 114, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 82, 171, 171, 171, 98, 116,
171, 171, 78, 171, 171, 171, 171, 171, 171, 171,
109, 171, 171, 171, 171, 171, 171, 171, 123, 171,
171, 171, 171, 65, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 110, 99, 171, 100, 171, 171,
124, 171, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 111, 171, 125, 171, 171, 101,
102, 171, 105, 171, 106, 171, 171, 171, 171, 79,
171, 171, 171, 70, 171, 68, 120, 171, 103, 104,
171, 171, 171, 171, 171, 171, 171, 171, 118, 121,
112, 171, 171, 171, 171, 171, 171, 171, 119, 122,
171, 171, 115, 171, 171, 165, 171, 171, 69, 171,
117, 171, 171, 171, 171, 171, 126, 171, 171, 171,
171, 171, 127, 171, 171, 171, 128, 107, 108, 171,
171, 66, 171, 166, 113, 0
171, 134, 171, 171, 171, 171, 171, 13, 171, 171,
14, 171, 171, 171, 171, 25, 73, 16, 144, 91,
92, 93, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 139, 171, 171, 171, 75, 77,
74, 171, 171, 171, 171, 171, 171, 171, 135, 95,
96, 97, 171, 171, 151, 171, 140, 171, 171, 11,
171, 171, 171, 171, 171, 171, 171, 171, 171, 90,
145, 6, 171, 171, 171, 169, 171, 84, 10, 164,
64, 67, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 76, 171, 171, 171, 171, 94, 171,
171, 171, 171, 171, 114, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 82, 171, 171,
171, 98, 116, 171, 171, 78, 171, 171, 171, 171,
171, 171, 171, 109, 171, 171, 171, 171, 171, 171,
171, 123, 171, 171, 171, 171, 65, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 110, 99, 171,
100, 171, 171, 124, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 171, 111, 171, 125,
171, 171, 101, 102, 171, 105, 171, 106, 171, 171,
171, 171, 79, 171, 171, 171, 70, 171, 68, 120,
171, 103, 104, 171, 171, 171, 171, 171, 171, 171,
171, 118, 121, 112, 171, 171, 171, 171, 171, 171,
171, 119, 122, 171, 171, 115, 171, 171, 165, 171,
171, 69, 171, 117, 171, 171, 171, 171, 171, 126,
171, 171, 171, 171, 171, 127, 171, 171, 171, 128,
107, 108, 171, 171, 66, 171, 166, 113, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
......@@ -518,199 +518,199 @@ static yyconst flex_int32_t yy_meta[73] =
{ 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, 3, 3, 4, 4, 4, 4, 4, 4, 4,
1, 1, 1, 4, 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,
3, 1, 1, 1, 1, 1, 1, 4, 4, 4,
4, 3, 3, 5, 5, 5, 5, 5, 5, 5,
1, 1, 1, 5, 4, 4, 4, 4, 3, 3,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 1, 1,
1, 1
} ;
static yyconst flex_int16_t yy_base[792] =
static yyconst flex_int16_t yy_base[797] =
{ 0,
0, 0, 70, 71, 80, 0, 1007, 1008, 1008, 1008,
981, 50, 147, 1008, 1008, 980, 144, 1008, 143, 141,
156, 169, 223, 978, 1008, 169, 978, 52, 1008, 0,
1008, 1008, 152, 117, 138, 118, 157, 148, 167, 944,
147, 173, 159, 126, 188, 938, 200, 951, 205, 199,
212, 226, 147, 1008, 158, 1008, 1008, 1008, 1008, 985,
1008, 1008, 0, 1008, 1008, 1008, 1008, 1008, 1008, 1008,
1008, 1008, 1008, 262, 1008, 0, 1008, 272, 256, 310,
297, 1008, 0, 0, 1008, 1008, 1008, 973, 1008, 1008,
1008, 972, 0, 1008, 1008, 934, 939, 191, 936, 944,
943, 930, 933, 944, 245, 938, 926, 923, 936, 923,
920, 920, 926, 158, 240, 920, 930, 916, 922, 925,
926, 0, 918, 928, 277, 927, 922, 903, 162, 907,
920, 911, 246, 904, 286, 916, 918, 289, 907, 904,
893, 902, 292, 294, 906, 902, 904, 893, 896, 287,
203, 255, 905, 893, 905, 199, 898, 897, 1008, 1008,
1008, 0, 345, 0, 359, 377, 1008, 384, 394, 306,
1008, 1008, 896, 0, 892, 887, 891, 900, 897, 305,
881, 881, 892, 884, 309, 894, 891, 891, 889, 886,
878, 884, 871, 869, 881, 867, 883, 0, 880, 868,
875, 872, 876, 877, 870, 867, 856, 855, 868, 871,
859, 867, 855, 861, 852, 364, 857, 860, 851, 858,
847, 851, 842, 856, 855, 846, 852, 248, 836, 839,
837, 847, 837, 832, 830, 832, 842, 828, 830, 827,
838, 837, 840, 822, 366, 830, 826, 824, 833, 812,
367, 830, 832, 821, 813, 402, 410, 417, 424, 1008,
810, 820, 819, 0, 817, 429, 0, 0, 810, 808,
808, 809, 804, 812, 801, 818, 807, 432, 0, 0,
801, 811, 810, 810, 0, 795, 435, 0, 0, 797,
438, 804, 805, 796, 790, 789, 790, 789, 789, 441,
784, 0, 0, 780, 779, 778, 780, 781, 786, 780,
776, 789, 784, 784, 782, 781, 775, 769, 771, 770,
774, 766, 769, 764, 772, 777, 765, 762, 774, 765,
0, 0, 771, 767, 0, 759, 759, 764, 755, 762,
444, 759, 0, 0, 0, 0, 749, 761, 760, 759,
760, 760, 0, 0, 0, 0, 747, 0, 755, 746,
0, 745, 746, 740, 750, 0, 0, 0, 741, 0,
737, 0, 0, 0, 0, 0, 0, 0, 0, 0,
747, 448, 746, 0, 0, 744, 740, 737, 0, 0,
0, 729, 450, 453, 456, 734, 730, 735, 726, 724,
737, 722, 0, 722, 735, 724, 720, 726, 721, 728,
0, 726, 723, 727, 711, 709, 712, 718, 724, 719,
718, 706, 0, 708, 709, 0, 0, 0, 0, 706,
709, 0, 703, 0, 716, 696, 705, 700, 0, 693,
693, 706, 0, 708, 0, 463, 721, 720, 719, 686,
685, 0, 702, 701, 696, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 685, 698, 685, 682, 0,
0, 687, 686, 0, 683, 690, 689, 0, 675, 0,
0, 0, 0, 672, 0, 0, 671, 682, 466, 675,
681, 680, 677, 672, 669, 662, 662, 675, 660, 672,
0, 0, 665, 688, 687, 686, 653, 652, 330, 448,
0, 664, 667, 665, 654, 650, 0, 662, 659, 658,
648, 647, 637, 654, 640, 471, 648, 651, 0, 668,
667, 666, 633, 632, 0, 646, 633, 0, 643, 636,
637, 640, 0, 0, 0, 0, 660, 659, 0, 636,
639, 624, 631, 622, 629, 630, 630, 629, 615, 481,
627, 0, 628, 617, 616, 0, 0, 0, 641, 640,
639, 606, 605, 601, 609, 0, 637, 636, 0, 613,
616, 0, 488, 0, 594, 603, 0, 599, 598, 607,
607, 595, 609, 593, 607, 602, 0, 0, 0, 619,
618, 585, 0, 585, 0, 0, 471, 476, 609, 595,
598, 581, 593, 581, 580, 589, 589, 606, 605, 572,
0, 572, 573, 572, 582, 0, 585, 581, 583, 579,
566, 597, 353, 574, 570, 562, 569, 582, 570, 566,
568, 566, 566, 565, 0, 553, 552, 562, 0, 582,
471, 559, 0, 563, 562, 546, 538, 546, 536, 544,
0, 541, 562, 550, 548, 533, 536, 550, 566, 546,
547, 544, 541, 0, 529, 543, 542, 526, 525, 546,
534, 532, 514, 513, 0, 541, 513, 539, 511, 515,
546, 526, 523, 522, 525, 521, 508, 505, 518, 503,
504, 506, 495, 494, 0, 500, 531, 511, 508, 0,
0, 504, 0, 503, 0, 509, 493, 490, 491, 0,
483, 491, 488, 509, 488, 0, 0, 500, 0, 0,
499, 483, 480, 481, 495, 494, 471, 477, 0, 0,
498, 470, 489, 481, 467, 476, 463, 467, 0, 0,
468, 467, 0, 467, 455, 0, 435, 449, 0, 455,
0, 445, 427, 349, 339, 327, 0, 308, 315, 271,
259, 255, 0, 255, 216, 209, 0, 0, 0, 108,
115, 0, 132, 0, 0, 1008, 517, 519, 521, 525,
213
0, 0, 70, 71, 80, 0, 1005, 1006, 1006, 1006,
979, 50, 147, 1006, 1006, 978, 144, 1006, 143, 141,
156, 169, 223, 976, 1006, 169, 976, 52, 1006, 0,
1006, 1006, 152, 117, 138, 118, 157, 148, 167, 942,
147, 173, 159, 126, 188, 936, 200, 949, 205, 199,
212, 226, 147, 1006, 158, 1006, 1006, 1006, 1006, 983,
1006, 1006, 0, 1006, 1006, 1006, 1006, 1006, 1006, 1006,
1006, 1006, 1006, 245, 1006, 0, 1006, 247, 242, 296,
321, 1006, 0, 0, 1006, 1006, 1006, 971, 1006, 1006,
1006, 970, 0, 1006, 1006, 932, 937, 191, 934, 942,
941, 928, 931, 942, 231, 936, 924, 921, 934, 921,
918, 918, 924, 158, 240, 918, 928, 914, 920, 923,
924, 0, 916, 926, 263, 925, 920, 901, 162, 905,
918, 909, 240, 902, 242, 914, 916, 229, 905, 902,
891, 900, 247, 260, 904, 900, 902, 891, 894, 244,
203, 279, 903, 891, 903, 199, 896, 895, 1006, 1006,
1006, 0, 334, 1006, 0, 315, 351, 1006, 1006, 358,
365, 271, 1006, 1006, 894, 0, 890, 885, 889, 898,
895, 281, 879, 879, 890, 882, 295, 892, 889, 889,
887, 884, 876, 882, 869, 867, 879, 865, 881, 0,
878, 866, 873, 870, 874, 875, 868, 865, 854, 853,
866, 869, 857, 865, 853, 859, 850, 370, 855, 858,
849, 856, 845, 849, 840, 854, 853, 844, 850, 300,
834, 837, 835, 845, 835, 830, 828, 830, 840, 826,
828, 825, 836, 835, 838, 820, 341, 828, 824, 822,
831, 810, 375, 828, 830, 819, 811, 385, 392, 401,
411, 1006, 1006, 808, 818, 817, 0, 815, 378, 0,
0, 808, 806, 806, 807, 802, 810, 799, 816, 805,
416, 0, 0, 799, 809, 808, 808, 0, 793, 419,
0, 0, 795, 422, 802, 803, 794, 788, 787, 788,
787, 787, 428, 782, 0, 0, 778, 777, 776, 778,
779, 784, 778, 774, 787, 782, 782, 780, 779, 773,
767, 769, 768, 772, 764, 767, 762, 770, 775, 763,
760, 772, 763, 0, 0, 769, 765, 0, 757, 757,
762, 753, 760, 431, 757, 0, 0, 0, 0, 747,
759, 758, 757, 758, 758, 0, 0, 0, 0, 745,
0, 753, 744, 0, 743, 744, 738, 748, 0, 0,
0, 739, 0, 735, 0, 0, 0, 0, 0, 0,
0, 0, 0, 745, 435, 744, 0, 0, 742, 738,
735, 0, 0, 0, 727, 437, 440, 449, 732, 728,
733, 724, 722, 735, 720, 0, 720, 733, 722, 718,
724, 719, 726, 0, 724, 721, 725, 709, 707, 710,
716, 722, 717, 716, 704, 0, 706, 707, 0, 0,
0, 0, 704, 707, 0, 701, 0, 714, 694, 703,
698, 0, 691, 691, 704, 0, 706, 0, 453, 719,
718, 717, 684, 683, 0, 700, 699, 694, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 683, 696,
683, 680, 0, 0, 685, 684, 0, 681, 688, 687,
0, 673, 0, 0, 0, 0, 670, 0, 0, 669,
680, 456, 673, 679, 678, 675, 670, 667, 660, 660,
673, 658, 670, 0, 0, 663, 686, 685, 684, 651,
650, 386, 449, 0, 662, 665, 663, 652, 648, 0,
660, 657, 656, 646, 645, 635, 652, 638, 462, 646,
649, 0, 666, 665, 664, 631, 630, 0, 644, 631,
0, 641, 634, 635, 638, 0, 0, 0, 0, 658,
657, 0, 634, 637, 622, 629, 620, 627, 628, 628,
627, 613, 446, 625, 0, 626, 615, 614, 0, 0,
0, 639, 638, 637, 604, 603, 599, 607, 0, 635,
634, 0, 611, 614, 0, 472, 0, 592, 601, 0,
597, 596, 605, 605, 593, 607, 591, 605, 600, 0,
0, 0, 617, 616, 583, 0, 583, 0, 0, 462,
458, 607, 593, 596, 579, 591, 579, 578, 587, 587,
604, 603, 570, 0, 570, 571, 570, 580, 0, 583,
579, 581, 577, 564, 595, 462, 572, 568, 560, 567,
580, 568, 564, 566, 564, 564, 563, 0, 551, 550,
560, 0, 580, 467, 557, 0, 561, 560, 544, 536,
544, 534, 542, 0, 539, 560, 548, 546, 531, 534,
548, 564, 544, 545, 542, 539, 0, 527, 541, 540,
524, 523, 544, 532, 530, 512, 511, 0, 539, 511,
537, 509, 513, 544, 524, 521, 520, 523, 519, 506,
503, 516, 501, 502, 504, 493, 492, 0, 498, 529,
509, 506, 0, 0, 502, 0, 501, 0, 507, 491,
488, 489, 0, 481, 489, 486, 507, 486, 0, 0,
498, 0, 0, 497, 481, 478, 479, 493, 492, 469,
475, 0, 0, 496, 468, 487, 479, 465, 474, 461,
467, 0, 0, 478, 477, 0, 479, 471, 0, 450,
458, 0, 462, 0, 439, 423, 418, 393, 398, 0,
375, 358, 293, 264, 261, 0, 275, 262, 265, 0,
0, 0, 108, 115, 0, 132, 0, 0, 1006, 504,
507, 510, 213, 515, 244, 518
} ;
static yyconst flex_int16_t yy_def[792] =
static yyconst flex_int16_t yy_def[797] =
{ 0,
786, 1, 787, 787, 786, 5, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 788,
786, 786, 786, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 786, 786, 786, 786, 786, 786, 786,
786, 786, 789, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 790, 786, 786, 22, 786,
786, 786, 791, 23, 786, 786, 786, 786, 786, 786,
786, 786, 788, 786, 786, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 786, 786,
786, 789, 786, 790, 786, 786, 786, 786, 786, 791,
786, 786, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 786, 786, 786, 786, 786,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
788, 788, 788, 788, 788, 0, 786, 786, 786, 786,
786
789, 1, 790, 790, 789, 5, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 791,
789, 789, 789, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 789, 789, 789, 789, 789, 789, 789,
789, 789, 792, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 793, 789, 794, 789, 795, 22, 789,
789, 789, 796, 23, 789, 789, 789, 789, 789, 789,
789, 789, 791, 789, 789, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 789, 789,
789, 792, 789, 789, 794, 795, 789, 789, 789, 789,
789, 796, 789, 789, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 789, 789, 789,
789, 789, 789, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 791, 791,
791, 791, 791, 791, 791, 791, 791, 791, 0, 789,
789, 789, 789, 789, 789, 789
} ;
static yyconst flex_int16_t yy_nxt[1081] =
static yyconst flex_int16_t yy_nxt[1079] =
{ 0,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 23, 23, 23, 23,
......@@ -729,110 +729,110 @@ static yyconst flex_int16_t yy_nxt[1081] =
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, 102, 96, 75, 783, 103, 73, 71, 76,
130, 68, 104, 86, 131, 105, 94, 97, 98, 784,
74, 74, 102, 96, 75, 786, 103, 73, 71, 76,
130, 68, 104, 86, 131, 105, 94, 97, 98, 787,
77, 78, 159, 79, 79, 79, 79, 79, 79, 80,
87, 119, 88, 89, 95, 99, 785, 100, 157, 120,
87, 119, 88, 89, 95, 99, 788, 100, 157, 120,
81, 101, 110, 128, 111, 106, 158, 82, 83, 107,
121, 113, 194, 112, 108, 170, 129, 81, 214, 114,
109, 115, 122, 195, 116, 123, 215, 160, 124, 125,
121, 113, 196, 112, 108, 74, 129, 81, 216, 114,
109, 115, 122, 197, 116, 123, 217, 160, 124, 125,
117, 82, 132, 126, 83, 78, 127, 84, 84, 84,
84, 84, 84, 84, 135, 133, 782, 146, 175, 139,
147, 252, 176, 253, 81, 245, 140, 141, 148, 136,
142, 82, 137, 246, 150, 149, 143, 144, 151, 145,
154, 81, 152, 781, 155, 153, 74, 74, 74, 74,
74, 74, 74, 156, 196, 82, 165, 165, 165, 165,
165, 165, 165, 163, 167, 786, 183, 197, 219, 247,
184, 185, 780, 166, 220, 318, 168, 248, 168, 319,
163, 169, 169, 169, 169, 169, 169, 169, 167, 779,
166, 786, 78, 778, 80, 80, 80, 80, 80, 80,
80, 206, 222, 227, 207, 208, 234, 777, 209, 236,
210, 81, 243, 244, 260, 223, 776, 224, 82, 228,
229, 235, 237, 267, 256, 775, 256, 552, 81, 257,
257, 257, 257, 257, 257, 257, 268, 553, 260, 273,
274, 774, 82, 165, 165, 165, 165, 165, 165, 165,
304, 305, 306, 343, 344, 345, 258, 663, 258, 664,
166, 259, 259, 259, 259, 259, 259, 259, 169, 169,
169, 169, 169, 169, 169, 773, 772, 166, 169, 169,
169, 169, 169, 169, 169, 336, 257, 257, 257, 257,
257, 257, 257, 337, 257, 257, 257, 257, 257, 257,
257, 259, 259, 259, 259, 259, 259, 259, 259, 259,
259, 259, 259, 259, 259, 354, 355, 356, 366, 367,
368, 374, 375, 376, 378, 379, 380, 389, 390, 391,
427, 428, 429, 447, 448, 449, 457, 458, 459, 460,
461, 462, 463, 464, 465, 554, 450, 451, 504, 505,
506, 530, 531, 532, 771, 555, 569, 570, 571, 770,
769, 507, 508, 768, 533, 534, 600, 601, 636, 572,
573, 767, 574, 618, 619, 680, 766, 681, 637, 602,
638, 765, 639, 640, 764, 763, 620, 58, 58, 58,
58, 93, 93, 162, 162, 164, 762, 164, 164, 761,
760, 759, 758, 757, 756, 755, 754, 753, 752, 751,
750, 749, 748, 747, 746, 745, 744, 743, 742, 741,
740, 739, 738, 737, 736, 735, 734, 733, 732, 731,
730, 729, 728, 727, 726, 725, 724, 723, 722, 721,
720, 719, 718, 717, 716, 715, 714, 713, 712, 711,
710, 709, 708, 707, 706, 705, 704, 703, 702, 701,
700, 699, 698, 697, 696, 695, 694, 693, 692, 691,
690, 689, 688, 687, 686, 685, 684, 683, 682, 679,
678, 677, 676, 675, 674, 673, 672, 671, 670, 669,
668, 667, 666, 665, 662, 661, 660, 659, 658, 657,
656, 655, 654, 653, 652, 651, 650, 649, 648, 647,
646, 645, 644, 643, 642, 641, 635, 634, 633, 632,
631, 630, 629, 628, 627, 626, 625, 624, 623, 622,
621, 617, 616, 615, 614, 613, 612, 611, 610, 609,
608, 607, 606, 605, 604, 603, 599, 598, 597, 596,
595, 594, 593, 592, 591, 590, 589, 588, 587, 586,
585, 584, 583, 582, 581, 580, 579, 578, 577, 576,
575, 568, 567, 566, 565, 564, 563, 562, 561, 560,
559, 558, 557, 556, 551, 550, 549, 548, 547, 546,
545, 544, 543, 542, 541, 540, 539, 538, 537, 536,
535, 529, 528, 527, 526, 525, 524, 523, 522, 521,
520, 519, 518, 517, 516, 515, 514, 513, 512, 511,
510, 509, 503, 502, 501, 500, 499, 498, 497, 496,
495, 494, 493, 492, 491, 490, 489, 488, 487, 486,
485, 484, 483, 482, 481, 480, 479, 478, 477, 476,
475, 474, 473, 472, 471, 470, 469, 468, 467, 466,
456, 455, 454, 453, 452, 446, 445, 444, 443, 442,
441, 440, 439, 438, 437, 436, 435, 434, 433, 432,
431, 430, 426, 425, 424, 423, 422, 421, 420, 419,
418, 417, 416, 415, 414, 413, 412, 411, 410, 409,
408, 407, 406, 405, 404, 403, 402, 401, 400, 399,
398, 397, 396, 395, 394, 393, 392, 388, 387, 386,
385, 384, 383, 382, 381, 377, 373, 372, 371, 370,
369, 365, 364, 363, 362, 361, 360, 359, 358, 357,
353, 352, 351, 350, 349, 348, 347, 346, 342, 341,
340, 339, 338, 335, 334, 333, 332, 331, 330, 329,
328, 327, 326, 325, 324, 323, 322, 321, 320, 317,
316, 315, 314, 313, 312, 311, 310, 309, 308, 307,
303, 302, 301, 300, 299, 298, 297, 296, 295, 294,
293, 292, 291, 290, 289, 288, 287, 286, 285, 284,
283, 282, 281, 280, 279, 278, 277, 276, 275, 272,
271, 270, 269, 266, 265, 264, 263, 262, 261, 255,
254, 251, 250, 249, 242, 241, 240, 239, 238, 233,
232, 231, 230, 226, 225, 221, 218, 217, 216, 213,
212, 211, 205, 204, 203, 202, 201, 200, 199, 198,
193, 192, 191, 190, 189, 188, 187, 186, 182, 181,
180, 179, 178, 177, 174, 173, 172, 171, 161, 138,
134, 118, 90, 85, 69, 64, 786, 7, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786
84, 84, 84, 84, 135, 133, 166, 146, 177, 139,
147, 254, 178, 255, 81, 247, 140, 141, 148, 136,
142, 82, 137, 248, 150, 149, 143, 144, 151, 145,
154, 81, 152, 229, 155, 153, 163, 164, 167, 168,
169, 789, 185, 156, 198, 82, 186, 187, 224, 230,
231, 236, 221, 163, 164, 167, 168, 199, 222, 245,
246, 225, 785, 226, 169, 238, 237, 789, 78, 263,
80, 80, 80, 80, 80, 80, 80, 208, 239, 784,
209, 210, 783, 249, 211, 782, 212, 81, 781, 270,
170, 250, 170, 263, 82, 171, 171, 171, 171, 171,
171, 171, 271, 258, 81, 258, 167, 168, 259, 259,
259, 259, 259, 259, 259, 276, 277, 321, 82, 780,
260, 322, 260, 167, 168, 261, 261, 261, 261, 261,
261, 261, 171, 171, 171, 171, 171, 171, 171, 171,
171, 171, 171, 171, 171, 171, 307, 308, 309, 779,
339, 346, 347, 348, 357, 358, 359, 262, 340, 259,
259, 259, 259, 259, 259, 259, 259, 259, 259, 259,
259, 259, 259, 555, 262, 261, 261, 261, 261, 261,
261, 261, 778, 556, 164, 261, 261, 261, 261, 261,
261, 261, 369, 370, 371, 377, 378, 379, 381, 382,
383, 164, 777, 168, 392, 393, 394, 430, 431, 432,
450, 451, 452, 460, 461, 462, 463, 464, 465, 776,
168, 603, 604, 453, 454, 466, 467, 468, 507, 508,
509, 533, 534, 535, 605, 775, 557, 572, 573, 574,
774, 510, 511, 773, 536, 537, 558, 621, 622, 639,
575, 576, 641, 577, 642, 643, 666, 772, 667, 640,
623, 683, 771, 684, 58, 58, 58, 58, 58, 93,
93, 93, 162, 162, 162, 165, 770, 165, 165, 165,
172, 172, 769, 768, 767, 766, 765, 764, 763, 762,
761, 760, 759, 758, 757, 756, 755, 754, 753, 752,
751, 750, 749, 748, 747, 746, 745, 744, 743, 742,
741, 740, 739, 738, 737, 736, 735, 734, 733, 732,
731, 730, 729, 728, 727, 726, 725, 724, 723, 722,
721, 720, 719, 718, 717, 716, 715, 714, 713, 712,
711, 710, 709, 708, 707, 706, 705, 704, 703, 702,
701, 700, 699, 698, 697, 696, 695, 694, 693, 692,
691, 690, 689, 688, 687, 686, 685, 682, 681, 680,
679, 678, 677, 676, 675, 674, 673, 672, 671, 670,
669, 668, 665, 664, 663, 662, 661, 660, 659, 658,
657, 656, 655, 654, 653, 652, 651, 650, 649, 648,
647, 646, 645, 644, 638, 637, 636, 635, 634, 633,
632, 631, 630, 629, 628, 627, 626, 625, 624, 620,
619, 618, 617, 616, 615, 614, 613, 612, 611, 610,
609, 608, 607, 606, 602, 601, 600, 599, 598, 597,
596, 595, 594, 593, 592, 591, 590, 589, 588, 587,
586, 585, 584, 583, 582, 581, 580, 579, 578, 571,
570, 569, 568, 567, 566, 565, 564, 563, 562, 561,
560, 559, 554, 553, 552, 551, 550, 549, 548, 547,
546, 545, 544, 543, 542, 541, 540, 539, 538, 532,
531, 530, 529, 528, 527, 526, 525, 524, 523, 522,
521, 520, 519, 518, 517, 516, 515, 514, 513, 512,
506, 505, 504, 503, 502, 501, 500, 499, 498, 497,
496, 495, 494, 493, 492, 491, 490, 489, 488, 487,
486, 485, 484, 483, 482, 481, 480, 479, 478, 477,
476, 475, 474, 473, 472, 471, 470, 469, 459, 458,
457, 456, 455, 449, 448, 447, 446, 445, 444, 443,
442, 441, 440, 439, 438, 437, 436, 435, 434, 433,
429, 428, 427, 426, 425, 424, 423, 422, 421, 420,
419, 418, 417, 416, 415, 414, 413, 412, 411, 410,
409, 408, 407, 406, 405, 404, 403, 402, 401, 400,
399, 398, 397, 396, 395, 391, 390, 389, 388, 387,
386, 385, 384, 380, 376, 375, 374, 373, 372, 368,
367, 366, 365, 364, 363, 362, 361, 360, 356, 355,
354, 353, 352, 351, 350, 349, 345, 344, 343, 342,
341, 338, 337, 336, 335, 334, 333, 332, 331, 330,
329, 328, 327, 326, 325, 324, 323, 320, 319, 318,
317, 316, 315, 314, 313, 312, 311, 310, 306, 305,
304, 303, 302, 301, 300, 299, 298, 297, 296, 295,
294, 293, 292, 291, 290, 289, 288, 287, 286, 285,
284, 283, 282, 281, 280, 279, 278, 275, 274, 273,
272, 269, 268, 267, 266, 265, 264, 257, 256, 253,
252, 251, 244, 243, 242, 241, 240, 235, 234, 233,
232, 228, 227, 223, 220, 219, 218, 215, 214, 213,
207, 206, 205, 204, 203, 202, 201, 200, 195, 194,
193, 192, 191, 190, 189, 188, 184, 183, 182, 181,
180, 179, 176, 175, 174, 173, 161, 138, 134, 118,
90, 85, 69, 64, 789, 7, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789
} ;
static yyconst flex_int16_t yy_chk[1081] =
static yyconst flex_int16_t yy_chk[1079] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
......@@ -851,111 +851,111 @@ static yyconst flex_int16_t yy_chk[1081] =
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, 36, 34, 21, 780, 36, 19, 17, 21,
44, 13, 36, 26, 44, 36, 33, 34, 34, 781,
20, 20, 36, 34, 21, 783, 36, 19, 17, 21,
44, 13, 36, 26, 44, 36, 33, 34, 34, 784,
21, 22, 55, 22, 22, 22, 22, 22, 22, 22,
26, 41, 26, 26, 33, 35, 783, 35, 53, 41,
26, 41, 26, 26, 33, 35, 786, 35, 53, 41,
22, 35, 38, 43, 38, 37, 53, 22, 22, 37,
41, 39, 114, 38, 37, 791, 43, 22, 129, 39,
41, 39, 114, 38, 37, 793, 43, 22, 129, 39,
37, 39, 42, 114, 39, 42, 129, 55, 42, 42,
39, 22, 45, 42, 22, 23, 42, 23, 23, 23,
23, 23, 23, 23, 47, 45, 776, 50, 98, 49,
23, 23, 23, 23, 47, 45, 795, 50, 98, 49,
50, 156, 98, 156, 23, 151, 49, 49, 50, 47,
49, 23, 47, 151, 51, 50, 49, 49, 51, 49,
52, 23, 51, 775, 52, 51, 74, 74, 74, 74,
74, 74, 74, 52, 115, 23, 78, 78, 78, 78,
78, 78, 78, 74, 79, 79, 105, 115, 133, 152,
105, 105, 774, 78, 133, 228, 81, 152, 81, 228,
74, 81, 81, 81, 81, 81, 81, 81, 79, 772,
78, 79, 80, 771, 80, 80, 80, 80, 80, 80,
80, 125, 135, 138, 125, 125, 143, 770, 125, 144,
125, 80, 150, 150, 170, 135, 769, 135, 80, 138,
138, 143, 144, 180, 163, 768, 163, 509, 80, 163,
163, 163, 163, 163, 163, 163, 180, 509, 170, 185,
185, 766, 80, 165, 165, 165, 165, 165, 165, 165,
216, 216, 216, 251, 251, 251, 166, 633, 166, 633,
165, 166, 166, 166, 166, 166, 166, 166, 168, 168,
168, 168, 168, 168, 168, 765, 764, 165, 169, 169,
169, 169, 169, 169, 169, 245, 256, 256, 256, 256,
256, 256, 256, 245, 257, 257, 257, 257, 257, 257,
257, 258, 258, 258, 258, 258, 258, 258, 259, 259,
259, 259, 259, 259, 259, 266, 266, 266, 278, 278,
278, 287, 287, 287, 291, 291, 291, 300, 300, 300,
341, 341, 341, 382, 382, 382, 393, 393, 393, 394,
394, 394, 395, 395, 395, 510, 382, 382, 446, 446,
446, 489, 489, 489, 763, 510, 526, 526, 526, 762,
760, 446, 446, 758, 489, 489, 560, 560, 607, 526,
526, 757, 526, 583, 583, 651, 755, 651, 607, 560,
608, 754, 608, 608, 752, 751, 583, 787, 787, 787,
787, 788, 788, 789, 789, 790, 748, 790, 790, 747,
746, 745, 744, 743, 742, 741, 738, 737, 736, 735,
734, 733, 732, 731, 728, 725, 724, 723, 722, 721,
719, 718, 717, 716, 714, 712, 709, 708, 707, 706,
704, 703, 702, 701, 700, 699, 698, 697, 696, 695,
694, 693, 692, 691, 690, 689, 688, 687, 686, 684,
683, 682, 681, 680, 679, 678, 677, 676, 675, 673,
672, 671, 670, 669, 668, 667, 666, 665, 664, 663,
662, 660, 659, 658, 657, 656, 655, 654, 652, 650,
648, 647, 646, 644, 643, 642, 641, 640, 639, 638,
637, 636, 635, 634, 632, 631, 630, 629, 628, 627,
625, 624, 623, 622, 620, 619, 618, 617, 616, 615,
614, 613, 612, 611, 610, 609, 604, 602, 601, 600,
596, 595, 594, 593, 592, 591, 590, 589, 588, 586,
585, 581, 580, 578, 577, 575, 574, 573, 572, 571,
570, 569, 565, 564, 563, 561, 559, 558, 557, 556,
555, 554, 553, 552, 551, 550, 548, 547, 542, 541,
540, 539, 537, 536, 534, 533, 532, 531, 530, 528,
527, 525, 524, 523, 522, 521, 520, 519, 518, 516,
515, 514, 513, 512, 508, 507, 506, 505, 504, 503,
500, 499, 498, 497, 496, 495, 494, 493, 492, 491,
490, 488, 487, 484, 479, 477, 476, 475, 473, 472,
469, 468, 467, 466, 455, 454, 453, 451, 450, 449,
448, 447, 444, 442, 441, 440, 438, 437, 436, 435,
433, 431, 430, 425, 424, 422, 421, 420, 419, 418,
417, 416, 415, 414, 413, 412, 410, 409, 408, 407,
406, 405, 404, 402, 401, 400, 399, 398, 397, 396,
392, 388, 387, 386, 383, 381, 371, 369, 365, 364,
363, 362, 360, 359, 357, 352, 351, 350, 349, 348,
347, 342, 340, 339, 338, 337, 336, 334, 333, 330,
329, 328, 327, 326, 325, 324, 323, 322, 321, 320,
319, 318, 317, 316, 315, 314, 313, 312, 311, 310,
309, 308, 307, 306, 305, 304, 301, 299, 298, 297,
296, 295, 294, 293, 292, 290, 286, 284, 283, 282,
281, 277, 276, 275, 274, 273, 272, 271, 270, 269,
265, 263, 262, 261, 255, 254, 253, 252, 250, 249,
248, 247, 246, 244, 243, 242, 241, 240, 239, 238,
237, 236, 235, 234, 233, 232, 231, 230, 229, 227,
226, 225, 224, 223, 222, 221, 220, 219, 218, 217,
52, 23, 51, 138, 52, 51, 74, 74, 78, 78,
79, 79, 105, 52, 115, 23, 105, 105, 135, 138,
138, 143, 133, 74, 74, 78, 78, 115, 133, 150,
150, 135, 779, 135, 79, 144, 143, 79, 80, 172,
80, 80, 80, 80, 80, 80, 80, 125, 144, 778,
125, 125, 777, 152, 125, 775, 125, 80, 774, 182,
81, 152, 81, 172, 80, 81, 81, 81, 81, 81,
81, 81, 182, 163, 80, 163, 166, 166, 163, 163,
163, 163, 163, 163, 163, 187, 187, 230, 80, 773,
167, 230, 167, 166, 166, 167, 167, 167, 167, 167,
167, 167, 170, 170, 170, 170, 170, 170, 170, 171,
171, 171, 171, 171, 171, 171, 218, 218, 218, 772,
247, 253, 253, 253, 269, 269, 269, 171, 247, 258,
258, 258, 258, 258, 258, 258, 259, 259, 259, 259,
259, 259, 259, 512, 171, 260, 260, 260, 260, 260,
260, 260, 771, 512, 259, 261, 261, 261, 261, 261,
261, 261, 281, 281, 281, 290, 290, 290, 294, 294,
294, 259, 769, 261, 303, 303, 303, 344, 344, 344,
385, 385, 385, 396, 396, 396, 397, 397, 397, 768,
261, 563, 563, 385, 385, 398, 398, 398, 449, 449,
449, 492, 492, 492, 563, 767, 513, 529, 529, 529,
766, 449, 449, 765, 492, 492, 513, 586, 586, 610,
529, 529, 611, 529, 611, 611, 636, 763, 636, 610,
586, 654, 761, 654, 790, 790, 790, 790, 790, 791,
791, 791, 792, 792, 792, 794, 760, 794, 794, 794,
796, 796, 758, 757, 755, 754, 751, 750, 749, 748,
747, 746, 745, 744, 741, 740, 739, 738, 737, 736,
735, 734, 731, 728, 727, 726, 725, 724, 722, 721,
720, 719, 717, 715, 712, 711, 710, 709, 707, 706,
705, 704, 703, 702, 701, 700, 699, 698, 697, 696,
695, 694, 693, 692, 691, 690, 689, 687, 686, 685,
684, 683, 682, 681, 680, 679, 678, 676, 675, 674,
673, 672, 671, 670, 669, 668, 667, 666, 665, 663,
662, 661, 660, 659, 658, 657, 655, 653, 651, 650,
649, 647, 646, 645, 644, 643, 642, 641, 640, 639,
638, 637, 635, 634, 633, 632, 631, 630, 628, 627,
626, 625, 623, 622, 621, 620, 619, 618, 617, 616,
615, 614, 613, 612, 607, 605, 604, 603, 599, 598,
597, 596, 595, 594, 593, 592, 591, 589, 588, 584,
583, 581, 580, 578, 577, 576, 575, 574, 573, 572,
568, 567, 566, 564, 562, 561, 560, 559, 558, 557,
556, 555, 554, 553, 551, 550, 545, 544, 543, 542,
540, 539, 537, 536, 535, 534, 533, 531, 530, 528,
527, 526, 525, 524, 523, 522, 521, 519, 518, 517,
516, 515, 511, 510, 509, 508, 507, 506, 503, 502,
501, 500, 499, 498, 497, 496, 495, 494, 493, 491,
490, 487, 482, 480, 479, 478, 476, 475, 472, 471,
470, 469, 458, 457, 456, 454, 453, 452, 451, 450,
447, 445, 444, 443, 441, 440, 439, 438, 436, 434,
433, 428, 427, 425, 424, 423, 422, 421, 420, 419,
418, 417, 416, 415, 413, 412, 411, 410, 409, 408,
407, 405, 404, 403, 402, 401, 400, 399, 395, 391,
390, 389, 386, 384, 374, 372, 368, 367, 366, 365,
363, 362, 360, 355, 354, 353, 352, 351, 350, 345,
343, 342, 341, 340, 339, 337, 336, 333, 332, 331,
330, 329, 328, 327, 326, 325, 324, 323, 322, 321,
320, 319, 318, 317, 316, 315, 314, 313, 312, 311,
310, 309, 308, 307, 304, 302, 301, 300, 299, 298,
297, 296, 295, 293, 289, 287, 286, 285, 284, 280,
279, 278, 277, 276, 275, 274, 273, 272, 268, 266,
265, 264, 257, 256, 255, 254, 252, 251, 250, 249,
248, 246, 245, 244, 243, 242, 241, 240, 239, 238,
237, 236, 235, 234, 233, 232, 231, 229, 228, 227,
226, 225, 224, 223, 222, 221, 220, 219, 217, 216,
215, 214, 213, 212, 211, 210, 209, 208, 207, 206,
205, 204, 203, 202, 201, 200, 199, 197, 196, 195,
194, 193, 192, 191, 190, 189, 188, 187, 186, 184,
183, 182, 181, 179, 178, 177, 176, 175, 173, 158,
157, 155, 154, 153, 149, 148, 147, 146, 145, 142,
141, 140, 139, 137, 136, 134, 132, 131, 130, 128,
127, 126, 124, 123, 121, 120, 119, 118, 117, 116,
113, 112, 111, 110, 109, 108, 107, 106, 104, 103,
102, 101, 100, 99, 97, 96, 92, 88, 60, 48,
46, 40, 27, 24, 16, 11, 7, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786,
786, 786, 786, 786, 786, 786, 786, 786, 786, 786
205, 204, 203, 202, 201, 199, 198, 197, 196, 195,
194, 193, 192, 191, 190, 189, 188, 186, 185, 184,
183, 181, 180, 179, 178, 177, 175, 158, 157, 155,
154, 153, 149, 148, 147, 146, 145, 142, 141, 140,
139, 137, 136, 134, 132, 131, 130, 128, 127, 126,
124, 123, 121, 120, 119, 118, 117, 116, 113, 112,
111, 110, 109, 108, 107, 106, 104, 103, 102, 101,
100, 99, 97, 96, 92, 88, 60, 48, 46, 40,
27, 24, 16, 11, 7, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789, 789, 789,
789, 789, 789, 789, 789, 789, 789, 789
} ;
/* Table of booleans, true if rule could match eol. */
static yyconst flex_int32_t yy_rule_can_match_eol[232] =
static yyconst flex_int32_t yy_rule_can_match_eol[235] =
{ 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,
......@@ -968,7 +968,7 @@ static yyconst flex_int32_t yy_rule_can_match_eol[232] =
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, 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.
......@@ -1014,6 +1014,7 @@ static int ES2_reserved_ES3_keyword(TParseContext *context, int token);
static int ES2_keyword_ES3_reserved(TParseContext *context, int token);
static int ES2_ident_ES3_keyword(TParseContext *context, int token);
static int uint_constant(TParseContext *context);
static int floatsuffix_check(TParseContext* context);
#define INITIAL 0
#define COMMENT 1
......@@ -1299,13 +1300,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 >= 787 )
if ( yy_current_state >= 790 )
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 != 786 );
while ( yy_current_state != 789 );
yy_cp = yyg->yy_last_accepting_cpos;
yy_current_state = yyg->yy_last_accepting_state;
......@@ -1797,198 +1798,210 @@ YY_RULE_SETUP
YY_BREAK
case 182:
YY_RULE_SETUP
{ return(ADD_ASSIGN); }
{ return floatsuffix_check(context); }
YY_BREAK
case 183:
YY_RULE_SETUP
{ return(SUB_ASSIGN); }
{ return floatsuffix_check(context); }
YY_BREAK
case 184:
YY_RULE_SETUP
{ return(MUL_ASSIGN); }
{ return floatsuffix_check(context); }
YY_BREAK
case 185:
YY_RULE_SETUP
{ return(DIV_ASSIGN); }
{ return(ADD_ASSIGN); }
YY_BREAK
case 186:
YY_RULE_SETUP
{ return(MOD_ASSIGN); }
{ return(SUB_ASSIGN); }
YY_BREAK
case 187:
YY_RULE_SETUP
{ return(LEFT_ASSIGN); }
{ return(MUL_ASSIGN); }
YY_BREAK
case 188:
YY_RULE_SETUP
{ return(RIGHT_ASSIGN); }
{ return(DIV_ASSIGN); }
YY_BREAK
case 189:
YY_RULE_SETUP
{ return(AND_ASSIGN); }
{ return(MOD_ASSIGN); }
YY_BREAK
case 190:
YY_RULE_SETUP
{ return(XOR_ASSIGN); }
{ return(LEFT_ASSIGN); }
YY_BREAK
case 191:
YY_RULE_SETUP
{ return(OR_ASSIGN); }
{ return(RIGHT_ASSIGN); }
YY_BREAK
case 192:
YY_RULE_SETUP
{ return(INC_OP); }
{ return(AND_ASSIGN); }
YY_BREAK
case 193:
YY_RULE_SETUP
{ return(DEC_OP); }
{ return(XOR_ASSIGN); }
YY_BREAK
case 194:
YY_RULE_SETUP
{ return(AND_OP); }
{ return(OR_ASSIGN); }
YY_BREAK
case 195:
YY_RULE_SETUP
{ return(OR_OP); }
{ return(INC_OP); }
YY_BREAK
case 196:
YY_RULE_SETUP
{ return(XOR_OP); }
{ return(DEC_OP); }
YY_BREAK
case 197:
YY_RULE_SETUP
{ return(LE_OP); }
{ return(AND_OP); }
YY_BREAK
case 198:
YY_RULE_SETUP
{ return(GE_OP); }
{ return(OR_OP); }
YY_BREAK
case 199:
YY_RULE_SETUP
{ return(EQ_OP); }
{ return(XOR_OP); }
YY_BREAK
case 200:
YY_RULE_SETUP
{ return(NE_OP); }
{ return(LE_OP); }
YY_BREAK
case 201:
YY_RULE_SETUP
{ return(LEFT_OP); }
{ return(GE_OP); }
YY_BREAK
case 202:
YY_RULE_SETUP
{ return(RIGHT_OP); }
{ return(EQ_OP); }
YY_BREAK
case 203:
YY_RULE_SETUP
{ context->lexAfterType = false; return(SEMICOLON); }
{ return(NE_OP); }
YY_BREAK
case 204:
YY_RULE_SETUP
{ context->lexAfterType = false; return(LEFT_BRACE); }
{ return(LEFT_OP); }
YY_BREAK
case 205:
YY_RULE_SETUP
{ return(RIGHT_BRACE); }
{ return(RIGHT_OP); }
YY_BREAK
case 206:
YY_RULE_SETUP
{ if (context->inTypeParen) context->lexAfterType = false; return(COMMA); }
{ context->lexAfterType = false; return(SEMICOLON); }
YY_BREAK
case 207:
YY_RULE_SETUP
{ return(COLON); }
{ context->lexAfterType = false; return(LEFT_BRACE); }
YY_BREAK
case 208:
YY_RULE_SETUP
{ context->lexAfterType = false; return(EQUAL); }
{ return(RIGHT_BRACE); }
YY_BREAK
case 209:
YY_RULE_SETUP
{ context->lexAfterType = false; context->inTypeParen = true; return(LEFT_PAREN); }
{ if (context->inTypeParen) context->lexAfterType = false; return(COMMA); }
YY_BREAK
case 210:
YY_RULE_SETUP
{ context->inTypeParen = false; return(RIGHT_PAREN); }
{ return(COLON); }
YY_BREAK
case 211:
YY_RULE_SETUP
{ return(LEFT_BRACKET); }
{ context->lexAfterType = false; return(EQUAL); }
YY_BREAK
case 212:
YY_RULE_SETUP
{ return(RIGHT_BRACKET); }
{ context->lexAfterType = false; context->inTypeParen = true; return(LEFT_PAREN); }
YY_BREAK
case 213:
YY_RULE_SETUP
{ BEGIN(FIELDS); return(DOT); }
{ context->inTypeParen = false; return(RIGHT_PAREN); }
YY_BREAK
case 214:
YY_RULE_SETUP
{ return(BANG); }
{ return(LEFT_BRACKET); }
YY_BREAK
case 215:
YY_RULE_SETUP
{ return(DASH); }
{ return(RIGHT_BRACKET); }
YY_BREAK
case 216:
YY_RULE_SETUP
{ return(TILDE); }
{ BEGIN(FIELDS); return(DOT); }
YY_BREAK
case 217:
YY_RULE_SETUP
{ return(PLUS); }
{ return(BANG); }
YY_BREAK
case 218:
YY_RULE_SETUP
{ return(STAR); }
{ return(DASH); }
YY_BREAK
case 219:
YY_RULE_SETUP
{ return(SLASH); }
{ return(TILDE); }
YY_BREAK
case 220:
YY_RULE_SETUP
{ return(PERCENT); }
{ return(PLUS); }
YY_BREAK
case 221:
YY_RULE_SETUP
{ return(LEFT_ANGLE); }
{ return(STAR); }
YY_BREAK
case 222:
YY_RULE_SETUP
{ return(RIGHT_ANGLE); }
{ return(SLASH); }
YY_BREAK
case 223:
YY_RULE_SETUP
{ return(VERTICAL_BAR); }
{ return(PERCENT); }
YY_BREAK
case 224:
YY_RULE_SETUP
{ return(CARET); }
{ return(LEFT_ANGLE); }
YY_BREAK
case 225:
YY_RULE_SETUP
{ return(AMPERSAND); }
{ return(RIGHT_ANGLE); }
YY_BREAK
case 226:
YY_RULE_SETUP
{ return(QUESTION); }
{ return(VERTICAL_BAR); }
YY_BREAK
case 227:
YY_RULE_SETUP
{ return(CARET); }
YY_BREAK
case 228:
YY_RULE_SETUP
{ return(AMPERSAND); }
YY_BREAK
case 229:
YY_RULE_SETUP
{ return(QUESTION); }
YY_BREAK
case 230:
YY_RULE_SETUP
{
BEGIN(INITIAL);
yylval->lex.string = NewPoolTString(yytext);
return FIELD_SELECTION;
}
YY_BREAK
case 228:
case 231:
YY_RULE_SETUP
{}
YY_BREAK
case 229:
/* rule 229 can match eol */
case 232:
/* rule 232 can match eol */
YY_RULE_SETUP
{ }
YY_BREAK
......@@ -1997,11 +2010,11 @@ case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(FIELDS):
{ context->AfterEOF = true; yyterminate(); }
YY_BREAK
case 230:
case 233:
YY_RULE_SETUP
{ context->warning(yylineno, "Unknown char", yytext, ""); return 0; }
YY_BREAK
case 231:
case 234:
YY_RULE_SETUP
ECHO;
YY_BREAK
......@@ -2297,7 +2310,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 >= 787 )
if ( yy_current_state >= 790 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
......@@ -2326,11 +2339,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 >= 787 )
if ( yy_current_state >= 790 )
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 == 786);
yy_is_jam = (yy_current_state == 789);
return yy_is_jam ? 0 : yy_current_state;
}
......@@ -3258,6 +3271,8 @@ int uint_constant(TParseContext *context)
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
yyscan_t yyscanner = (yyscan_t) context->scanner;
yylval->lex.u = static_cast<unsigned int>(strtol(yytext, 0, 0));
if (context->shaderVersion < 300)
{
context->error(yylineno, "Unsigned integers are unsupported prior to GLSL ES 3.00", yytext, "");
......@@ -3265,10 +3280,25 @@ int uint_constant(TParseContext *context)
return 0;
}
yylval->lex.u = static_cast<unsigned int>(strtol(yytext, 0, 0));
return UINTCONSTANT;
}
int floatsuffix_check(TParseContext* context)
{
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
yylval->lex.f = static_cast<float>(atof_dot(yytext));
if (context->shaderVersion < 300)
{
context->error(yylineno, "Floating-point suffix unsupported prior to GLSL ES 3.00", yytext);
context->recover();
return 0;
}
return(FLOATCONSTANT);
}
void yyerror(TParseContext* context, const char* reason) {
struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
......
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