prebuild-bison

This commit is contained in:
David Rose 2004-06-24 16:21:54 +00:00
parent da134a3737
commit 9d97d87db4
3 changed files with 743 additions and 613 deletions

View File

@ -300,29 +300,30 @@ static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
*yy_cp = '\0'; \ *yy_cp = '\0'; \
yy_c_buf_p = yy_cp; yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 45 #define YY_NUM_RULES 47
#define YY_END_OF_BUFFER 46 #define YY_END_OF_BUFFER 48
static yyconst short int yy_accept[179] = static yyconst short int yy_accept[187] =
{ 0, { 0,
0, 0, 46, 44, 2, 1, 41, 44, 44, 44, 0, 0, 48, 46, 2, 1, 43, 46, 46, 46,
38, 38, 42, 43, 43, 43, 43, 43, 43, 43, 40, 40, 44, 45, 45, 45, 45, 45, 45, 45,
43, 43, 43, 43, 43, 43, 1, 0, 38, 40, 45, 45, 45, 45, 45, 45, 1, 0, 40, 42,
4, 3, 40, 39, 43, 43, 43, 43, 43, 33, 4, 3, 42, 41, 45, 45, 45, 45, 45, 45,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 35, 45, 45, 45, 45, 45, 45, 45, 45, 45,
43, 43, 0, 3, 39, 43, 43, 43, 43, 43, 45, 45, 45, 45, 0, 3, 41, 45, 45, 45,
43, 43, 43, 43, 43, 43, 31, 32, 43, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 33,
43, 43, 0, 40, 43, 20, 43, 43, 43, 43, 34, 45, 45, 45, 45, 45, 0, 42, 45, 22,
43, 7, 43, 43, 43, 43, 10, 43, 43, 43, 45, 11, 45, 45, 45, 45, 7, 45, 45, 45,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 45, 12, 45, 45, 45, 45, 45, 45, 45, 45,
43, 11, 12, 13, 43, 43, 43, 43, 43, 43, 45, 45, 45, 45, 45, 45, 45, 13, 14, 15,
43, 43, 43, 14, 37, 21, 43, 35, 34, 5, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
43, 8, 43, 43, 43, 43, 43, 19, 6, 43, 16, 39, 23, 45, 37, 36, 5, 45, 8, 45,
15, 16, 17, 43, 43, 18, 43, 43, 43, 36, 45, 45, 45, 45, 21, 6, 10, 45, 17, 18,
43, 9, 43, 43, 43, 43, 43, 43, 43, 43, 19, 45, 45, 20, 45, 45, 45, 38, 45, 9,
29, 43, 43, 43, 43, 30, 43, 43, 22, 43, 45, 45, 45, 45, 45, 45, 45, 45, 31, 45,
43, 43, 43, 23, 24, 43, 43, 43, 25, 26, 45, 45, 45, 32, 45, 45, 24, 45, 45, 45,
27, 43, 43, 43, 43, 43, 28, 0 45, 25, 26, 45, 45, 45, 27, 28, 29, 45,
45, 45, 45, 45, 30, 0
} ; } ;
static yyconst int yy_ec[256] = static yyconst int yy_ec[256] =
@ -338,9 +339,9 @@ static yyconst int yy_ec[256] =
20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
1, 1, 1, 1, 20, 1, 21, 22, 23, 24, 1, 1, 1, 1, 20, 1, 21, 22, 23, 24,
25, 26, 27, 20, 28, 20, 20, 29, 30, 31, 25, 26, 27, 28, 29, 20, 20, 30, 31, 32,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
42, 20, 1, 1, 1, 1, 1, 1, 1, 1, 43, 20, 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, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@ -357,125 +358,131 @@ static yyconst int yy_ec[256] =
1, 1, 1, 1, 1 1, 1, 1, 1, 1
} ; } ;
static yyconst int yy_meta[43] = static yyconst int yy_meta[44] =
{ 0, { 0,
1, 1, 2, 1, 1, 3, 4, 1, 5, 5, 1, 1, 2, 1, 1, 3, 4, 1, 5, 5,
5, 5, 5, 5, 5, 5, 1, 6, 6, 7, 5, 5, 5, 5, 5, 5, 1, 6, 6, 7,
6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7 7, 7, 7
} ; } ;
static yyconst short int yy_base[186] = static yyconst short int yy_base[194] =
{ 0, { 0,
0, 0, 214, 215, 215, 0, 215, 206, 0, 38, 0, 0, 223, 224, 224, 0, 224, 215, 0, 39,
37, 205, 215, 0, 183, 16, 181, 25, 20, 22, 38, 214, 224, 0, 191, 16, 27, 27, 23, 23,
169, 197, 29, 170, 164, 177, 0, 0, 197, 37, 178, 207, 35, 20, 174, 187, 0, 0, 208, 43,
215, 0, 0, 0, 0, 168, 170, 169, 22, 0, 224, 0, 0, 0, 0, 178, 180, 179, 174, 27,
171, 167, 166, 164, 159, 164, 161, 163, 158, 156, 0, 180, 176, 175, 173, 168, 173, 170, 172, 167,
157, 158, 182, 0, 0, 162, 164, 164, 159, 158, 165, 171, 165, 166, 191, 0, 0, 171, 173, 173,
161, 160, 150, 147, 49, 142, 0, 0, 139, 32, 168, 167, 166, 169, 168, 157, 154, 55, 149, 0,
151, 138, 168, 167, 149, 159, 146, 146, 137, 131, 0, 146, 37, 146, 158, 144, 175, 174, 156, 166,
129, 0, 130, 149, 152, 149, 140, 135, 131, 127, 153, 0, 153, 143, 137, 135, 0, 136, 156, 159,
134, 132, 56, 116, 143, 130, 113, 127, 114, 134, 156, 147, 142, 137, 133, 141, 140, 138, 62, 121,
149, 136, 118, 133, 119, 140, 116, 132, 131, 0,
115, 118, 113, 121, 109, 118, 120, 129, 132, 129,
120, 0, 0, 119, 0, 0, 0, 126, 0, 102,
101, 100, 111, 109, 0, 0, 0, 107, 111, 30,
0, 95, 93, 0, 93, 92, 106, 0, 102, 0,
89, 88, 94, 86, 83, 99, 98, 75, 0, 81,
80, 83, 93, 0, 70, 69, 0, 90, 89, 71,
65, 0, 0, 64, 63, 89, 0, 0, 0, 82,
58, 46, 58, 32, 0, 224, 80, 84, 68, 85,
92, 95, 99
111, 126, 125, 0, 110, 113, 108, 115, 104, 115,
124, 127, 124, 115, 0, 0, 114, 0, 0, 0,
121, 0, 98, 97, 96, 106, 104, 0, 0, 102,
106, 42, 0, 91, 89, 0, 89, 88, 101, 0,
97, 0, 85, 84, 90, 82, 79, 94, 93, 71,
0, 77, 76, 79, 88, 0, 66, 65, 0, 85,
84, 66, 52, 0, 0, 40, 37, 61, 0, 0,
0, 55, 40, 39, 52, 27, 0, 215, 80, 84,
62, 85, 92, 95, 99
} ; } ;
static yyconst short int yy_def[186] = static yyconst short int yy_def[194] =
{ 0, { 0,
178, 1, 178, 178, 178, 179, 178, 180, 181, 178, 186, 1, 186, 186, 186, 187, 186, 188, 189, 186,
180, 180, 178, 182, 182, 182, 182, 182, 182, 182, 188, 188, 186, 190, 190, 190, 190, 190, 190, 190,
182, 182, 182, 182, 182, 182, 179, 181, 180, 181, 190, 190, 190, 190, 190, 190, 187, 189, 188, 189,
178, 183, 30, 184, 182, 182, 182, 182, 182, 182, 186, 191, 30, 192, 190, 190, 190, 190, 190, 190,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
182, 182, 185, 183, 184, 182, 182, 182, 182, 182, 190, 190, 190, 190, 193, 191, 192, 190, 190, 190,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
182, 182, 185, 185, 182, 182, 182, 182, 182, 182, 190, 190, 190, 190, 190, 190, 193, 193, 190, 190,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 0, 186, 186, 186, 186,
186, 186, 186
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 0, 178, 178,
178, 178, 178, 178, 178
} ; } ;
static yyconst short int yy_nxt[258] = static yyconst short int yy_nxt[268] =
{ 0, { 0,
4, 5, 6, 7, 4, 8, 9, 10, 11, 12, 4, 5, 6, 7, 4, 8, 9, 10, 11, 12,
12, 12, 12, 12, 12, 12, 13, 14, 14, 14, 12, 12, 12, 12, 12, 12, 13, 14, 14, 14,
15, 16, 17, 18, 14, 19, 14, 20, 14, 14, 15, 16, 17, 18, 14, 19, 14, 14, 20, 14,
14, 21, 22, 14, 23, 24, 25, 26, 14, 14, 14, 14, 21, 22, 14, 23, 24, 25, 26, 14,
14, 14, 31, 33, 37, 32, 40, 41, 42, 48, 14, 14, 14, 31, 33, 37, 32, 39, 41, 42,
38, 44, 45, 49, 43, 53, 59, 60, 84, 90, 152, 38, 43, 45, 46, 49, 40, 51, 44, 50,
85, 53, 144, 86, 87, 111, 30, 112, 177, 91, 52, 55, 62, 63, 89, 95, 90, 55, 153, 91,
113, 114, 176, 175, 174, 173, 172, 34, 171, 145, 92, 118, 30, 119, 185, 96, 120, 121, 184, 34,
27, 170, 27, 27, 27, 27, 27, 29, 29, 35, 27, 183, 27, 27, 27, 27, 27, 29, 29, 35,
35, 35, 54, 169, 54, 54, 54, 54, 54, 55, 35, 35, 56, 182, 56, 56, 56, 56, 56, 57,
55, 74, 168, 74, 167, 166, 165, 164, 163, 162, 57, 78, 181, 78, 180, 179, 178, 177, 176, 175,
161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165,
151, 150, 149, 148, 147, 146, 143, 142, 141, 140, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155,
139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 154, 151, 150, 149, 148, 147, 146, 145, 144, 143,
129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133,
119, 118, 117, 116, 115, 110, 109, 108, 107, 106, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123,
105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 122, 117, 116, 115, 114, 113, 112, 111, 110, 109,
95, 94, 178, 178, 93, 92, 89, 88, 83, 82, 108, 107, 106, 105, 104, 103, 102, 101, 100, 186,
81, 80, 79, 78, 77, 76, 75, 73, 72, 71, 186, 99, 98, 97, 94, 93, 88, 87, 86, 85,
70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 84, 83, 82, 81, 80, 79, 77, 76, 75, 74,
58, 57, 56, 33, 52, 51, 50, 47, 46, 39, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64,
36, 33, 28, 178, 3, 178, 178, 178, 178, 178, 61, 60, 59, 58, 33, 54, 53, 48, 47, 36,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 33, 28, 186, 3, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
186, 186, 186, 186, 186, 186, 186
} ; } ;
static yyconst short int yy_chk[258] = static yyconst short int yy_chk[268] =
{ 0, { 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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, 10, 11, 16, 10, 18, 18, 19, 23, 1, 1, 1, 10, 11, 16, 10, 17, 18, 18,
16, 20, 20, 23, 19, 30, 39, 39, 65, 70, 140, 16, 19, 20, 20, 23, 17, 24, 19, 23,
65, 30, 132, 65, 65, 93, 181, 93, 176, 70, 24, 30, 40, 40, 68, 73, 68, 30, 140, 68,
93, 93, 175, 174, 173, 172, 168, 11, 167, 132, 68, 99, 189, 99, 184, 73, 99, 99, 183, 11,
179, 166, 179, 179, 179, 179, 179, 180, 180, 182, 187, 182, 187, 187, 187, 187, 187, 188, 188, 190,
182, 182, 183, 163, 183, 183, 183, 183, 183, 184, 190, 190, 191, 181, 191, 191, 191, 191, 191, 192,
184, 185, 162, 185, 161, 160, 158, 157, 155, 154, 192, 193, 180, 193, 176, 175, 174, 171, 170, 169,
153, 152, 150, 149, 148, 147, 146, 145, 144, 143, 168, 166, 165, 163, 162, 161, 160, 158, 157, 156,
141, 139, 138, 137, 135, 134, 131, 130, 127, 126, 155, 154, 153, 152, 151, 149, 147, 146, 145, 143,
125, 124, 123, 121, 117, 114, 113, 112, 111, 110, 142, 139, 138, 134, 133, 132, 131, 130, 128, 124,
109, 108, 107, 106, 105, 103, 102, 101, 100, 99, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112,
98, 97, 96, 95, 94, 92, 91, 90, 89, 88, 111, 109, 108, 107, 106, 105, 104, 103, 102, 101,
87, 86, 85, 84, 83, 81, 80, 79, 78, 77, 100, 98, 97, 96, 95, 94, 93, 92, 91, 90,
76, 75, 74, 73, 72, 71, 69, 66, 64, 63, 89, 88, 86, 85, 84, 83, 81, 80, 79, 78,
62, 61, 60, 59, 58, 57, 56, 53, 52, 51, 77, 76, 75, 74, 72, 69, 67, 66, 65, 64,
50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 63, 62, 61, 60, 59, 58, 55, 54, 53, 52,
38, 37, 36, 29, 26, 25, 24, 22, 21, 17, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42,
15, 12, 8, 3, 178, 178, 178, 178, 178, 178, 39, 38, 37, 36, 29, 26, 25, 22, 21, 15,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 12, 8, 3, 186, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
178, 178, 178, 178, 178, 178, 178 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
186, 186, 186, 186, 186, 186, 186
} ; } ;
static yy_state_type yy_last_accepting_state; static yy_state_type yy_last_accepting_state;
@ -790,7 +797,7 @@ inline void accept() {
col_number += yyleng; col_number += yyleng;
} }
#line 795 "lex.yy.c" #line 802 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in /* Macros after this point can all be overridden by user definitions in
* section 1. * section 1.
@ -952,7 +959,7 @@ YY_DECL
} }
#line 957 "lex.yy.c" #line 964 "lex.yy.c"
if ( yy_init ) if ( yy_init )
{ {
@ -1003,13 +1010,13 @@ yy_match:
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 179 ) if ( yy_current_state >= 187 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp; ++yy_cp;
} }
while ( yy_base[yy_current_state] != 215 ); while ( yy_base[yy_current_state] != 224 );
yy_find_action: yy_find_action:
yy_act = yy_accept[yy_current_state]; yy_act = yy_accept[yy_current_state];
@ -1122,7 +1129,7 @@ YY_RULE_SETUP
#line 373 "dcLexer.lxx" #line 373 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT8; return KW_SWITCH;
} }
YY_BREAK YY_BREAK
case 11: case 11:
@ -1130,7 +1137,7 @@ YY_RULE_SETUP
#line 378 "dcLexer.lxx" #line 378 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT16; return KW_CASE;
} }
YY_BREAK YY_BREAK
case 12: case 12:
@ -1138,7 +1145,7 @@ YY_RULE_SETUP
#line 383 "dcLexer.lxx" #line 383 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT32; return KW_INT8;
} }
YY_BREAK YY_BREAK
case 13: case 13:
@ -1146,7 +1153,7 @@ YY_RULE_SETUP
#line 388 "dcLexer.lxx" #line 388 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT64; return KW_INT16;
} }
YY_BREAK YY_BREAK
case 14: case 14:
@ -1154,7 +1161,7 @@ YY_RULE_SETUP
#line 393 "dcLexer.lxx" #line 393 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT8; return KW_INT32;
} }
YY_BREAK YY_BREAK
case 15: case 15:
@ -1162,7 +1169,7 @@ YY_RULE_SETUP
#line 398 "dcLexer.lxx" #line 398 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT16; return KW_INT64;
} }
YY_BREAK YY_BREAK
case 16: case 16:
@ -1170,7 +1177,7 @@ YY_RULE_SETUP
#line 403 "dcLexer.lxx" #line 403 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT32; return KW_UINT8;
} }
YY_BREAK YY_BREAK
case 17: case 17:
@ -1178,7 +1185,7 @@ YY_RULE_SETUP
#line 408 "dcLexer.lxx" #line 408 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT64; return KW_UINT16;
} }
YY_BREAK YY_BREAK
case 18: case 18:
@ -1186,7 +1193,7 @@ YY_RULE_SETUP
#line 413 "dcLexer.lxx" #line 413 "dcLexer.lxx"
{ {
accept(); accept();
return KW_FLOAT64; return KW_UINT32;
} }
YY_BREAK YY_BREAK
case 19: case 19:
@ -1194,7 +1201,7 @@ YY_RULE_SETUP
#line 418 "dcLexer.lxx" #line 418 "dcLexer.lxx"
{ {
accept(); accept();
return KW_STRING; return KW_UINT64;
} }
YY_BREAK YY_BREAK
case 20: case 20:
@ -1202,7 +1209,7 @@ YY_RULE_SETUP
#line 423 "dcLexer.lxx" #line 423 "dcLexer.lxx"
{ {
accept(); accept();
return KW_BLOB; return KW_FLOAT64;
} }
YY_BREAK YY_BREAK
case 21: case 21:
@ -1210,7 +1217,7 @@ YY_RULE_SETUP
#line 428 "dcLexer.lxx" #line 428 "dcLexer.lxx"
{ {
accept(); accept();
return KW_BLOB32; return KW_STRING;
} }
YY_BREAK YY_BREAK
case 22: case 22:
@ -1218,7 +1225,7 @@ YY_RULE_SETUP
#line 433 "dcLexer.lxx" #line 433 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT8ARRAY; return KW_BLOB;
} }
YY_BREAK YY_BREAK
case 23: case 23:
@ -1226,7 +1233,7 @@ YY_RULE_SETUP
#line 438 "dcLexer.lxx" #line 438 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT16ARRAY; return KW_BLOB32;
} }
YY_BREAK YY_BREAK
case 24: case 24:
@ -1234,7 +1241,7 @@ YY_RULE_SETUP
#line 443 "dcLexer.lxx" #line 443 "dcLexer.lxx"
{ {
accept(); accept();
return KW_INT32ARRAY; return KW_INT8ARRAY;
} }
YY_BREAK YY_BREAK
case 25: case 25:
@ -1242,7 +1249,7 @@ YY_RULE_SETUP
#line 448 "dcLexer.lxx" #line 448 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT8ARRAY; return KW_INT16ARRAY;
} }
YY_BREAK YY_BREAK
case 26: case 26:
@ -1250,7 +1257,7 @@ YY_RULE_SETUP
#line 453 "dcLexer.lxx" #line 453 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT16ARRAY; return KW_INT32ARRAY;
} }
YY_BREAK YY_BREAK
case 27: case 27:
@ -1258,7 +1265,7 @@ YY_RULE_SETUP
#line 458 "dcLexer.lxx" #line 458 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT32ARRAY; return KW_UINT8ARRAY;
} }
YY_BREAK YY_BREAK
case 28: case 28:
@ -1266,7 +1273,7 @@ YY_RULE_SETUP
#line 463 "dcLexer.lxx" #line 463 "dcLexer.lxx"
{ {
accept(); accept();
return KW_UINT32UINT8ARRAY; return KW_UINT16ARRAY;
} }
YY_BREAK YY_BREAK
case 29: case 29:
@ -1274,7 +1281,7 @@ YY_RULE_SETUP
#line 468 "dcLexer.lxx" #line 468 "dcLexer.lxx"
{ {
accept(); accept();
return KW_REQUIRED; return KW_UINT32ARRAY;
} }
YY_BREAK YY_BREAK
case 30: case 30:
@ -1282,7 +1289,7 @@ YY_RULE_SETUP
#line 473 "dcLexer.lxx" #line 473 "dcLexer.lxx"
{ {
accept(); accept();
return KW_BROADCAST; return KW_UINT32UINT8ARRAY;
} }
YY_BREAK YY_BREAK
case 31: case 31:
@ -1290,7 +1297,7 @@ YY_RULE_SETUP
#line 478 "dcLexer.lxx" #line 478 "dcLexer.lxx"
{ {
accept(); accept();
return KW_P2P; return KW_REQUIRED;
} }
YY_BREAK YY_BREAK
case 32: case 32:
@ -1298,7 +1305,7 @@ YY_RULE_SETUP
#line 483 "dcLexer.lxx" #line 483 "dcLexer.lxx"
{ {
accept(); accept();
return KW_RAM; return KW_BROADCAST;
} }
YY_BREAK YY_BREAK
case 33: case 33:
@ -1306,7 +1313,7 @@ YY_RULE_SETUP
#line 488 "dcLexer.lxx" #line 488 "dcLexer.lxx"
{ {
accept(); accept();
return KW_DB; return KW_P2P;
} }
YY_BREAK YY_BREAK
case 34: case 34:
@ -1314,7 +1321,7 @@ YY_RULE_SETUP
#line 493 "dcLexer.lxx" #line 493 "dcLexer.lxx"
{ {
accept(); accept();
return KW_CLSEND; return KW_RAM;
} }
YY_BREAK YY_BREAK
case 35: case 35:
@ -1322,7 +1329,7 @@ YY_RULE_SETUP
#line 498 "dcLexer.lxx" #line 498 "dcLexer.lxx"
{ {
accept(); accept();
return KW_CLRECV; return KW_DB;
} }
YY_BREAK YY_BREAK
case 36: case 36:
@ -1330,7 +1337,7 @@ YY_RULE_SETUP
#line 503 "dcLexer.lxx" #line 503 "dcLexer.lxx"
{ {
accept(); accept();
return KW_OWNSEND; return KW_CLSEND;
} }
YY_BREAK YY_BREAK
case 37: case 37:
@ -1338,12 +1345,28 @@ YY_RULE_SETUP
#line 508 "dcLexer.lxx" #line 508 "dcLexer.lxx"
{ {
accept(); accept();
return KW_AIRECV; return KW_CLRECV;
} }
YY_BREAK YY_BREAK
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 513 "dcLexer.lxx" #line 513 "dcLexer.lxx"
{
accept();
return KW_OWNSEND;
}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 518 "dcLexer.lxx"
{
accept();
return KW_AIRECV;
}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 523 "dcLexer.lxx"
{ {
// An integer number. // An integer number.
accept(); accept();
@ -1370,9 +1393,9 @@ YY_RULE_SETUP
return INTEGER; return INTEGER;
} }
YY_BREAK YY_BREAK
case 39: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 539 "dcLexer.lxx" #line 549 "dcLexer.lxx"
{ {
// A hexadecimal integer number. // A hexadecimal integer number.
accept(); accept();
@ -1393,9 +1416,9 @@ YY_RULE_SETUP
return INTEGER; return INTEGER;
} }
YY_BREAK YY_BREAK
case 40: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 559 "dcLexer.lxx" #line 569 "dcLexer.lxx"
{ {
// A floating-point number. // A floating-point number.
accept(); accept();
@ -1404,9 +1427,9 @@ YY_RULE_SETUP
return REAL; return REAL;
} }
YY_BREAK YY_BREAK
case 41: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 567 "dcLexer.lxx" #line 577 "dcLexer.lxx"
{ {
// Quoted string. // Quoted string.
accept(); accept();
@ -1414,9 +1437,9 @@ YY_RULE_SETUP
return STRING; return STRING;
} }
YY_BREAK YY_BREAK
case 42: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 574 "dcLexer.lxx" #line 584 "dcLexer.lxx"
{ {
// Long hex string. // Long hex string.
accept(); accept();
@ -1424,9 +1447,9 @@ YY_RULE_SETUP
return HEX_STRING; return HEX_STRING;
} }
YY_BREAK YY_BREAK
case 43: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 581 "dcLexer.lxx" #line 591 "dcLexer.lxx"
{ {
// Identifier. // Identifier.
accept(); accept();
@ -1434,21 +1457,21 @@ YY_RULE_SETUP
return IDENTIFIER; return IDENTIFIER;
} }
YY_BREAK YY_BREAK
case 44: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 589 "dcLexer.lxx" #line 599 "dcLexer.lxx"
{ {
// Send any other printable character as itself. // Send any other printable character as itself.
accept(); accept();
return dcyytext[0]; return dcyytext[0];
} }
YY_BREAK YY_BREAK
case 45: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 595 "dcLexer.lxx" #line 605 "dcLexer.lxx"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 1453 "lex.yy.c" #line 1476 "lex.yy.c"
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
yyterminate(); yyterminate();
@ -1740,7 +1763,7 @@ static yy_state_type yy_get_previous_state()
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 179 ) if ( yy_current_state >= 187 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
@ -1775,11 +1798,11 @@ yy_state_type yy_current_state;
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 179 ) if ( yy_current_state >= 187 )
yy_c = yy_meta[(unsigned int) yy_c]; yy_c = yy_meta[(unsigned int) yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 178); yy_is_jam = (yy_current_state == 186);
return yy_is_jam ? 0 : yy_current_state; return yy_is_jam ? 0 : yy_current_state;
} }
@ -2329,4 +2352,4 @@ int main()
return 0; return 0;
} }
#endif #endif
#line 595 "dcLexer.lxx" #line 605 "dcLexer.lxx"

File diff suppressed because it is too large Load Diff

View File

@ -11,36 +11,38 @@
# define KW_FROM 264 # define KW_FROM 264
# define KW_IMPORT 265 # define KW_IMPORT 265
# define KW_TYPEDEF 266 # define KW_TYPEDEF 266
# define KW_INT8 267 # define KW_SWITCH 267
# define KW_INT16 268 # define KW_CASE 268
# define KW_INT32 269 # define KW_INT8 269
# define KW_INT64 270 # define KW_INT16 270
# define KW_UINT8 271 # define KW_INT32 271
# define KW_UINT16 272 # define KW_INT64 272
# define KW_UINT32 273 # define KW_UINT8 273
# define KW_UINT64 274 # define KW_UINT16 274
# define KW_FLOAT64 275 # define KW_UINT32 275
# define KW_STRING 276 # define KW_UINT64 276
# define KW_BLOB 277 # define KW_FLOAT64 277
# define KW_BLOB32 278 # define KW_STRING 278
# define KW_INT8ARRAY 279 # define KW_BLOB 279
# define KW_INT16ARRAY 280 # define KW_BLOB32 280
# define KW_INT32ARRAY 281 # define KW_INT8ARRAY 281
# define KW_UINT8ARRAY 282 # define KW_INT16ARRAY 282
# define KW_UINT16ARRAY 283 # define KW_INT32ARRAY 283
# define KW_UINT32ARRAY 284 # define KW_UINT8ARRAY 284
# define KW_UINT32UINT8ARRAY 285 # define KW_UINT16ARRAY 285
# define KW_REQUIRED 286 # define KW_UINT32ARRAY 286
# define KW_BROADCAST 287 # define KW_UINT32UINT8ARRAY 287
# define KW_P2P 288 # define KW_REQUIRED 288
# define KW_RAM 289 # define KW_BROADCAST 289
# define KW_DB 290 # define KW_P2P 290
# define KW_CLSEND 291 # define KW_RAM 291
# define KW_CLRECV 292 # define KW_DB 292
# define KW_OWNSEND 293 # define KW_CLSEND 293
# define KW_AIRECV 294 # define KW_CLRECV 294
# define START_DC 295 # define KW_OWNSEND 295
# define START_PARAMETER_VALUE 296 # define KW_AIRECV 296
# define START_DC 297
# define START_PARAMETER_VALUE 298
extern YYSTYPE dcyylval; extern YYSTYPE dcyylval;