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