ddlp.c
来自「db.* (pronounced dee-be star) is an adva」· C语言 代码 · 共 2,072 行 · 第 1/5 页
C
2,072 行
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */static const unsigned short yyprhs[] ={ 0, 0, 3, 8, 12, 14, 17, 19, 21, 24, 26, 28, 30, 32, 34, 40, 46, 52, 58, 62, 65, 69, 73, 76, 79, 82, 88, 93, 95, 97, 100, 106, 110, 116, 122, 126, 130, 137, 144, 148, 150, 154, 157, 159, 163, 165, 168, 170, 172, 174, 176, 178, 183, 187, 192, 196, 200, 207, 216, 221, 222, 226, 228, 231, 235, 239, 243, 247, 251, 253, 255, 256, 260, 264, 266, 268, 273, 277, 280, 284, 288, 290, 293, 295, 298, 305, 309, 312, 315, 320, 321, 322, 324, 328, 331, 332, 334, 335, 338, 340, 343, 345, 346, 348, 351, 355, 359, 361, 364, 370, 373, 375, 378, 382, 384, 386, 387, 393, 398, 404, 409, 415, 420, 425, 429, 434, 438, 440, 442, 444, 446, 448, 450, 454, 456, 459, 463};/* YYRHS -- A `-1'-separated list of the rules' RHS. */static const yysigned_char yyrhs[] ={ 57, 0, -1, 59, 70, 73, 58, -1, 70, 73, 58, -1, 47, -1, 47, 48, -1, 1, -1, 60, -1, 60, 59, -1, 61, -1, 62, -1, 63, -1, 64, -1, 69, -1, 9, 44, 50, 25, 48, -1, 9, 44, 50, 44, 48, -1, 9, 44, 50, 25, 1, -1, 9, 44, 50, 44, 1, -1, 9, 44, 1, -1, 9, 1, -1, 13, 44, 25, -1, 13, 44, 44, -1, 18, 44, -1, 65, 48, -1, 65, 1, -1, 66, 44, 46, 67, 47, -1, 66, 46, 67, 47, -1, 37, -1, 68, -1, 68, 67, -1, 91, 93, 44, 94, 48, -1, 91, 93, 1, -1, 40, 93, 44, 94, 48, -1, 40, 93, 44, 94, 1, -1, 40, 93, 1, -1, 12, 44, 46, -1, 12, 44, 51, 25, 52, 46, -1, 12, 44, 51, 44, 52, 46, -1, 12, 44, 1, -1, 72, -1, 71, 49, 72, -1, 1, 48, -1, 44, -1, 44, 53, 44, -1, 74, -1, 73, 74, -1, 75, -1, 76, -1, 84, -1, 104, -1, 1, -1, 39, 32, 71, 48, -1, 39, 32, 48, -1, 39, 35, 71, 48, -1, 39, 35, 48, -1, 39, 1, 48, -1, 80, 83, 77, 10, 71, 48, -1, 80, 44, 50, 83, 77, 10, 71, 48, -1, 80, 16, 1, 48, -1, -1, 54, 78, 55, -1, 79, -1, 78, 79, -1, 19, 50, 25, -1, 24, 50, 25, -1, 29, 50, 25, -1, 30, 50, 25, -1, 81, 16, 82, -1, 11, -1, 20, -1, -1, 51, 25, 52, -1, 51, 44, 52, -1, 44, -1, 45, -1, 85, 87, 98, 58, -1, 85, 87, 58, -1, 85, 58, -1, 86, 1, 58, -1, 86, 44, 46, -1, 31, -1, 36, 31, -1, 88, -1, 87, 88, -1, 91, 93, 44, 94, 89, 48, -1, 91, 93, 1, -1, 1, 48, -1, 15, 44, -1, 33, 44, 38, 44, -1, -1, -1, 42, -1, 92, 41, 20, -1, 92, 20, -1, -1, 26, -1, -1, 90, 44, -1, 65, -1, 95, 96, -1, 95, -1, -1, 97, -1, 96, 97, -1, 51, 25, 52, -1, 51, 44, 52, -1, 99, -1, 98, 99, -1, 8, 100, 46, 101, 47, -1, 91, 44, -1, 102, -1, 101, 102, -1, 44, 103, 48, -1, 4, -1, 14, -1, -1, 5, 34, 105, 109, 58, -1, 5, 34, 1, 58, -1, 6, 34, 105, 109, 58, -1, 6, 34, 1, 58, -1, 43, 34, 105, 109, 58, -1, 43, 34, 1, 58, -1, 34, 105, 109, 58, -1, 34, 1, 58, -1, 44, 46, 106, 108, -1, 27, 107, 48, -1, 17, -1, 21, -1, 4, -1, 14, -1, 24, -1, 44, -1, 28, 44, 48, -1, 110, -1, 109, 110, -1, 23, 44, 48, -1, 23, 44, 7, 71, 48, -1};/* YYRLINE[YYN] -- source line where rule number YYN was defined. */static const unsigned short yyrline[] ={ 0, 99, 99, 100, 102, 103, 109, 120, 121, 124, 125, 126, 127, 128, 133, 140, 152, 158, 164, 170, 180, 187, 203, 208, 209, 219, 246, 262, 268, 269, 274, 284, 294, 302, 308, 318, 323, 345, 372, 385, 403, 443, 454, 464, 478, 479, 484, 485, 486, 487, 496, 504, 510, 516, 522, 528, 538, 544, 550, 561, 562, 568, 569, 574, 576, 578, 580, 603, 609, 611, 618, 624, 643, 670, 676, 686, 687, 688, 689, 699, 713, 715, 721, 722, 727, 780, 786, 796, 813, 825, 837, 838, 844, 853, 863, 868, 885, 890, 905, 910, 911, 917, 930, 931, 936, 948, 972, 973, 978, 983, 998, 999, 1004, 1014, 1016, 1019, 1024, 1028, 1034, 1038, 1044, 1048, 1054, 1055, 1065, 1076, 1081, 1083, 1085, 1087, 1089, 1091, 1103, 1114, 1126, 1141, 1155};#endif#if YYDEBUG || YYERROR_VERBOSE/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */static const char *const yytname[] ={ "$end", "error", "$undefined", "T_ALLOCATION", "T_ASCENDING", "T_BITMAP", "T_BLOB", "T_BY", "T_COMPOUND", "T_CONST", "T_CONTAINS", "T_DATA", "T_DATABASE", "T_DEFINE", "T_DESCENDING", "T_DIRECTREF", "T_FILE", "T_FIRST", "T_INCLUDE", "T_INITIAL", "T_KEY", "T_LAST", "T_LINE", "T_MEMBER", "T_NEXT", "T_NUMBER", "T_OPTIONAL", "T_ORDER", "T_OWNER", "T_PCTINCREASE", "T_PAGESIZE", "T_RECORD", "T_RECS", "T_RELATEDTO", "T_SET", "T_SETS", "T_STATIC", "T_STRUCT", "T_THRU", "T_TIMESTAMP", "T_TYPEDEF", "T_UNIQUE", "T_UNSIGNED", "T_VARILEN", "T_IDENT", "T_STRING", "'{'", "'}'", "';'", "','", "'='", "'['", "']'", "'.'", "'('", "')'", "$accept", "ddl", "closing_brace", "cpp_cmnds", "cpp_cmnd", "const_cmnd", "define_cmnd", "include_cmnd", "struct_cmnd", "struct_spec", "struct_init", "struct_elems", "struct_elem", "typedef_cmnd", "db_spec", "id_list", "id_item", "ddl_stmts", "ddl_stmt", "timestamp", "file_spec", "allocation", "alloc_opts", "alloc_opt", "file_type", "data_or_key", "file_size", "file_id", "record_spec", "rec_id", "rec_type", "field_defs", "field_spec", "om_field", "sign", "key_spec", "opt_key", "type_spec", "size_specs", "size_init", "size_decls", "size", "key_defs", "key_field", "key_id", "comfld_defs", "comfld_spec", "key_order", "set_spec", "set_prefix", "ordering", "order_type", "owner", "members", "member", 0};#endif# ifdef YYPRINT/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */static const unsigned short yytoknum[] ={ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 123, 125, 59, 44, 61, 91, 93, 46, 40, 41};# endif/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */static const unsigned char yyr1[] ={ 0, 56, 57, 57, 58, 58, 58, 59, 59, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 62, 62, 63, 64, 64, 65, 65, 66, 67, 67, 68, 68, 69, 69, 69, 70, 70, 70, 70, 71, 71, 71, 72, 72, 73, 73, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 76, 76, 76, 77, 77, 78, 78, 79, 79, 79, 79, 80, 81, 81, 82, 82, 82, 83, 83, 84, 84, 84, 84, 85, 86, 86, 87, 87, 88, 88, 88, 89, 89, 89, 90, 90, 91, 91, 91, 92, 92, 93, 93, 94, 94, 95, 96, 96, 97, 97, 98, 98, 99, 100, 101, 101, 102, 103, 103, 103, 104, 104, 104, 104, 104, 104, 104, 104, 105, 106, 107, 107, 107, 107, 107, 107, 108, 109, 109, 110, 110};/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */static const unsigned char yyr2[] ={ 0, 2, 4, 3, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 5, 5, 5, 5, 3, 2, 3, 3, 2, 2, 2, 5, 4, 1, 1, 2, 5, 3, 5, 5, 3, 3, 6, 6, 3, 1, 3, 2, 1, 3, 1, 2, 1, 1, 1, 1, 1, 4, 3, 4, 3, 3, 6, 8, 4, 0, 3, 1, 2, 3, 3, 3, 3, 3, 1, 1, 0, 3, 3, 1, 1, 4, 3, 2, 3, 3, 1, 2, 1, 2, 6, 3, 2, 2, 4, 0, 0, 1, 3, 2, 0, 1, 0, 2, 1, 2, 1, 0, 1, 2, 3, 3, 1, 2, 5, 2, 1, 2, 3, 1, 1, 0, 5, 4, 5, 4, 5, 4, 4, 3, 4, 3, 1, 1, 1, 1, 1, 1, 3, 1, 2, 3, 5};/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */static const unsigned char yydefact[] ={ 0, 0, 0, 0, 0, 27, 90, 0, 0, 7, 9, 10, 11, 12, 0, 0, 13, 0, 19, 0, 0, 0, 22, 91, 98, 0, 0, 1, 0, 8, 24, 23, 0, 94, 50, 0, 0, 68, 69, 80, 0, 0, 0, 0, 0, 44, 46, 47, 0, 0, 48, 0, 0, 49, 18, 0, 38, 35, 0, 20, 21, 97, 34, 101, 0, 94, 95, 0, 94, 90, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 50, 4, 3, 45, 0, 73, 74, 59, 70, 6, 77, 0, 82, 90, 0, 0, 0, 0, 0, 0, 0, 100, 2, 0, 26, 29, 0, 93, 0, 0, 0, 0, 0, 6, 123, 0, 0, 0, 133, 55, 0, 42, 52, 0, 39, 54, 0, 0, 0, 5, 0, 0, 0, 0, 0, 67, 86, 96, 76, 83, 0, 106, 0, 78, 79, 16, 14, 17, 15, 0, 0, 33, 32, 0, 99, 102, 25, 31, 101, 92, 117, 0, 119, 0, 0, 0, 0, 122, 134, 41, 0, 51, 0, 53, 121, 0, 58, 73, 59, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 0, 75, 107, 85, 101, 36, 37, 0, 0, 103, 0, 116, 118, 128, 129, 126, 127, 130, 131, 0, 0, 124, 0, 135, 43, 40, 120, 0, 0, 0, 0, 0, 60, 62, 0, 71, 72, 109, 0, 89, 104, 105, 30, 125, 0, 0, 0, 63, 64, 65, 66, 56, 115, 0, 110, 0, 0, 0, 132, 136, 0, 113, 114, 0, 108, 111, 87, 0, 84, 57, 112, 0, 88};/* YYDEFGOTO[NTERM-NUM]. */static const short yydefgoto[] ={ -1, 7, 83, 8, 9, 10, 11, 12, 13, 24, 15, 67, 68, 16, 17, 124, 125, 44, 45, 46, 47, 134, 184, 185, 48, 49, 136, 88, 50, 51, 52, 92, 93, 247, 25, 69, 70, 26, 101, 102, 155, 156, 141, 142, 190, 243, 244, 253, 53, 75, 166, 209, 211, 118, 119};/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */#define YYPACT_NINF -116static const short yypact[] ={ 142, 7, -23, -15, 40, -116, 138, 44, 116, 159, -116, -116, -116, -116, 9, 97, -116, 147, -116, 3, 4, 62, -116, -116, -116, 80, 25, -116, 147, -116, -116, -116, 117, 105, -116, 131, 137, -116, -116, -116, 29, 154, 129, 139, 66, -116, -116, -116, -10, 179, -116, 103, 30, -116, -116, 67, -116, -116, 73, -116, -116, -116, -116, -116, 66, 105, -116, 150, 75, 138, 5, 31, 32, 23, 165, 177, -116, 161, 8, 10, 35, 218, 171, -116, -116, 219, 172, -116, 167, 173, 175, -116, 95, -116, 138, 23, 180, 11, 15, 176, 178, 16, 181, -116, 182, -116, -116, 36, -116, 205, 23, 177, 23, 177, -116, -116, 200, 187, 18, -116, -116, 185, 183, -116, 86, -116, -116, 157, 23, 177, -116, 186, 163, 174, 225, 74, -116, -116, 112, -116, -116, 19, -116, 37, -116, -116, -116, -116, -116, -116, 191, 192, -116, -116, 83, 181, -116, -116, -116, -116, -116, -116, 18, -116, 18, 145, 211, 0, -116, -116, -116, 196, -116, 197, -116, -116, 18, -116, -116, 167, 193, 194, 195, 198, 64, -116, 38, 190, 199, 202, 201, -116, -116, -116, -116, -116, -116, 203, 204, -116, 206, -116, -116, -116, -116, -116, -116, -116, -116, 209, 208, -116, 38, -116, -116, -116, -116, 239, 228, 233, 234, 235, -116, -116, 164, -116, -116, -116, 217, 155, -116, -116, -116, -116, 214, 166, 38, -116, -116, -116, -116, -116, 14, 140, -116, 220, 221, 215, -116, -116, 168, -116, -116, 222, -116, -116, -116, 212, -116, -116, -116, 223, -116};/* YYPGOTO[NTERM-NUM]. */static const short yypgoto[] ={ -116, -116, -50, 257, -116, -116, -116, -116, -116, 13, -116, 126, -116, -116, 260, -79, 96, 243, 46, -116, -116, 93, -116, 89, -116, -116, -116, 143, -116, -116, -116, -116, 184, -116, -116, -49, -116, -54, -74, -116, -116, 119, -116, 136, -116, -116, 39, -116, -116, 130, -116, -116, -116, 63, -115};/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */#define YYTABLE_NINF -97static const short yytable[] ={ 127, 91, 94, 169, 54, 56, 85, 212, 18, 121, 30, 121, 146, 14, 103, 107, 148, 152, 251, 114, 114, 20, 14, 115, 114, 108, 62, 138, 252, 21, 73, 95, 110, 112, 86, 87, 128, 158, 193, 121, 143, 117, 139, 94, 27, 144, 109, 169, 213, 169, 57, 19, 122, 55, 122, 58, 123, 31, 126, 147, 161, 169, 163, 149, 153, 82, 82, 81, 168, 63, 82, 35, 36, 74, 96, 74, 74, 37, 175, 74, 159, 194, 122, 180, 22, 200, 38, 59, 181, 189, 84, 191, 97, 182, 183, -96, 90, 39, 99, 187, 40, 66, 41, 138, 90, 42, 60, 224, 197, 43, 84, 98, 201, 82, 202, -96, -96, 100, 188, 222, 229, 66, -28, -96, 61, -96, 216, 198, 2, 66, 77, 66, -94, 235, 172, 173, -96, -94, 66, -94, -94, 32, 82, 33, -96, -94, -96, -94, 34, 203, 82, 1, 35, 36, 2, 3, -94, 250, 37, 204, 4, 78, 205, 65, 79, 71, 206, 38, 1, 207, 245, 72, 3, 80, 162, 5, 164, 4, 39, 5, 23, 40, 6, 41, 242, 76, 42, 254, 246, 208, 43, 104, 176, 180, 106, 89, 5, 105, 181, 6, 117, 111, 113, 182, 183, 174, 173, 178, 87, 120, 129, 116, 241, 173, 249, 173, 259, 173, -6, 130, 131, 133, 132, 137, 135, 160, 145, 165, 150, 157, 151, 167, 154, 170, 177, 186, 171, 195, 196, 210, 214, 122, 225, 218, 219, 220, 227, 228, 221, 236, 261, 226, 234, 237, 232, 230, 231, 233, 238, 239, 240, 242, 248, 258, 256, 257, 29, 262, 28, 215, 260, 64, 217, 223, 199, 179, 140, 192, 0, 0, 0, 0, 255};static const short yycheck[] ={ 79, 51, 51, 118, 1, 1, 16, 7, 1, 1, 1, 1, 1, 0, 64, 69, 1, 1, 4, 1, 1, 44, 9, 73, 1, 20, 1, 8, 14, 44, 1, 1, 1, 1, 44, 45, 1, 1, 1, 1, 94, 23, 92, 92, 0, 95, 41, 162, 48, 164, 46, 44, 44, 50, 44, 51, 48, 48, 48, 48, 110, 176, 112, 48, 48, 47, 47, 1, 118, 44, 47, 5, 6, 44, 44, 44, 44, 11, 128, 44, 44, 44, 44, 19, 44, 159, 20, 25, 24, 138, 44, 141, 25, 29, 30, 20, 1, 31, 25, 25, 34, 26, 36, 8, 1, 39, 44, 186, 25, 43, 64, 44, 162, 47, 164, 20, 41, 44, 44, 55, 194, 26, 47, 20, 44, 20, 176, 44, 12, 26, 1, 26, 37, 212, 48, 49, 41, 42, 26, 44, 37, 44, 47, 46, 41, 42, 41, 44, 1, 4, 47, 9, 5, 6, 12, 13, 44, 236, 11, 14, 18, 32, 17, 46, 35, 34, 21, 20, 9, 24, 15, 34, 13, 34, 111, 37, 113, 18, 31, 37, 42, 34, 40, 36, 44, 31, 39, 47, 33, 44, 43, 65, 129, 19, 68, 16, 37, 47, 24, 40, 23, 71, 72, 29, 30, 48, 49, 44, 45, 48, 80, 46, 48, 49, 48, 49, 48, 49, 0, 48, 1, 54, 50, 48, 51, 20, 46, 27, 52, 47, 52, 44, 51, 48, 48, 10, 53, 46, 46, 28, 44, 44, 52, 50, 50, 50, 44, 46, 50, 10, 38, 52, 44, 25, 48, 52, 52, 48, 25, 25, 25, 44, 48, 48, 44, 44, 9, 44, 8, 173, 48, 28, 179, 184, 155, 132, 92, 141, -1, -1, -1, -1, 243};/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */static const unsigned char yystos[] ={ 0, 9, 12, 13, 18, 37, 40, 57, 59, 60, 61, 62, 63, 64, 65, 66, 69, 70, 1, 44, 44, 44, 44, 42, 65, 90, 93, 0, 70, 59, 1, 48, 44, 46, 1, 5, 6, 11, 20, 31, 34, 36, 39, 43, 73, 74, 75, 76, 80, 81, 84, 85, 86, 104, 1, 50, 1, 46, 51, 25, 44, 44, 1, 44, 73, 46, 26, 67, 68, 91, 92, 34, 34, 1, 44, 105, 31, 1, 32, 35, 34, 1, 47, 58, 74, 16, 44, 45, 83, 16, 1, 58, 87, 88, 91, 1, 44, 25, 44, 25, 44, 94, 95, 58, 67, 47, 67, 93, 20, 41, 1, 105, 1, 105, 1, 58, 46, 23, 109, 110, 48, 1, 44, 48, 71, 72, 48, 71, 1, 105, 48, 1, 50, 54, 77, 51, 82, 48, 8, 58, 88, 98, 99, 93, 58, 46, 1, 48, 1, 48, 52, 52, 1, 48, 51, 96, 97, 47, 1, 44, 20, 58, 109, 58, 109, 27, 106, 44, 58, 110, 48, 53, 48, 49, 48, 58, 109, 48, 44, 83, 19, 24, 29, 30, 78, 79, 10, 25, 44, 91, 100, 58, 99, 1, 44, 46, 46, 25, 44, 97, 94, 58, 58, 4, 14, 17, 21, 24, 44, 107, 28, 108, 7, 48, 44, 72, 58, 77, 50, 50, 50, 50, 55, 79, 71, 52, 52, 44, 46, 94, 52, 52, 48, 48, 44, 71, 10, 25, 25, 25, 25, 48, 44, 101, 102, 15, 33, 89, 48, 48, 71, 4, 14, 103, 47, 102, 44, 44, 48, 48, 48, 38, 44};#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# if defined (__STDC__) || defined (__cplusplus)# include <stddef.h> /* INFRINGES ON USER NAME SPACE */# define YYSIZE_T size_t# endif#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#define yyerrok (yyerrstatus = 0)#define yyclearin (yychar = YYEMPTY)#define YYEMPTY (-2)#define YYEOF 0#define YYACCEPT goto yyacceptlab#define YYABORT goto yyabortlab#define YYERROR goto yyerrorlab/* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */#define YYFAIL goto yyerrlab#define YYRECOVERING() (!!yyerrstatus)#define YYBACKUP(Token, Value) \do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?