|
|
@@ -300,32 +300,28 @@ static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
|
|
|
*yy_cp = '\0'; \
|
|
|
yy_c_buf_p = yy_cp;
|
|
|
|
|
|
-#define YY_NUM_RULES 52
|
|
|
-#define YY_END_OF_BUFFER 53
|
|
|
-static yyconst short int yy_accept[201] =
|
|
|
+#define YY_NUM_RULES 44
|
|
|
+#define YY_END_OF_BUFFER 45
|
|
|
+static yyconst short int yy_accept[165] =
|
|
|
{ 0,
|
|
|
- 0, 0, 53, 51, 2, 1, 47, 48, 51, 51,
|
|
|
- 51, 43, 43, 49, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 50, 50, 50, 50, 50, 50, 1, 0, 44,
|
|
|
- 46, 4, 3, 46, 43, 45, 50, 50, 50, 50,
|
|
|
- 50, 50, 50, 38, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 50, 50, 50, 50, 50, 50, 50, 0, 3,
|
|
|
- 45, 50, 50, 50, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 50, 50, 50, 50, 50, 36, 37, 50, 50,
|
|
|
- 50, 50, 50, 0, 46, 50, 24, 50, 50, 11,
|
|
|
- 33, 50, 50, 50, 50, 50, 7, 50, 50, 50,
|
|
|
-
|
|
|
- 50, 14, 50, 50, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 13, 50, 50, 50, 50, 50, 50, 50, 15,
|
|
|
- 16, 17, 50, 50, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 50, 18, 42, 25, 50, 40, 39, 5, 50,
|
|
|
- 50, 8, 50, 50, 50, 50, 50, 23, 6, 10,
|
|
|
- 50, 19, 20, 21, 50, 50, 12, 22, 50, 50,
|
|
|
- 50, 41, 50, 9, 50, 50, 50, 50, 50, 50,
|
|
|
- 50, 50, 34, 50, 50, 50, 50, 35, 50, 50,
|
|
|
- 26, 50, 50, 50, 50, 27, 28, 50, 50, 50,
|
|
|
- 29, 30, 31, 50, 50, 50, 50, 50, 32, 0
|
|
|
-
|
|
|
+ 0, 0, 45, 43, 2, 1, 39, 40, 43, 43,
|
|
|
+ 43, 35, 35, 41, 42, 42, 42, 42, 42, 42,
|
|
|
+ 42, 42, 42, 42, 1, 0, 36, 38, 4, 3,
|
|
|
+ 38, 35, 37, 42, 42, 42, 42, 42, 42, 42,
|
|
|
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 0,
|
|
|
+ 3, 37, 42, 42, 42, 42, 42, 42, 42, 42,
|
|
|
+ 42, 42, 42, 42, 42, 42, 42, 0, 38, 25,
|
|
|
+ 42, 12, 34, 42, 42, 42, 7, 42, 42, 42,
|
|
|
+ 42, 15, 42, 42, 42, 42, 42, 42, 42, 14,
|
|
|
+ 42, 42, 42, 42, 16, 17, 18, 42, 42, 42,
|
|
|
+
|
|
|
+ 42, 42, 42, 42, 42, 42, 19, 26, 5, 42,
|
|
|
+ 42, 8, 42, 42, 42, 42, 24, 6, 11, 42,
|
|
|
+ 20, 21, 22, 42, 13, 23, 42, 42, 42, 9,
|
|
|
+ 10, 42, 42, 42, 42, 42, 42, 42, 42, 42,
|
|
|
+ 42, 42, 42, 42, 27, 42, 42, 42, 42, 28,
|
|
|
+ 29, 42, 42, 42, 30, 31, 32, 42, 42, 42,
|
|
|
+ 42, 42, 33, 0
|
|
|
} ;
|
|
|
|
|
|
static yyconst int yy_ec[256] =
|
|
|
@@ -342,8 +338,8 @@ static yyconst int yy_ec[256] =
|
|
|
1, 1, 1, 1, 21, 1, 22, 23, 24, 25,
|
|
|
|
|
|
26, 27, 28, 29, 30, 21, 31, 32, 33, 34,
|
|
|
- 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
|
|
- 45, 21, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
+ 35, 36, 21, 37, 38, 39, 40, 21, 41, 42,
|
|
|
+ 43, 21, 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,
|
|
|
@@ -360,137 +356,123 @@ static yyconst int yy_ec[256] =
|
|
|
1, 1, 1, 1, 1
|
|
|
} ;
|
|
|
|
|
|
-static yyconst int yy_meta[46] =
|
|
|
+static yyconst int yy_meta[44] =
|
|
|
{ 0,
|
|
|
1, 1, 2, 1, 1, 1, 3, 4, 1, 5,
|
|
|
5, 5, 5, 5, 5, 5, 5, 1, 6, 6,
|
|
|
7, 6, 6, 6, 6, 6, 6, 7, 7, 7,
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
|
- 7, 7, 7, 8, 7
|
|
|
+ 7, 8, 7
|
|
|
} ;
|
|
|
|
|
|
-static yyconst short int yy_base[209] =
|
|
|
+static yyconst short int yy_base[173] =
|
|
|
{ 0,
|
|
|
- 0, 0, 244, 245, 245, 0, 245, 245, 235, 0,
|
|
|
- 40, 39, 40, 245, 0, 212, 18, 29, 29, 22,
|
|
|
- 29, 198, 228, 42, 26, 194, 208, 0, 0, 229,
|
|
|
- 39, 245, 0, 0, 0, 0, 0, 198, 200, 41,
|
|
|
- 195, 211, 32, 0, 200, 204, 195, 194, 192, 187,
|
|
|
- 192, 189, 191, 186, 184, 191, 184, 185, 211, 0,
|
|
|
- 0, 191, 193, 193, 192, 187, 174, 185, 184, 187,
|
|
|
- 186, 185, 173, 170, 61, 165, 0, 0, 162, 45,
|
|
|
- 162, 175, 160, 192, 191, 173, 183, 164, 169, 0,
|
|
|
- 0, 169, 158, 152, 149, 149, 0, 150, 171, 174,
|
|
|
-
|
|
|
- 171, 162, 157, 152, 147, 156, 155, 153, 74, 135,
|
|
|
- 164, 0, 151, 132, 148, 133, 139, 154, 129, 146,
|
|
|
- 145, 0, 128, 131, 126, 135, 122, 132, 134, 143,
|
|
|
- 146, 143, 134, 0, 0, 133, 0, 0, 0, 114,
|
|
|
- 139, 0, 114, 113, 112, 124, 122, 0, 0, 0,
|
|
|
- 120, 124, 51, 0, 107, 105, 0, 0, 105, 104,
|
|
|
- 119, 0, 115, 0, 101, 100, 107, 98, 95, 112,
|
|
|
- 111, 87, 0, 93, 92, 95, 106, 0, 82, 81,
|
|
|
- 0, 103, 101, 73, 61, 0, 0, 60, 49, 72,
|
|
|
- 0, 0, 0, 66, 44, 43, 58, 34, 0, 245,
|
|
|
-
|
|
|
- 92, 97, 52, 99, 103, 111, 115, 119
|
|
|
+ 0, 0, 209, 210, 210, 0, 210, 210, 200, 0,
|
|
|
+ 38, 37, 38, 210, 0, 16, 27, 26, 22, 24,
|
|
|
+ 181, 21, 163, 175, 0, 0, 196, 35, 210, 0,
|
|
|
+ 0, 0, 0, 0, 168, 176, 163, 178, 167, 171,
|
|
|
+ 162, 161, 159, 155, 150, 155, 161, 154, 155, 181,
|
|
|
+ 0, 0, 164, 164, 159, 147, 161, 160, 159, 147,
|
|
|
+ 144, 52, 137, 34, 138, 150, 136, 167, 166, 159,
|
|
|
+ 140, 0, 0, 132, 129, 129, 0, 130, 150, 153,
|
|
|
+ 150, 141, 127, 127, 136, 135, 133, 59, 145, 0,
|
|
|
+ 118, 123, 138, 114, 130, 129, 0, 113, 112, 120,
|
|
|
+
|
|
|
+ 108, 117, 119, 128, 131, 128, 119, 0, 0, 101,
|
|
|
+ 125, 0, 101, 100, 99, 110, 0, 0, 0, 107,
|
|
|
+ 111, 44, 0, 95, 0, 0, 94, 93, 107, 0,
|
|
|
+ 0, 91, 90, 96, 88, 102, 101, 79, 84, 83,
|
|
|
+ 85, 96, 74, 72, 0, 83, 76, 58, 43, 0,
|
|
|
+ 0, 40, 39, 64, 0, 0, 0, 56, 40, 36,
|
|
|
+ 49, 24, 0, 210, 84, 89, 46, 91, 95, 103,
|
|
|
+ 107, 111
|
|
|
} ;
|
|
|
|
|
|
-static yyconst short int yy_def[209] =
|
|
|
+static yyconst short int yy_def[173] =
|
|
|
{ 0,
|
|
|
- 200, 1, 200, 200, 200, 201, 200, 200, 202, 203,
|
|
|
- 200, 204, 204, 200, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 201, 203, 202,
|
|
|
- 203, 200, 206, 31, 13, 207, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 208, 206,
|
|
|
- 207, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 208, 208, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
-
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
|
|
|
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 0,
|
|
|
-
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200
|
|
|
+ 164, 1, 164, 164, 164, 165, 164, 164, 166, 167,
|
|
|
+ 164, 168, 168, 164, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 165, 167, 166, 167, 164, 170,
|
|
|
+ 28, 13, 171, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 172,
|
|
|
+ 170, 171, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 172, 172, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
|
|
|
+ 169, 169, 169, 0, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164
|
|
|
} ;
|
|
|
|
|
|
-static yyconst short int yy_nxt[291] =
|
|
|
+static yyconst short int yy_nxt[254] =
|
|
|
{ 0,
|
|
|
4, 5, 6, 7, 8, 4, 9, 10, 11, 12,
|
|
|
13, 13, 13, 13, 13, 13, 13, 14, 15, 15,
|
|
|
- 15, 16, 17, 18, 19, 15, 20, 15, 15, 21,
|
|
|
- 15, 15, 15, 15, 22, 23, 15, 24, 25, 26,
|
|
|
- 27, 15, 15, 15, 15, 32, 34, 34, 33, 39,
|
|
|
- 41, 44, 45, 47, 46, 40, 31, 42, 59, 48,
|
|
|
- 43, 49, 50, 53, 59, 55, 64, 54, 56, 68,
|
|
|
- 69, 99, 166, 100, 105, 65, 101, 102, 199, 198,
|
|
|
- 197, 196, 36, 200, 130, 106, 131, 195, 194, 132,
|
|
|
- 133, 167, 28, 193, 28, 28, 28, 28, 28, 28,
|
|
|
-
|
|
|
- 30, 30, 35, 35, 192, 191, 35, 37, 37, 37,
|
|
|
- 37, 60, 190, 60, 60, 60, 60, 60, 60, 61,
|
|
|
- 61, 85, 189, 85, 188, 187, 186, 185, 184, 183,
|
|
|
- 182, 181, 180, 179, 178, 177, 176, 175, 174, 173,
|
|
|
- 172, 171, 170, 169, 168, 165, 164, 163, 162, 161,
|
|
|
- 160, 159, 158, 157, 156, 155, 154, 153, 152, 151,
|
|
|
- 150, 149, 148, 147, 146, 145, 144, 143, 142, 141,
|
|
|
- 140, 139, 138, 137, 136, 135, 134, 129, 128, 127,
|
|
|
- 126, 125, 124, 123, 122, 121, 120, 119, 118, 117,
|
|
|
- 116, 115, 114, 113, 112, 111, 110, 200, 200, 109,
|
|
|
-
|
|
|
- 108, 107, 104, 103, 98, 97, 96, 95, 94, 93,
|
|
|
- 92, 91, 90, 89, 88, 87, 86, 84, 83, 82,
|
|
|
- 81, 80, 79, 78, 77, 76, 75, 74, 73, 72,
|
|
|
- 71, 70, 67, 66, 63, 62, 34, 58, 57, 52,
|
|
|
- 51, 38, 29, 200, 3, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200
|
|
|
+ 15, 15, 16, 17, 18, 15, 19, 15, 15, 20,
|
|
|
+ 21, 15, 15, 15, 15, 15, 15, 22, 23, 24,
|
|
|
+ 15, 15, 15, 29, 31, 31, 30, 35, 37, 39,
|
|
|
+ 28, 40, 36, 41, 50, 38, 43, 44, 42, 46,
|
|
|
+ 50, 47, 79, 84, 80, 133, 163, 81, 82, 104,
|
|
|
+ 162, 105, 161, 85, 106, 107, 160, 159, 33, 164,
|
|
|
+ 158, 157, 156, 134, 25, 155, 25, 25, 25, 25,
|
|
|
+ 25, 25, 27, 27, 32, 32, 154, 153, 32, 34,
|
|
|
+
|
|
|
+ 34, 34, 34, 51, 152, 51, 51, 51, 51, 51,
|
|
|
+ 51, 52, 52, 69, 151, 69, 150, 149, 148, 147,
|
|
|
+ 146, 145, 144, 143, 142, 141, 140, 139, 138, 137,
|
|
|
+ 136, 135, 132, 131, 130, 129, 128, 127, 126, 125,
|
|
|
+ 124, 123, 122, 121, 120, 119, 118, 117, 116, 115,
|
|
|
+ 114, 113, 112, 111, 110, 109, 108, 103, 102, 101,
|
|
|
+ 100, 99, 98, 97, 96, 95, 94, 93, 92, 91,
|
|
|
+ 90, 89, 164, 164, 88, 87, 86, 83, 78, 77,
|
|
|
+ 76, 75, 74, 73, 72, 71, 70, 68, 67, 66,
|
|
|
+ 65, 64, 63, 62, 61, 60, 59, 58, 57, 56,
|
|
|
+
|
|
|
+ 55, 54, 53, 31, 49, 48, 45, 26, 164, 3,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164
|
|
|
} ;
|
|
|
|
|
|
-static yyconst short int yy_chk[291] =
|
|
|
+static yyconst short int yy_chk[254] =
|
|
|
{ 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,
|
|
|
- 1, 1, 1, 1, 1, 11, 12, 13, 11, 17,
|
|
|
- 18, 19, 19, 20, 19, 17, 203, 18, 31, 20,
|
|
|
- 18, 21, 21, 24, 31, 25, 40, 24, 25, 43,
|
|
|
- 43, 75, 153, 75, 80, 40, 75, 75, 198, 197,
|
|
|
- 196, 195, 12, 13, 109, 80, 109, 194, 190, 109,
|
|
|
- 109, 153, 201, 189, 201, 201, 201, 201, 201, 201,
|
|
|
-
|
|
|
- 202, 202, 204, 204, 188, 185, 204, 205, 205, 205,
|
|
|
- 205, 206, 184, 206, 206, 206, 206, 206, 206, 207,
|
|
|
- 207, 208, 183, 208, 182, 180, 179, 177, 176, 175,
|
|
|
- 174, 172, 171, 170, 169, 168, 167, 166, 165, 163,
|
|
|
- 161, 160, 159, 156, 155, 152, 151, 147, 146, 145,
|
|
|
- 144, 143, 141, 140, 136, 133, 132, 131, 130, 129,
|
|
|
- 128, 127, 126, 125, 124, 123, 121, 120, 119, 118,
|
|
|
- 117, 116, 115, 114, 113, 111, 110, 108, 107, 106,
|
|
|
- 105, 104, 103, 102, 101, 100, 99, 98, 96, 95,
|
|
|
- 94, 93, 92, 89, 88, 87, 86, 85, 84, 83,
|
|
|
-
|
|
|
- 82, 81, 79, 76, 74, 73, 72, 71, 70, 69,
|
|
|
- 68, 67, 66, 65, 64, 63, 62, 59, 58, 57,
|
|
|
- 56, 55, 54, 53, 52, 51, 50, 49, 48, 47,
|
|
|
- 46, 45, 42, 41, 39, 38, 30, 27, 26, 23,
|
|
|
- 22, 16, 9, 3, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
|
- 200, 200, 200, 200, 200, 200, 200, 200, 200, 200
|
|
|
+ 1, 1, 1, 11, 12, 13, 11, 16, 17, 18,
|
|
|
+ 167, 18, 16, 19, 28, 17, 20, 20, 19, 22,
|
|
|
+ 28, 22, 62, 64, 62, 122, 162, 62, 62, 88,
|
|
|
+ 161, 88, 160, 64, 88, 88, 159, 158, 12, 13,
|
|
|
+ 154, 153, 152, 122, 165, 149, 165, 165, 165, 165,
|
|
|
+ 165, 165, 166, 166, 168, 168, 148, 147, 168, 169,
|
|
|
+
|
|
|
+ 169, 169, 169, 170, 146, 170, 170, 170, 170, 170,
|
|
|
+ 170, 171, 171, 172, 144, 172, 143, 142, 141, 140,
|
|
|
+ 139, 138, 137, 136, 135, 134, 133, 132, 129, 128,
|
|
|
+ 127, 124, 121, 120, 116, 115, 114, 113, 111, 110,
|
|
|
+ 107, 106, 105, 104, 103, 102, 101, 100, 99, 98,
|
|
|
+ 96, 95, 94, 93, 92, 91, 89, 87, 86, 85,
|
|
|
+ 84, 83, 82, 81, 80, 79, 78, 76, 75, 74,
|
|
|
+ 71, 70, 69, 68, 67, 66, 65, 63, 61, 60,
|
|
|
+ 59, 58, 57, 56, 55, 54, 53, 50, 49, 48,
|
|
|
+ 47, 46, 45, 44, 43, 42, 41, 40, 39, 38,
|
|
|
+
|
|
|
+ 37, 36, 35, 27, 24, 23, 21, 9, 3, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
|
|
|
+ 164, 164, 164
|
|
|
} ;
|
|
|
|
|
|
static yy_state_type yy_last_accepting_state;
|
|
|
@@ -516,6 +498,7 @@ char *yytext;
|
|
|
#include "dcLexerDefs.h"
|
|
|
#include "dcParserDefs.h"
|
|
|
#include "dcParser.h"
|
|
|
+#include "dcFile.h"
|
|
|
#include "dcindent.h"
|
|
|
|
|
|
|
|
|
@@ -903,7 +886,7 @@ inline void accept() {
|
|
|
col_number += yyleng;
|
|
|
}
|
|
|
|
|
|
-#line 908 "lex.yy.c"
|
|
|
+#line 891 "lex.yy.c"
|
|
|
|
|
|
/* Macros after this point can all be overridden by user definitions in
|
|
|
* section 1.
|
|
|
@@ -1054,7 +1037,7 @@ YY_DECL
|
|
|
register char *yy_cp = NULL, *yy_bp = NULL;
|
|
|
register int yy_act;
|
|
|
|
|
|
-#line 406 "dcLexer.lxx"
|
|
|
+#line 407 "dcLexer.lxx"
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1065,7 +1048,7 @@ YY_DECL
|
|
|
}
|
|
|
|
|
|
|
|
|
-#line 1070 "lex.yy.c"
|
|
|
+#line 1053 "lex.yy.c"
|
|
|
|
|
|
if ( yy_init )
|
|
|
{
|
|
|
@@ -1116,13 +1099,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 >= 201 )
|
|
|
+ if ( yy_current_state >= 165 )
|
|
|
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_base[yy_current_state] != 245 );
|
|
|
+ while ( yy_base[yy_current_state] != 210 );
|
|
|
|
|
|
yy_find_action:
|
|
|
yy_act = yy_accept[yy_current_state];
|
|
|
@@ -1150,7 +1133,7 @@ do_action: /* This label is used only to access EOF actions. */
|
|
|
|
|
|
case 1:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 416 "dcLexer.lxx"
|
|
|
+#line 417 "dcLexer.lxx"
|
|
|
{
|
|
|
// New line. Save a copy of the line so we can print it out for the
|
|
|
// benefit of the user in case we get an error.
|
|
|
@@ -1167,7 +1150,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 2:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 430 "dcLexer.lxx"
|
|
|
+#line 431 "dcLexer.lxx"
|
|
|
{
|
|
|
// Eat whitespace.
|
|
|
accept();
|
|
|
@@ -1175,7 +1158,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 3:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 435 "dcLexer.lxx"
|
|
|
+#line 436 "dcLexer.lxx"
|
|
|
{
|
|
|
// Eat C++-style comments.
|
|
|
accept();
|
|
|
@@ -1183,7 +1166,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 4:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 440 "dcLexer.lxx"
|
|
|
+#line 441 "dcLexer.lxx"
|
|
|
{
|
|
|
// Eat C-style comments.
|
|
|
accept();
|
|
|
@@ -1192,7 +1175,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 5:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 447 "dcLexer.lxx"
|
|
|
+#line 448 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
return KW_DCLASS;
|
|
|
@@ -1200,7 +1183,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 6:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 452 "dcLexer.lxx"
|
|
|
+#line 453 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
return KW_STRUCT;
|
|
|
@@ -1208,7 +1191,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 7:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 457 "dcLexer.lxx"
|
|
|
+#line 458 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
return KW_FROM;
|
|
|
@@ -1216,7 +1199,7 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 8:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 462 "dcLexer.lxx"
|
|
|
+#line 463 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
return KW_IMPORT;
|
|
|
@@ -1224,279 +1207,215 @@ YY_RULE_SETUP
|
|
|
YY_BREAK
|
|
|
case 9:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 467 "dcLexer.lxx"
|
|
|
+#line 468 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_TYPEDEF;
|
|
|
+ return KW_KEYWORD;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 10:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 472 "dcLexer.lxx"
|
|
|
+#line 473 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_SWITCH;
|
|
|
+ return KW_TYPEDEF;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 11:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 477 "dcLexer.lxx"
|
|
|
+#line 478 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_CASE;
|
|
|
+ return KW_SWITCH;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 12:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 482 "dcLexer.lxx"
|
|
|
+#line 483 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_DEFAULT;
|
|
|
+ return KW_CASE;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 13:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 487 "dcLexer.lxx"
|
|
|
+#line 488 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_BREAK;
|
|
|
+ return KW_DEFAULT;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 14:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 492 "dcLexer.lxx"
|
|
|
+#line 493 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT8;
|
|
|
+ return KW_BREAK;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 15:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 497 "dcLexer.lxx"
|
|
|
+#line 498 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT16;
|
|
|
+ return KW_INT8;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 16:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 502 "dcLexer.lxx"
|
|
|
+#line 503 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT32;
|
|
|
+ return KW_INT16;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 17:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 507 "dcLexer.lxx"
|
|
|
+#line 508 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT64;
|
|
|
+ return KW_INT32;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 18:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 512 "dcLexer.lxx"
|
|
|
+#line 513 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT8;
|
|
|
+ return KW_INT64;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 19:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 517 "dcLexer.lxx"
|
|
|
+#line 518 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT16;
|
|
|
+ return KW_UINT8;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 20:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 522 "dcLexer.lxx"
|
|
|
+#line 523 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT32;
|
|
|
+ return KW_UINT16;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 21:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 527 "dcLexer.lxx"
|
|
|
+#line 528 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT64;
|
|
|
+ return KW_UINT32;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 22:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 532 "dcLexer.lxx"
|
|
|
+#line 533 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_FLOAT64;
|
|
|
+ return KW_UINT64;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 23:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 537 "dcLexer.lxx"
|
|
|
+#line 538 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_STRING;
|
|
|
+ return KW_FLOAT64;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 24:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 542 "dcLexer.lxx"
|
|
|
+#line 543 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_BLOB;
|
|
|
+ return KW_STRING;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 25:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 547 "dcLexer.lxx"
|
|
|
+#line 548 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_BLOB32;
|
|
|
+ return KW_BLOB;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 26:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 552 "dcLexer.lxx"
|
|
|
+#line 553 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT8ARRAY;
|
|
|
+ return KW_BLOB32;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 27:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 557 "dcLexer.lxx"
|
|
|
+#line 558 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT16ARRAY;
|
|
|
+ return KW_INT8ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 28:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 562 "dcLexer.lxx"
|
|
|
+#line 563 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_INT32ARRAY;
|
|
|
+ return KW_INT16ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 29:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 567 "dcLexer.lxx"
|
|
|
+#line 568 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT8ARRAY;
|
|
|
+ return KW_INT32ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 30:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 572 "dcLexer.lxx"
|
|
|
+#line 573 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT16ARRAY;
|
|
|
+ return KW_UINT8ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 31:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 577 "dcLexer.lxx"
|
|
|
+#line 578 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT32ARRAY;
|
|
|
+ return KW_UINT16ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 32:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 582 "dcLexer.lxx"
|
|
|
+#line 583 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_UINT32UINT8ARRAY;
|
|
|
+ return KW_UINT32ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 33:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 587 "dcLexer.lxx"
|
|
|
+#line 588 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_CHAR;
|
|
|
+ return KW_UINT32UINT8ARRAY;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 34:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 592 "dcLexer.lxx"
|
|
|
+#line 593 "dcLexer.lxx"
|
|
|
{
|
|
|
accept();
|
|
|
- return KW_REQUIRED;
|
|
|
+ return KW_CHAR;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
case 35:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 597 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_BROADCAST;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 36:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 602 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_P2P;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 37:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 607 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_RAM;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 38:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 612 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_DB;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 39:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 617 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_CLSEND;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 40:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 622 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_CLRECV;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 41:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 627 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_OWNSEND;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 42:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 632 "dcLexer.lxx"
|
|
|
-{
|
|
|
- accept();
|
|
|
- return KW_AIRECV;
|
|
|
-}
|
|
|
- YY_BREAK
|
|
|
-case 43:
|
|
|
-YY_RULE_SETUP
|
|
|
-#line 637 "dcLexer.lxx"
|
|
|
+#line 598 "dcLexer.lxx"
|
|
|
{
|
|
|
// An unsigned integer number.
|
|
|
accept();
|
|
|
@@ -1520,9 +1439,9 @@ YY_RULE_SETUP
|
|
|
return UNSIGNED_INTEGER;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 44:
|
|
|
+case 36:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 660 "dcLexer.lxx"
|
|
|
+#line 621 "dcLexer.lxx"
|
|
|
{
|
|
|
// A signed integer number.
|
|
|
accept();
|
|
|
@@ -1569,9 +1488,9 @@ YY_RULE_SETUP
|
|
|
return SIGNED_INTEGER;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 45:
|
|
|
+case 37:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 706 "dcLexer.lxx"
|
|
|
+#line 667 "dcLexer.lxx"
|
|
|
{
|
|
|
// A hexadecimal integer number.
|
|
|
accept();
|
|
|
@@ -1599,9 +1518,9 @@ YY_RULE_SETUP
|
|
|
return UNSIGNED_INTEGER;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 46:
|
|
|
+case 38:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 733 "dcLexer.lxx"
|
|
|
+#line 694 "dcLexer.lxx"
|
|
|
{
|
|
|
// A floating-point number.
|
|
|
accept();
|
|
|
@@ -1610,9 +1529,9 @@ YY_RULE_SETUP
|
|
|
return REAL;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 47:
|
|
|
+case 39:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 741 "dcLexer.lxx"
|
|
|
+#line 702 "dcLexer.lxx"
|
|
|
{
|
|
|
// Quoted string.
|
|
|
accept();
|
|
|
@@ -1620,9 +1539,9 @@ YY_RULE_SETUP
|
|
|
return STRING;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 48:
|
|
|
+case 40:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 748 "dcLexer.lxx"
|
|
|
+#line 709 "dcLexer.lxx"
|
|
|
{
|
|
|
// Single-quoted string.
|
|
|
accept();
|
|
|
@@ -1630,9 +1549,9 @@ YY_RULE_SETUP
|
|
|
return STRING;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 49:
|
|
|
+case 41:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 755 "dcLexer.lxx"
|
|
|
+#line 716 "dcLexer.lxx"
|
|
|
{
|
|
|
// Long hex string.
|
|
|
accept();
|
|
|
@@ -1640,31 +1559,39 @@ YY_RULE_SETUP
|
|
|
return HEX_STRING;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 50:
|
|
|
+case 42:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 762 "dcLexer.lxx"
|
|
|
+#line 723 "dcLexer.lxx"
|
|
|
{
|
|
|
- // Identifier.
|
|
|
+ // Identifier or keyword.
|
|
|
accept();
|
|
|
dcyylval.str = dcyytext;
|
|
|
+
|
|
|
+ if (dc_file != (DCFile *)NULL) {
|
|
|
+ const DCKeyword *keyword = dc_file->get_keyword_by_name(dcyylval.str);
|
|
|
+ if (keyword != (DCKeyword *)NULL) {
|
|
|
+ dcyylval.u.keyword = keyword;
|
|
|
+ return KEYWORD;
|
|
|
+ }
|
|
|
+ }
|
|
|
return IDENTIFIER;
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 51:
|
|
|
+case 43:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 770 "dcLexer.lxx"
|
|
|
+#line 739 "dcLexer.lxx"
|
|
|
{
|
|
|
// Send any other printable character as itself.
|
|
|
accept();
|
|
|
return dcyytext[0];
|
|
|
}
|
|
|
YY_BREAK
|
|
|
-case 52:
|
|
|
+case 44:
|
|
|
YY_RULE_SETUP
|
|
|
-#line 776 "dcLexer.lxx"
|
|
|
+#line 745 "dcLexer.lxx"
|
|
|
ECHO;
|
|
|
YY_BREAK
|
|
|
-#line 1669 "lex.yy.c"
|
|
|
+#line 1596 "lex.yy.c"
|
|
|
case YY_STATE_EOF(INITIAL):
|
|
|
yyterminate();
|
|
|
|
|
|
@@ -1956,7 +1883,7 @@ static yy_state_type yy_get_previous_state()
|
|
|
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 >= 201 )
|
|
|
+ if ( yy_current_state >= 165 )
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
}
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
|
@@ -1991,11 +1918,11 @@ yy_state_type 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];
|
|
|
- if ( yy_current_state >= 201 )
|
|
|
+ if ( yy_current_state >= 165 )
|
|
|
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 == 200);
|
|
|
+ yy_is_jam = (yy_current_state == 164);
|
|
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
|
|
}
|
|
|
@@ -2046,6 +1973,7 @@ register char *yy_bp;
|
|
|
#endif /* ifndef YY_NO_UNPUT */
|
|
|
|
|
|
|
|
|
+#ifndef YY_NO_INPUT
|
|
|
#ifdef __cplusplus
|
|
|
static int yyinput()
|
|
|
#else
|
|
|
@@ -2117,7 +2045,7 @@ static int input()
|
|
|
|
|
|
return c;
|
|
|
}
|
|
|
-
|
|
|
+#endif /* YY_NO_INPUT */
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
void yyrestart( FILE *input_file )
|
|
|
@@ -2545,4 +2473,4 @@ int main()
|
|
|
return 0;
|
|
|
}
|
|
|
#endif
|
|
|
-#line 776 "dcLexer.lxx"
|
|
|
+#line 745 "dcLexer.lxx"
|