version 1.4, 2015/04/20 18:10:13
|
version 1.5, 2015/04/20 18:19:53
|
|
|
/* |
|
**============================================================================== |
|
** |
|
** Open Management Infrastructure (OMI) |
|
** |
|
** Copyright (c) Microsoft Corporation |
|
** |
|
** Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|
** use this file except in compliance with the License. You may obtain a copy |
|
** of the License at |
|
** |
|
** http://www.apache.org/licenses/LICENSE-2.0 |
|
** |
|
** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|
** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
|
** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
|
** MERCHANTABLITY OR NON-INFRINGEMENT. |
|
** |
|
** See the Apache 2 License for the specific language governing permissions |
|
** and limitations under the License. |
|
** |
|
**============================================================================== |
|
*/ |
|
|
|
/* A lexical scanner generated by flex */ | /* A lexical scanner generated by flex */ |
| |
/* Scanner skeleton version: | /* Scanner skeleton version: |
|
|
int yy_n_chars; | int yy_n_chars; |
| |
/* Whether we "own" the buffer - i.e., we know we created it, | /* Whether we "own" the buffer - i.e., we know we created it, |
* and can realloc() it to grow it, and should free() it to |
* and can PAL_Realloc() it to grow it, and should PAL_Free() it to |
* delete it. | * delete it. |
*/ | */ |
int yy_is_our_buffer; | int yy_is_our_buffer; |
|
|
static int yy_start = 0; /* start state number */ | static int yy_start = 0; /* start state number */ |
| |
/* Flag which is used to allow yywrap()'s to do buffer switches | /* Flag which is used to allow yywrap()'s to do buffer switches |
* instead of setting up a fresh yyin. A bit of a hack ... |
* instead of setting up a fresh yyin. A bit of a workaround ... |
*/ | */ |
static int yy_did_buffer_switch_on_eof; | static int yy_did_buffer_switch_on_eof; |
| |
|
|
*yy_cp = '\0'; \ | *yy_cp = '\0'; \ |
yy_c_buf_p = yy_cp; | yy_c_buf_p = yy_cp; |
| |
#define YY_NUM_RULES 65 |
#define YY_NUM_RULES 67 |
#define YY_END_OF_BUFFER 66 |
#define YY_END_OF_BUFFER 68 |
static yyconst short int yy_accept[273] = |
static yyconst short int yy_accept[286] = |
{ 0, | { 0, |
0, 0, 66, 64, 63, 63, 41, 64, 64, 64, |
0, 0, 68, 66, 65, 65, 43, 66, 66, 66, |
54, 55, 64, 62, 64, 64, 45, 46, 46, 60, |
56, 57, 66, 64, 66, 66, 47, 48, 48, 62, |
61, 53, 51, 51, 51, 51, 51, 51, 51, 51, |
63, 55, 53, 53, 53, 53, 53, 53, 53, 53, |
51, 51, 51, 51, 51, 51, 51, 51, 51, 56, |
53, 53, 53, 53, 53, 53, 53, 53, 53, 58, |
57, 58, 59, 63, 0, 52, 0, 0, 0, 45, |
59, 60, 61, 65, 0, 54, 0, 0, 0, 47, |
46, 46, 47, 39, 40, 49, 49, 0, 50, 0, |
48, 48, 49, 41, 42, 51, 51, 0, 52, 0, |
46, 46, 51, 51, 37, 51, 51, 51, 51, 51, |
48, 48, 53, 53, 38, 53, 53, 53, 53, 53, |
51, 51, 51, 51, 51, 51, 36, 51, 51, 51, |
53, 53, 53, 53, 53, 53, 53, 37, 53, 53, |
51, 51, 51, 51, 51, 51, 51, 0, 52, 42, |
53, 53, 53, 53, 53, 53, 53, 53, 0, 54, |
0, 42, 0, 0, 48, 28, 51, 51, 51, 51, |
44, 0, 44, 0, 0, 50, 28, 53, 53, 53, |
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51, |
53, 53, 53, 53, 53, 53, 53, 53, 53, 53, |
51, 51, 51, 18, 51, 51, 51, 51, 51, 51, |
53, 53, 53, 53, 53, 18, 53, 53, 53, 53, |
51, 51, 0, 43, 0, 0, 47, 51, 51, 51, |
53, 53, 53, 53, 53, 0, 45, 0, 0, 49, |
51, 51, 51, 51, 51, 51, 51, 51, 51, 3, |
53, 53, 53, 53, 53, 53, 53, 53, 53, 53, |
51, 51, 51, 51, 51, 51, 51, 51, 51, 51, |
53, 53, 3, 53, 53, 53, 53, 53, 53, 53, |
51, 1, 51, 0, 44, 51, 51, 51, 20, 51, |
53, 53, 53, 53, 53, 53, 1, 53, 0, 46, |
51, 51, 2, 51, 51, 51, 51, 51, 51, 51, |
53, 53, 53, 20, 53, 53, 53, 2, 53, 53, |
51, 51, 51, 51, 19, 51, 51, 51, 5, 51, |
53, 53, 53, 53, 53, 53, 53, 53, 53, 53, |
51, 51, 51, 51, 51, 6, 0, 51, 51, 16, |
19, 53, 53, 53, 5, 53, 53, 53, 53, 53, |
51, 51, 51, 29, 51, 51, 26, 51, 51, 51, |
53, 53, 6, 0, 53, 53, 16, 53, 53, 53, |
|
|
13, 14, 51, 51, 7, 9, 11, 17, 51, 51, |
29, 53, 53, 26, 39, 53, 53, 53, 13, 14, |
8, 10, 12, 0, 51, 4, 51, 51, 51, 51, |
53, 53, 7, 9, 11, 17, 53, 53, 53, 8, |
51, 51, 51, 51, 51, 51, 51, 51, 38, 51, |
10, 12, 0, 53, 4, 53, 53, 53, 53, 53, |
15, 51, 51, 51, 35, 51, 24, 51, 51, 51, |
53, 53, 53, 53, 53, 53, 53, 53, 40, 53, |
51, 51, 51, 51, 51, 51, 27, 23, 25, 51, |
15, 53, 53, 53, 36, 53, 24, 53, 53, 53, |
51, 51, 51, 51, 51, 22, 32, 33, 51, 21, |
53, 53, 53, 53, 53, 53, 53, 27, 23, 25, |
51, 51, 51, 51, 51, 34, 51, 51, 51, 30, |
53, 53, 53, 53, 53, 53, 53, 22, 32, 34, |
31, 0 |
33, 53, 21, 53, 53, 53, 53, 53, 35, 53, |
|
53, 53, 30, 31, 0 |
} ; | } ; |
| |
static yyconst int yy_ec[256] = | static yyconst int yy_ec[256] = |
|
|
10, 11, 12, 13, 12, 14, 15, 16, 17, 18, | 10, 11, 12, 13, 12, 14, 15, 16, 17, 18, |
19, 20, 21, 22, 21, 23, 24, 25, 26, 1, | 19, 20, 21, 22, 21, 23, 24, 25, 26, 1, |
27, 1, 1, 1, 28, 29, 30, 31, 32, 33, | 27, 1, 1, 1, 28, 29, 30, 31, 32, 33, |
34, 35, 36, 37, 37, 38, 39, 40, 41, 42, |
34, 35, 36, 37, 38, 39, 40, 41, 42, 43, |
43, 44, 45, 46, 47, 48, 37, 49, 50, 37, |
44, 45, 46, 47, 48, 49, 38, 50, 51, 38, |
51, 52, 53, 1, 37, 1, 28, 54, 30, 31, |
52, 53, 54, 1, 38, 1, 28, 55, 30, 31, |
|
|
32, 55, 34, 35, 36, 37, 37, 38, 39, 56, |
32, 56, 34, 35, 36, 37, 38, 39, 40, 57, |
41, 42, 43, 57, 45, 58, 47, 48, 37, 49, |
42, 43, 44, 58, 46, 59, 48, 49, 38, 50, |
50, 37, 59, 1, 60, 1, 1, 1, 1, 1, |
51, 38, 60, 1, 61, 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 |
} ; | } ; |
| |
static yyconst int yy_meta[61] = |
static yyconst int yy_meta[62] = |
{ 0, | { 0, |
1, 1, 1, 1, 2, 1, 1, 3, 1, 1, |
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, |
1, 4, 1, 5, 1, 6, 6, 6, 6, 6, |
1, 3, 1, 4, 1, 5, 5, 5, 5, 5, |
6, 6, 6, 6, 1, 1, 1, 7, 7, 7, |
5, 5, 5, 5, 1, 1, 1, 6, 6, 6, |
7, 7, 7, 8, 8, 8, 8, 8, 8, 8, |
6, 7, 6, 8, 8, 8, 8, 8, 8, 8, |
8, 8, 8, 8, 8, 8, 8, 8, 9, 8, |
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, |
1, 2, 1, 10, 10, 9, 9, 9, 1, 1 |
8, 1, 1, 1, 6, 6, 8, 8, 8, 1, |
|
1 |
} ; | } ; |
| |
static yyconst short int yy_base[284] = |
static yyconst short int yy_base[296] = |
{ 0, | { 0, |
0, 0, 408, 409, 59, 62, 409, 365, 0, 354, |
0, 0, 460, 461, 60, 63, 461, 416, 0, 405, |
409, 409, 53, 409, 0, 57, 59, 100, 73, 409, |
461, 461, 54, 461, 56, 70, 72, 114, 86, 461, |
409, 409, 47, 364, 36, 57, 44, 58, 0, 51, |
461, 461, 41, 415, 65, 69, 42, 78, 0, 66, |
372, 356, 71, 71, 355, 369, 95, 53, 364, 409, |
424, 407, 91, 81, 406, 421, 112, 71, 416, 461, |
409, 409, 409, 130, 54, 0, 391, 87, 0, 0, |
461, 461, 461, 108, 63, 0, 443, 144, 144, 0, |
0, 0, 366, 409, 409, 348, 121, 382, 409, 0, |
0, 0, 418, 461, 461, 399, 128, 434, 461, 0, |
0, 0, 0, 345, 349, 352, 364, 363, 84, 345, |
0, 0, 0, 396, 400, 403, 416, 415, 111, 396, |
361, 350, 359, 104, 93, 348, 0, 99, 344, 356, |
413, 401, 411, 38, 125, 399, 400, 0, 95, 394, |
112, 342, 104, 102, 337, 119, 108, 353, 0, 409, |
407, 149, 392, 132, 129, 139, 128, 139, 405, 0, |
372, 371, 0, 366, 0, 0, 336, 338, 108, 330, |
461, 424, 423, 0, 418, 0, 0, 387, 389, 134, |
|
|
342, 345, 126, 327, 323, 334, 115, 334, 330, 339, |
381, 394, 397, 96, 378, 374, 386, 134, 386, 381, |
324, 327, 326, 331, 116, 320, 123, 325, 313, 123, |
387, 390, 374, 377, 376, 382, 139, 370, 157, 376, |
327, 125, 324, 409, 349, 344, 343, 324, 321, 335, |
149, 363, 150, 378, 161, 375, 461, 400, 205, 214, |
306, 126, 139, 312, 317, 307, 317, 318, 304, 0, |
377, 374, 388, 358, 192, 159, 364, 370, 359, 370, |
305, 311, 306, 87, 132, 133, 309, 169, 138, 153, |
371, 356, 0, 367, 356, 363, 358, 190, 195, 196, |
295, 0, 178, 300, 409, 302, 309, 314, 0, 299, |
361, 196, 201, 346, 188, 345, 0, 227, 350, 461, |
296, 301, 0, 141, 304, 147, 300, 298, 152, 166, |
353, 360, 365, 0, 350, 346, 352, 0, 202, 355, |
311, 308, 295, 290, 0, 303, 306, 303, 0, 288, |
204, 351, 205, 349, 210, 215, 362, 359, 346, 341, |
291, 282, 297, 300, 297, 0, 288, 287, 162, 0, |
0, 354, 357, 354, 0, 339, 210, 342, 332, 348, |
275, 281, 271, 0, 158, 281, 0, 159, 162, 274, |
351, 348, 0, 339, 338, 215, 0, 325, 332, 321, |
|
|
0, 0, 166, 279, 0, 0, 0, 0, 270, 279, |
0, 215, 332, 0, 0, 216, 218, 325, 0, 0, |
0, 0, 0, 302, 165, 0, 273, 262, 252, 263, |
225, 330, 0, 0, 0, 0, 331, 319, 329, 0, |
263, 262, 237, 254, 255, 166, 256, 167, 409, 247, |
0, 0, 352, 220, 0, 323, 312, 304, 316, 319, |
0, 213, 221, 211, 0, 170, 0, 171, 219, 218, |
318, 298, 316, 317, 226, 229, 318, 229, 461, 308, |
204, 217, 202, 210, 175, 170, 0, 0, 0, 210, |
0, 284, 283, 267, 0, 233, 0, 235, 275, 274, |
195, 200, 190, 187, 190, 0, 0, 0, 201, 0, |
274, 255, 272, 256, 265, 236, 242, 0, 0, 0, |
191, 202, 205, 200, 202, 0, 127, 80, 73, 0, |
265, 258, 213, 255, 246, 244, 247, 0, 0, 0, |
0, 409, 248, 258, 264, 95, 265, 270, 279, 285, |
0, 172, 0, 250, 174, 123, 118, 119, 0, 88, |
286, 291, 298 |
86, 82, 0, 0, 461, 305, 313, 318, 319, 323, |
|
327, 331, 332, 335, 340 |
|
|
} ; | } ; |
| |
static yyconst short int yy_def[284] = |
static yyconst short int yy_def[296] = |
{ 0, | { 0, |
272, 1, 272, 272, 272, 272, 272, 272, 273, 274, |
285, 1, 285, 285, 285, 285, 285, 285, 286, 287, |
272, 272, 275, 272, 276, 272, 272, 272, 18, 272, |
285, 285, 288, 285, 285, 285, 285, 285, 18, 285, |
272, 272, 277, 277, 277, 277, 277, 277, 277, 277, |
285, 285, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 272, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 285, |
272, 272, 272, 272, 272, 278, 272, 279, 276, 17, |
285, 285, 285, 285, 285, 290, 285, 285, 285, 17, |
18, 19, 276, 272, 272, 17, 17, 280, 272, 281, |
18, 19, 291, 285, 285, 17, 17, 292, 285, 293, |
18, 19, 277, 277, 277, 277, 277, 277, 277, 277, |
18, 19, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 272, 278, 272, |
289, 289, 289, 289, 289, 289, 289, 289, 285, 290, |
272, 272, 282, 283, 281, 277, 277, 277, 277, 277, |
285, 285, 285, 294, 295, 293, 289, 289, 289, 289, |
|
|
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 272, 272, 282, 283, 283, 277, 277, 277, |
289, 289, 289, 289, 289, 285, 285, 294, 285, 285, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 272, 272, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 285, 285, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 272, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 285, 289, 289, 289, 289, 289, 289, |
|
|
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 272, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 272, 277, |
289, 289, 285, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 285, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 277, 277, 277, 277, 277, 277, 277, 277, 277, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
277, 0, 272, 272, 272, 272, 272, 272, 272, 272, |
289, 289, 289, 289, 289, 289, 289, 289, 289, 289, |
272, 272, 272 |
289, 289, 289, 289, 0, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285 |
|
|
} ; | } ; |
| |
static yyconst short int yy_nxt[470] = |
static yyconst short int yy_nxt[523] = |
{ 0, | { 0, |
4, 5, 6, 5, 7, 8, 9, 10, 11, 12, | 4, 5, 6, 5, 7, 8, 9, 10, 11, 12, |
4, 13, 14, 15, 16, 17, 18, 19, 19, 19, | 4, 13, 14, 15, 16, 17, 18, 19, 19, 19, |
19, 19, 19, 19, 20, 21, 22, 23, 24, 25, | 19, 19, 19, 19, 20, 21, 22, 23, 24, 25, |
26, 27, 28, 29, 29, 30, 29, 29, 31, 32, |
26, 27, 28, 29, 29, 30, 29, 29, 29, 31, |
33, 34, 35, 36, 37, 38, 39, 29, 29, 29, |
32, 33, 34, 35, 36, 37, 38, 39, 29, 29, |
40, 4, 41, 24, 28, 32, 36, 38, 42, 43, |
29, 40, 4, 41, 24, 28, 32, 36, 38, 42, |
44, 44, 44, 44, 44, 44, 49, 54, 50, 51, |
43, 44, 44, 44, 44, 44, 44, 49, 107, 50, |
67, 55, 49, 68, 56, 56, 57, 57, 57, 57, |
51, 53, 53, 53, 53, 53, 53, 53, 53, 53, |
57, 58, 58, 71, 69, 72, 64, 59, 62, 62, |
54, 64, 71, 108, 55, 49, 65, 56, 56, 57, |
74, 65, 70, 85, 92, 73, 86, 88, 78, 71, |
57, 57, 57, 57, 58, 58, 69, 64, 71, 67, |
|
|
53, 272, 64, 77, 271, 171, 74, 60, 172, 86, |
59, 62, 62, 68, 70, 72, 74, 89, 79, 44, |
88, 270, 59, 49, 79, 61, 61, 62, 62, 62, |
44, 44, 86, 284, 285, 87, 73, 283, 282, 77, |
62, 62, 62, 62, 82, 77, 272, 79, 59, 101, |
89, 60, 74, 78, 137, 80, 59, 49, 87, 61, |
83, 44, 44, 44, 106, 93, 57, 57, 108, 113, |
61, 62, 62, 62, 62, 62, 62, 62, 80, 112, |
84, 101, 110, 117, 114, 118, 120, 122, 107, 272, |
285, 83, 59, 57, 57, 77, 78, 84, 92, 281, |
108, 130, 84, 59, 134, 110, 115, 269, 118, 117, |
137, 93, 112, 280, 279, 123, 285, 102, 85, 53, |
138, 146, 151, 122, 130, 121, 114, 161, 148, 272, |
53, 53, 53, 53, 53, 53, 53, 53, 59, 102, |
153, 160, 138, 146, 272, 173, 174, 180, 151, 134, |
85, 109, 119, 120, 121, 124, 115, 285, 133, 125, |
148, 181, 153, 160, 194, 176, 196, 177, 173, 174, |
141, 116, 285, 109, 122, 150, 120, 166, 119, 154, |
178, 179, 161, 180, 183, 199, 184, 194, 200, 185, |
156, 133, 141, 94, 117, 125, 92, 150, 92, 92, |
|
|
186, 216, 196, 220, 222, 225, 181, 223, 199, 256, |
92, 92, 92, 152, 116, 154, 156, 158, 177, 278, |
230, 240, 242, 247, 248, 220, 222, 216, 255, 223, |
276, 178, 182, 166, 183, 152, 188, 184, 185, 158, |
200, 225, 230, 240, 242, 256, 247, 248, 259, 260, |
130, 130, 130, 130, 130, 130, 130, 130, 130, 130, |
261, 255, 268, 262, 264, 267, 266, 265, 263, 258, |
130, 130, 130, 130, 130, 130, 130, 130, 165, 179, |
257, 254, 253, 261, 252, 260, 262, 264, 251, 250, |
180, 186, 188, 190, 203, 191, 201, 208, 192, 193, |
249, 246, 245, 259, 46, 46, 46, 46, 47, 47, |
165, 205, 179, 180, 207, 225, 217, 186, 271, 201, |
244, 47, 47, 47, 47, 47, 47, 47, 52, 52, |
203, 229, 231, 205, 232, 234, 240, 207, 217, 251, |
63, 63, 63, 63, 63, 89, 89, 89, 89, 89, |
208, 225, 250, 229, 231, 253, 232, 258, 240, 259, |
91, 91, 243, 241, 239, 238, 237, 91, 91, 58, |
267, 234, 268, 272, 250, 251, 273, 253, 274, 270, |
58, 95, 95, 236, 235, 95, 125, 125, 234, 233, |
258, 275, 259, 267, 277, 269, 266, 265, 268, 264, |
|
|
125, 127, 232, 127, 231, 229, 228, 227, 226, 224, |
263, 274, 273, 262, 275, 261, 260, 277, 257, 272, |
221, 219, 218, 217, 215, 214, 213, 212, 211, 210, |
46, 46, 46, 47, 256, 47, 47, 47, 47, 47, |
209, 208, 207, 206, 205, 204, 203, 202, 201, 198, |
47, 52, 52, 63, 63, 63, 63, 90, 90, 90, |
197, 195, 193, 192, 191, 190, 189, 188, 187, 182, |
90, 53, 255, 53, 58, 58, 96, 96, 96, 128, |
175, 170, 169, 168, 167, 166, 165, 164, 163, 162, |
128, 128, 130, 254, 130, 252, 249, 248, 247, 246, |
159, 158, 157, 156, 272, 272, 155, 154, 152, 150, |
245, 244, 243, 242, 241, 239, 238, 237, 236, 235, |
149, 147, 145, 144, 143, 142, 141, 140, 139, 137, |
233, 230, 228, 227, 226, 224, 223, 222, 221, 220, |
136, 135, 133, 132, 131, 129, 128, 126, 124, 124, |
219, 218, 216, 215, 214, 213, 212, 211, 210, 209, |
123, 119, 116, 112, 111, 109, 105, 104, 103, 102, |
206, 204, 202, 200, 199, 198, 197, 196, 195, 194, |
100, 99, 98, 97, 96, 49, 272, 94, 90, 87, |
189, 187, 181, 176, 175, 174, 173, 172, 171, 170, |
|
|
81, 80, 76, 75, 66, 48, 45, 272, 3, 272, |
169, 168, 167, 164, 163, 162, 161, 160, 159, 157, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
155, 153, 151, 149, 148, 147, 146, 145, 144, 143, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
142, 140, 139, 138, 136, 135, 134, 132, 131, 129, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
127, 127, 126, 118, 114, 113, 111, 110, 106, 105, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
104, 103, 101, 100, 99, 98, 97, 49, 285, 95, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
91, 88, 82, 81, 76, 75, 66, 48, 45, 285, |
272, 272, 272, 272, 272, 272, 272, 272, 272 |
3, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
|
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285 |
} ; | } ; |
| |
static yyconst short int yy_chk[470] = |
static yyconst short int yy_chk[523] = |
{ 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, 1, 1, 1, 1, 1, 1, 1, 1, | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
5, 5, 5, 6, 6, 6, 13, 16, 13, 13, |
1, 5, 5, 5, 6, 6, 6, 13, 74, 13, |
25, 16, 17, 25, 17, 17, 17, 17, 17, 17, |
13, 15, 15, 15, 15, 15, 15, 15, 15, 15, |
17, 17, 17, 27, 26, 28, 23, 17, 19, 19, |
16, 23, 27, 74, 16, 17, 23, 17, 17, 17, |
30, 23, 26, 38, 48, 28, 38, 45, 34, 27, |
17, 17, 17, 17, 17, 17, 26, 23, 27, 25, |
|
|
276, 19, 23, 33, 269, 144, 30, 17, 144, 38, |
17, 19, 19, 25, 26, 28, 30, 45, 34, 44, |
45, 268, 17, 18, 34, 18, 18, 18, 18, 18, |
44, 44, 38, 282, 19, 38, 28, 281, 280, 33, |
18, 18, 18, 18, 37, 33, 19, 34, 18, 69, |
45, 17, 30, 33, 104, 34, 17, 18, 38, 18, |
37, 44, 44, 44, 74, 48, 57, 57, 75, 81, |
18, 18, 18, 18, 18, 18, 18, 18, 34, 79, |
37, 69, 78, 83, 81, 84, 86, 87, 74, 57, |
19, 37, 18, 57, 57, 33, 33, 37, 48, 278, |
75, 99, 37, 18, 103, 78, 81, 267, 84, 83, |
104, 48, 79, 277, 276, 87, 57, 69, 37, 49, |
107, 115, 120, 87, 99, 86, 81, 133, 117, 57, |
49, 49, 49, 49, 49, 49, 49, 49, 18, 69, |
122, 132, 107, 115, 57, 145, 146, 149, 120, 103, |
37, 75, 84, 85, 86, 87, 82, 57, 100, 88, |
117, 150, 122, 132, 164, 148, 166, 148, 145, 146, |
108, 82, 57, 75, 86, 117, 85, 136, 84, 121, |
148, 148, 133, 149, 153, 169, 153, 164, 170, 153, |
123, 100, 108, 48, 82, 88, 48, 117, 48, 48, |
|
|
153, 189, 166, 195, 198, 203, 150, 199, 169, 246, |
48, 48, 48, 119, 82, 121, 123, 125, 148, 275, |
215, 226, 228, 236, 238, 195, 198, 189, 245, 199, |
272, 148, 152, 136, 152, 119, 155, 152, 152, 125, |
170, 203, 215, 226, 228, 246, 236, 238, 252, 253, |
129, 129, 129, 129, 129, 129, 129, 129, 129, 130, |
254, 245, 265, 255, 261, 264, 263, 262, 259, 251, |
130, 130, 130, 130, 130, 130, 130, 130, 135, 149, |
250, 244, 243, 254, 242, 253, 255, 261, 241, 240, |
150, 153, 155, 158, 171, 158, 169, 176, 158, 158, |
239, 234, 233, 252, 273, 273, 273, 273, 274, 274, |
135, 173, 149, 150, 175, 196, 187, 153, 263, 169, |
232, 274, 274, 274, 274, 274, 274, 274, 275, 275, |
171, 202, 206, 173, 207, 211, 224, 175, 187, 236, |
277, 277, 277, 277, 277, 278, 278, 278, 278, 278, |
176, 196, 235, 202, 206, 238, 207, 246, 224, 248, |
279, 279, 230, 227, 225, 224, 223, 279, 279, 280, |
256, 211, 257, 264, 235, 236, 265, 238, 266, 262, |
280, 281, 281, 222, 221, 281, 282, 282, 220, 219, |
246, 267, 248, 256, 274, 261, 255, 254, 257, 253, |
|
|
282, 283, 218, 283, 217, 214, 210, 209, 204, 200, |
252, 266, 265, 251, 267, 250, 249, 274, 244, 264, |
196, 193, 192, 191, 188, 187, 185, 184, 183, 182, |
286, 286, 286, 287, 243, 287, 287, 287, 287, 287, |
181, 180, 178, 177, 176, 174, 173, 172, 171, 168, |
287, 288, 288, 289, 289, 289, 289, 290, 290, 290, |
167, 165, 162, 161, 160, 158, 157, 156, 154, 151, |
290, 291, 242, 291, 292, 292, 293, 293, 293, 294, |
147, 143, 142, 141, 139, 138, 137, 136, 135, 134, |
294, 294, 295, 240, 295, 237, 234, 233, 232, 231, |
131, 130, 129, 128, 127, 126, 125, 123, 121, 119, |
230, 229, 228, 227, 226, 223, 219, 218, 217, 212, |
118, 116, 114, 113, 112, 111, 110, 109, 108, 106, |
208, 203, 200, 199, 198, 195, 194, 192, 191, 190, |
105, 104, 102, 101, 100, 98, 97, 94, 92, 91, |
189, 188, 186, 184, 183, 182, 180, 179, 178, 177, |
88, 85, 82, 80, 79, 76, 73, 72, 71, 70, |
174, 172, 170, 167, 166, 165, 163, 162, 161, 159, |
68, 67, 66, 65, 64, 58, 56, 53, 47, 39, |
156, 154, 151, 147, 146, 145, 144, 142, 141, 140, |
|
|
36, 35, 32, 31, 24, 10, 8, 3, 272, 272, |
139, 138, 137, 134, 133, 132, 131, 128, 126, 124, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
122, 120, 118, 116, 115, 114, 113, 112, 111, 110, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
109, 107, 106, 105, 103, 102, 101, 99, 98, 95, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
93, 92, 89, 83, 81, 80, 77, 76, 73, 72, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
71, 70, 68, 67, 66, 65, 64, 58, 56, 53, |
272, 272, 272, 272, 272, 272, 272, 272, 272, 272, |
47, 39, 36, 35, 32, 31, 24, 10, 8, 3, |
272, 272, 272, 272, 272, 272, 272, 272, 272 |
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
|
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285, 285, 285, 285, 285, 285, 285, 285, 285, |
|
285, 285 |
} ; | } ; |
| |
static yy_state_type yy_last_accepting_state; | static yy_state_type yy_last_accepting_state; |
|
|
/* Scope */ | /* Scope */ |
/* Flavor */ | /* Flavor */ |
/* Instance of */ | /* Instance of */ |
|
/* Object */ |
/* Alias */ | /* Alias */ |
/* #pragma */ | /* #pragma */ |
/* | /* |
|
|
** | ** |
**------------------------------------------------------------------------------ | **------------------------------------------------------------------------------ |
*/ | */ |
#line 636 "lex.yy.c" |
#line 657 "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. |
|
|
register char *yy_cp, *yy_bp; | register char *yy_cp, *yy_bp; |
register int yy_act; | register int yy_act; |
| |
#line 146 "mof.l" |
#line 150 "mof.l" |
| |
| |
#line 790 "lex.yy.c" |
#line 811 "lex.yy.c" |
| |
if ( yy_init ) | if ( yy_init ) |
{ | { |
|
|
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 >= 273 ) |
if ( yy_current_state >= 286 ) |
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] != 409 ); |
while ( yy_base[yy_current_state] != 461 ); |
| |
yy_find_action: | yy_find_action: |
yy_act = yy_accept[yy_current_state]; | yy_act = yy_accept[yy_current_state]; |
|
|
goto yy_find_action; | goto yy_find_action; |
| |
case YY_STATE_EOF(INITIAL): | case YY_STATE_EOF(INITIAL): |
#line 148 "mof.l" |
#line 152 "mof.l" |
{ | { |
if (s_top == 0) | if (s_top == 0) |
yyterminate(); | yyterminate(); |
|
|
YY_BREAK | YY_BREAK |
case 1: | case 1: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 158 "mof.l" |
#line 162 "mof.l" |
{ | { |
yylval.boolean = 1; | yylval.boolean = 1; |
return TOK_BOOLEAN_VALUE; | return TOK_BOOLEAN_VALUE; |
|
|
YY_BREAK | YY_BREAK |
case 2: | case 2: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 163 "mof.l" |
#line 167 "mof.l" |
{ | { |
yylval.boolean = 0; | yylval.boolean = 0; |
return TOK_BOOLEAN_VALUE; | return TOK_BOOLEAN_VALUE; |
|
|
YY_BREAK | YY_BREAK |
case 3: | case 3: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 168 "mof.l" |
#line 172 "mof.l" |
{ | { |
return TOK_NULL; | return TOK_NULL; |
} | } |
YY_BREAK | YY_BREAK |
case 4: | case 4: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 172 "mof.l" |
#line 176 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_BOOLEAN; | return TOK_BOOLEAN; |
} | } |
YY_BREAK | YY_BREAK |
case 5: | case 5: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 176 "mof.l" |
#line 181 "mof.l" |
{ | { |
return TOK_SINT8; | return TOK_SINT8; |
} | } |
YY_BREAK | YY_BREAK |
case 6: | case 6: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 180 "mof.l" |
#line 185 "mof.l" |
{ | { |
return TOK_UINT8; | return TOK_UINT8; |
} | } |
YY_BREAK | YY_BREAK |
case 7: | case 7: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 184 "mof.l" |
#line 189 "mof.l" |
{ | { |
return TOK_SINT16; | return TOK_SINT16; |
} | } |
YY_BREAK | YY_BREAK |
case 8: | case 8: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 188 "mof.l" |
#line 193 "mof.l" |
{ | { |
return TOK_UINT16; | return TOK_UINT16; |
} | } |
YY_BREAK | YY_BREAK |
case 9: | case 9: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 192 "mof.l" |
#line 197 "mof.l" |
{ | { |
return TOK_SINT32; | return TOK_SINT32; |
} | } |
YY_BREAK | YY_BREAK |
case 10: | case 10: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 196 "mof.l" |
#line 201 "mof.l" |
{ | { |
return TOK_UINT32; | return TOK_UINT32; |
} | } |
YY_BREAK | YY_BREAK |
case 11: | case 11: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 200 "mof.l" |
#line 205 "mof.l" |
{ | { |
return TOK_SINT64; | return TOK_SINT64; |
} | } |
YY_BREAK | YY_BREAK |
case 12: | case 12: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 204 "mof.l" |
#line 209 "mof.l" |
{ | { |
return TOK_UINT64; | return TOK_UINT64; |
} | } |
YY_BREAK | YY_BREAK |
case 13: | case 13: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 208 "mof.l" |
#line 213 "mof.l" |
{ | { |
return TOK_REAL32; | return TOK_REAL32; |
} | } |
YY_BREAK | YY_BREAK |
case 14: | case 14: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 212 "mof.l" |
#line 217 "mof.l" |
{ | { |
return TOK_REAL64; | return TOK_REAL64; |
} | } |
YY_BREAK | YY_BREAK |
case 15: | case 15: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 216 "mof.l" |
#line 221 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_DATETIME; | return TOK_DATETIME; |
} | } |
YY_BREAK | YY_BREAK |
case 16: | case 16: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 220 "mof.l" |
#line 226 "mof.l" |
{ | { |
return TOK_CHAR16; | return TOK_CHAR16; |
} | } |
YY_BREAK | YY_BREAK |
case 17: | case 17: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 224 "mof.l" |
#line 230 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_STRING; | return TOK_STRING; |
} | } |
YY_BREAK | YY_BREAK |
case 18: | case 18: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 228 "mof.l" |
#line 235 "mof.l" |
{ | { |
return TOK_REF; | return TOK_REF; |
} | } |
YY_BREAK | YY_BREAK |
case 19: | case 19: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 232 "mof.l" |
#line 239 "mof.l" |
{ | { |
return TOK_SCOPE; | return TOK_SCOPE; |
} | } |
YY_BREAK | YY_BREAK |
case 20: | case 20: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 236 "mof.l" |
#line 243 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_CLASS; | return TOK_CLASS; |
} | } |
YY_BREAK | YY_BREAK |
case 21: | case 21: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 240 "mof.l" |
#line 248 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_ASSOCIATION; | return TOK_ASSOCIATION; |
} | } |
YY_BREAK | YY_BREAK |
case 22: | case 22: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 244 "mof.l" |
#line 253 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_INDICATION; | return TOK_INDICATION; |
} | } |
YY_BREAK | YY_BREAK |
case 23: | case 23: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 248 "mof.l" |
#line 258 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_QUALIFIER; | return TOK_QUALIFIER; |
} | } |
YY_BREAK | YY_BREAK |
case 24: | case 24: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 252 "mof.l" |
#line 263 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_PROPERTY; | return TOK_PROPERTY; |
} | } |
YY_BREAK | YY_BREAK |
case 25: | case 25: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 256 "mof.l" |
#line 268 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_REFERENCE; | return TOK_REFERENCE; |
} | } |
YY_BREAK | YY_BREAK |
case 26: | case 26: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 260 "mof.l" |
#line 273 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_METHOD; | return TOK_METHOD; |
} | } |
YY_BREAK | YY_BREAK |
case 27: | case 27: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 264 "mof.l" |
#line 278 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_PARAMETER; | return TOK_PARAMETER; |
} | } |
YY_BREAK | YY_BREAK |
case 28: | case 28: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 268 "mof.l" |
#line 283 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_ANY; | return TOK_ANY; |
} | } |
YY_BREAK | YY_BREAK |
case 29: | case 29: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 272 "mof.l" |
#line 288 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_FLAVOR; | return TOK_FLAVOR; |
} | } |
YY_BREAK | YY_BREAK |
case 30: | case 30: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 276 "mof.l" |
#line 293 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_ENABLEOVERRIDE; | return TOK_ENABLEOVERRIDE; |
} | } |
YY_BREAK | YY_BREAK |
case 31: | case 31: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 280 "mof.l" |
#line 298 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_DISABLEOVERRIDE; | return TOK_DISABLEOVERRIDE; |
} | } |
YY_BREAK | YY_BREAK |
case 32: | case 32: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 284 "mof.l" |
#line 303 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_RESTRICTED; | return TOK_RESTRICTED; |
} | } |
YY_BREAK | YY_BREAK |
case 33: | case 33: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 288 "mof.l" |
#line 308 "mof.l" |
{ | { |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_TOSUBCLASS; | return TOK_TOSUBCLASS; |
} | } |
YY_BREAK | YY_BREAK |
case 34: | case 34: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 292 "mof.l" |
#line 313 "mof.l" |
{ | { |
return TOK_TRANSLATABLE; |
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
|
return TOK_TOINSTANCE; |
} | } |
YY_BREAK | YY_BREAK |
case 35: | case 35: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 296 "mof.l" |
#line 318 "mof.l" |
{ | { |
return TOK_INSTANCE; |
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
|
return TOK_TRANSLATABLE; |
} | } |
YY_BREAK | YY_BREAK |
case 36: | case 36: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 300 "mof.l" |
#line 323 "mof.l" |
{ | { |
return TOK_OF; |
return TOK_INSTANCE; |
} | } |
YY_BREAK | YY_BREAK |
case 37: | case 37: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 304 "mof.l" |
#line 327 "mof.l" |
{ | { |
return TOK_AS; |
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
|
return TOK_OF; |
} | } |
YY_BREAK | YY_BREAK |
case 38: | case 38: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 308 "mof.l" |
#line 332 "mof.l" |
{ | { |
return TOK_PRAGMA; |
return TOK_AS; |
} | } |
YY_BREAK | YY_BREAK |
case 39: | case 39: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 312 "mof.l" |
#line 336 "mof.l" |
|
{ |
|
return TOK_OBJECT; |
|
} |
|
YY_BREAK |
|
case 40: |
|
YY_RULE_SETUP |
|
#line 340 "mof.l" |
|
{ |
|
yylval.identifier = MOF_Strdup(&state.heap, yytext); |
|
return TOK_PRAGMA; |
|
} |
|
YY_BREAK |
|
case 41: |
|
YY_RULE_SETUP |
|
#line 345 "mof.l" |
{ | { |
/* C-sytle comments */ | /* C-sytle comments */ |
int c; | int c; |
|
|
unput(' '); | unput(' '); |
} | } |
YY_BREAK | YY_BREAK |
case 40: |
case 42: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 336 "mof.l" |
#line 369 "mof.l" |
{ | { |
/* C++-style comments */ | /* C++-style comments */ |
int c; | int c; |
|
|
} | } |
} | } |
YY_BREAK | YY_BREAK |
case 41: |
case 43: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 353 "mof.l" |
#line 386 "mof.l" |
{ | { |
/* Read a string literal */ | /* Read a string literal */ |
int c; | int c; |
|
|
return TOK_STRING_VALUE; | return TOK_STRING_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 42: |
case 44: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 404 "mof.l" |
#line 437 "mof.l" |
{ | { |
yylval.character = yytext[1]; | yylval.character = yytext[1]; |
return TOK_CHAR_VALUE; | return TOK_CHAR_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 43: |
case 45: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 409 "mof.l" |
#line 442 "mof.l" |
{ | { |
| |
switch (yytext[2]) | switch (yytext[2]) |
|
|
return TOK_CHAR_VALUE; | return TOK_CHAR_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 44: |
case 46: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 445 "mof.l" |
#line 478 "mof.l" |
{ | { |
char* end; | char* end; |
| |
|
|
return TOK_CHAR_VALUE; | return TOK_CHAR_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 45: |
case 47: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 465 "mof.l" |
#line 498 "mof.l" |
{ | { |
yylval.integer = 0; | yylval.integer = 0; |
return TOK_INTEGER_VALUE; | return TOK_INTEGER_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 46: |
case 48: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 470 "mof.l" |
#line 503 "mof.l" |
{ | { |
errno = 0; | errno = 0; |
if (yytext[0] == '-') | if (yytext[0] == '-') |
|
|
return TOK_INTEGER_VALUE; | return TOK_INTEGER_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 47: |
case 49: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 485 "mof.l" |
#line 518 "mof.l" |
{ | { |
yylval.real = (double)strtod(yytext, NULL); | yylval.real = (double)strtod(yytext, NULL); |
return TOK_REAL_VALUE; | return TOK_REAL_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 48: |
case 50: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 490 "mof.l" |
#line 523 "mof.l" |
{ | { |
errno = 0; | errno = 0; |
if (yytext[0] == '-') | if (yytext[0] == '-') |
|
|
return TOK_INTEGER_VALUE; | return TOK_INTEGER_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 49: |
case 51: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 505 "mof.l" |
#line 538 "mof.l" |
{ | { |
errno = 0; | errno = 0; |
if (yytext[0] == '-') | if (yytext[0] == '-') |
|
|
return TOK_INTEGER_VALUE; | return TOK_INTEGER_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 50: |
case 52: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 520 "mof.l" |
#line 553 "mof.l" |
{ | { |
char* end; | char* end; |
| |
|
|
return TOK_INTEGER_VALUE; | return TOK_INTEGER_VALUE; |
} | } |
YY_BREAK | YY_BREAK |
case 51: |
case 53: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 542 "mof.l" |
#line 575 "mof.l" |
{ | { |
yylval.identifier = MOF_Strdup(&state.heap, yytext); | yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_IDENT; | return TOK_IDENT; |
} | } |
YY_BREAK | YY_BREAK |
case 52: |
case 54: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 547 "mof.l" |
#line 580 "mof.l" |
{ | { |
yylval.identifier = MOF_Strdup(&state.heap, yytext); | yylval.identifier = MOF_Strdup(&state.heap, yytext); |
return TOK_ALIAS_IDENTIFIER; | return TOK_ALIAS_IDENTIFIER; |
} | } |
YY_BREAK | YY_BREAK |
case 53: |
case 55: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 552 "mof.l" |
#line 585 "mof.l" |
{ | { |
return '='; | return '='; |
} | } |
YY_BREAK | YY_BREAK |
case 54: |
case 56: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 556 "mof.l" |
#line 589 "mof.l" |
{ | { |
return '('; | return '('; |
} | } |
YY_BREAK | YY_BREAK |
case 55: |
case 57: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 560 "mof.l" |
#line 593 "mof.l" |
{ | { |
return ')'; | return ')'; |
} | } |
YY_BREAK | YY_BREAK |
case 56: |
case 58: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 564 "mof.l" |
#line 597 "mof.l" |
{ | { |
return '['; | return '['; |
} | } |
YY_BREAK | YY_BREAK |
case 57: |
case 59: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 568 "mof.l" |
#line 601 "mof.l" |
{ | { |
return ']'; | return ']'; |
} | } |
YY_BREAK | YY_BREAK |
case 58: |
case 60: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 572 "mof.l" |
#line 605 "mof.l" |
{ | { |
return '{'; | return '{'; |
} | } |
YY_BREAK | YY_BREAK |
case 59: |
case 61: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 576 "mof.l" |
#line 609 "mof.l" |
{ | { |
return '}'; | return '}'; |
} | } |
YY_BREAK | YY_BREAK |
case 60: |
case 62: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 580 "mof.l" |
#line 613 "mof.l" |
{ | { |
return ':'; | return ':'; |
} | } |
YY_BREAK | YY_BREAK |
case 61: |
case 63: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 584 "mof.l" |
#line 617 "mof.l" |
{ | { |
return ';'; | return ';'; |
} | } |
YY_BREAK | YY_BREAK |
case 62: |
case 64: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 588 "mof.l" |
#line 621 "mof.l" |
{ | { |
return ','; | return ','; |
} | } |
YY_BREAK | YY_BREAK |
case 63: |
case 65: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 592 "mof.l" |
#line 625 "mof.l" |
{ | { |
/* swallow whiteSpaceChar */ | /* swallow whiteSpaceChar */ |
int i; | int i; |
|
|
} | } |
} | } |
YY_BREAK | YY_BREAK |
case 64: |
case 66: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 603 "mof.l" |
#line 636 "mof.l" |
{ | { |
yyterminate(); | yyterminate(); |
} | } |
YY_BREAK | YY_BREAK |
case 65: |
case 67: |
YY_RULE_SETUP | YY_RULE_SETUP |
#line 607 "mof.l" |
#line 640 "mof.l" |
ECHO; | ECHO; |
YY_BREAK | YY_BREAK |
#line 1531 "lex.yy.c" |
#line 1587 "lex.yy.c" |
| |
case YY_END_OF_BUFFER: | case YY_END_OF_BUFFER: |
{ | { |
|
|
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 >= 273 ) |
if ( yy_current_state >= 286 ) |
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]; |
|
|
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 >= 273 ) |
if ( yy_current_state >= 286 ) |
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 == 272); |
yy_is_jam = (yy_current_state == 285); |
| |
return yy_is_jam ? 0 : yy_current_state; | return yy_is_jam ? 0 : yy_current_state; |
} | } |
|
|
yy_size_t size; | yy_size_t size; |
#endif | #endif |
{ | { |
return (void *) malloc( size ); |
return (void *) PAL_Malloc( size ); |
} | } |
| |
#ifdef YY_USE_PROTOS | #ifdef YY_USE_PROTOS |
|
|
* any pointer type to void*, and deal with argument conversions | * any pointer type to void*, and deal with argument conversions |
* as though doing an assignment. | * as though doing an assignment. |
*/ | */ |
return (void *) realloc( (char *) ptr, size ); |
return (void *) PAL_Realloc( (char *) ptr, size ); |
} | } |
| |
#ifdef YY_USE_PROTOS | #ifdef YY_USE_PROTOS |
|
|
void *ptr; | void *ptr; |
#endif | #endif |
{ | { |
free( ptr ); |
PAL_Free( ptr ); |
} | } |
| |
#if YY_MAIN | #if YY_MAIN |
|
|
return 0; | return 0; |
} | } |
#endif | #endif |
#line 607 "mof.l" |
#line 640 "mof.l" |
| |
| |
/* | /* |
|
|
} | } |
| |
/* Open the file */ | /* Open the file */ |
if ((is = Fopen(path, "rb")) == NULL) |
if ((is = File_Open(path, "rb")) == NULL) |
{ | { |
yyerrorf(ID_FAILED_TO_OPEN_FILE, "failed to open file: \"%s\"", path); | yyerrorf(ID_FAILED_TO_OPEN_FILE, "failed to open file: \"%s\"", path); |
return -1; | return -1; |
|
|
const char* const* paths, | const char* const* paths, |
size_t numPaths) | size_t numPaths) |
{ | { |
MOF_Parser* self = (MOF_Parser*)calloc(1, sizeof(MOF_Parser)); |
MOF_Parser* self = (MOF_Parser*)PAL_Calloc(1, sizeof(MOF_Parser)); |
size_t i; | size_t i; |
char* str; | char* str; |
| |
|
|
if (!str) | if (!str) |
{ | { |
MOF_Release(&self->state.heap); | MOF_Release(&self->state.heap); |
free(self); |
PAL_Free(self); |
return NULL; | return NULL; |
} | } |
| |
|
|
if (self) | if (self) |
{ | { |
MOF_Release(&self->state.heap); | MOF_Release(&self->state.heap); |
free(self); |
PAL_Free(self); |
} | } |
} | } |
| |
|
|
state = self->state; | state = self->state; |
| |
/* Open input */ | /* Open input */ |
yyin = Fopen(path, "rb"); |
yyin = File_Open(path, "rb"); |
| |
if (!yyin) | if (!yyin) |
{ | { |
|
|
return 0; | return 0; |
} | } |
| |
|
/* Parse a MOF string */ |
|
int MOF_Parser_ParseString(MOF_Parser* self, const char* mof_string) |
|
{ |
|
YY_BUFFER_STATE bp; |
|
|
|
/* Reject null parameters */ |
|
if (!self || !mof_string) |
|
return -1; |
|
|
|
/* Clear stack */ |
|
s_top = 0; |
|
|
|
/* Set global state */ |
|
state = self->state; |
|
|
|
/* Save path */ |
|
state.path = MOF_Strdup(&state.heap, "MOF string"); |
|
|
|
/* Set initialize line number */ |
|
state.line = 1; |
|
|
|
/* Clear the parser state */ |
|
yy_c_buf_p = 0; |
|
yy_last_accepting_cpos = 0; |
|
yy_init = 1; |
|
|
|
/* Run the parser */ |
|
bp = yy_scan_string(mof_string); |
|
yy_switch_to_buffer(bp); |
|
if (yyparse() != 0) |
|
{ |
|
yy_delete_buffer(bp); |
|
self->state = state; |
|
memset(&state.heap, 0, sizeof(state)); |
|
return -1; |
|
} |
|
|
|
/* Perform post processing (which requires first pass completion) */ |
|
if (PerformPostProcessing() != 0) |
|
{ |
|
yy_delete_buffer(bp); |
|
self->state = state; |
|
memset(&state.heap, 0, sizeof(state)); |
|
return -1; |
|
} |
|
|
|
/* Close stream and release parse buffer */ |
|
yy_delete_buffer(bp); |
|
|
|
/* Restore state */ |
|
self->state = state; |
|
memset(&state.heap, 0, sizeof(state)); |
|
|
|
return 0; |
|
} |
|
|
void MOF_Parser_Dump(MOF_Parser* self, FILE* file) | void MOF_Parser_Dump(MOF_Parser* self, FILE* file) |
{ | { |
size_t i; | size_t i; |
|
|
for (i = 0; i < self->state.instanceDecls.size; i++) | for (i = 0; i < self->state.instanceDecls.size; i++) |
MOF_PrintInstanceDecl(self->state.instanceDecls.data[i], file); | MOF_PrintInstanceDecl(self->state.instanceDecls.data[i], file); |
} | } |
|
|
|
void MOF_Parser_EnableExtensions(MOF_Parser* self, MI_Boolean enabled) |
|
{ |
|
self->state.extensionsEnabled = enabled; |
|
return; |
|
} |