Add support for unsigned integer literals in the shading language.

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