Changeset 609 for branches/GNU/src/binutils/gas/m68k-parse.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/m68k-parse.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 2 /* A Bison parser, made from m68k-parse.y 3 by GNU Bison version 1.28 */ 1 /* A Bison parser, made from m68k-parse.y 2 by GNU bison 1.35. */ 4 3 5 4 #define YYBISON 1 /* Identify Bison output. */ 6 5 7 # define DR 2578 # define AR 2589 # define FPR 25910 # define FPCR 26011 # define LPC 26112 # define ZAR 26213 # define ZDR 26314 # define LZPC 26415 # define CREG 26516 # define INDEXREG 26617 # define EXPR 2676 # define DR 257 7 # define AR 258 8 # define FPR 259 9 # define FPCR 260 10 # define LPC 261 11 # define ZAR 262 12 # define ZDR 263 13 # define LZPC 264 14 # define CREG 265 15 # define INDEXREG 266 16 # define EXPR 267 18 17 19 18 #line 27 "m68k-parse.y" … … 23 22 #include "tc-m68k.h" 24 23 #include "m68k-parse.h" 24 #include "safe-ctype.h" 25 25 26 26 /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, … … 83 83 84 84 85 #line 93 "m68k-parse.y" 85 #line 94 "m68k-parse.y" 86 #ifndef YYSTYPE 86 87 typedef union 87 88 { … … 91 92 unsigned long mask; 92 93 int onereg; 93 } YYSTYPE; 94 #include <stdio.h> 95 96 #ifndef __cplusplus 97 #ifndef __STDC__ 98 #define const 99 #endif 94 } yystype; 95 # define YYSTYPE yystype 96 # define YYSTYPE_IS_TRIVIAL 1 97 #endif 98 #ifndef YYDEBUG 99 # define YYDEBUG 0 100 100 #endif 101 101 … … 106 106 #define YYNTBASE 25 107 107 108 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ 108 109 #define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 44) 109 110 110 static const char yytranslate[] = { 0, 111 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 112 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 113 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 114 2, 2, 2, 2, 14, 2, 2, 15, 2, 16, 115 17, 2, 18, 20, 19, 2, 24, 2, 2, 2, 116 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 117 2, 2, 2, 23, 2, 2, 2, 2, 2, 2, 118 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 119 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 120 21, 2, 22, 2, 2, 2, 2, 2, 2, 2, 121 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 122 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 123 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 124 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 125 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 126 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 127 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 128 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 129 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 130 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 131 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 132 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 133 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 134 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 135 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 136 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 137 7, 8, 9, 10, 11, 12, 13 111 /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ 112 static const char yytranslate[] = 113 { 114 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 115 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 116 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 117 2, 2, 2, 2, 2, 14, 2, 2, 15, 2, 118 16, 17, 2, 18, 20, 19, 2, 24, 2, 2, 119 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 120 2, 2, 2, 2, 23, 2, 2, 2, 2, 2, 121 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 122 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 123 2, 21, 2, 22, 2, 2, 2, 2, 2, 2, 124 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 125 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 126 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 127 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 128 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 129 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 130 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 131 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 132 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 133 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 134 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 135 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 136 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 137 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 138 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 139 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 140 6, 7, 8, 9, 10, 11, 12, 13 138 141 }; 139 142 140 #if YYDEBUG != 0 141 static const short yyprhs[] = { 0, 142 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 143 21, 24, 26, 30, 35, 40, 46, 52, 57, 61, 144 65, 69, 77, 85, 92, 98, 105, 111, 118, 124, 145 130, 135, 145, 153, 162, 169, 180, 189, 200, 209, 146 218, 221, 225, 229, 235, 242, 253, 263, 274, 276, 147 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 148 298, 300, 302, 303, 305, 307, 309, 310, 313, 314, 149 317, 318, 321, 323, 327, 331, 333, 335, 339, 343, 150 347, 349, 351, 353 143 #if YYDEBUG 144 static const short yyprhs[] = 145 { 146 0, 0, 2, 4, 6, 8, 10, 12, 14, 16, 147 18, 21, 24, 26, 30, 35, 40, 46, 52, 57, 148 61, 65, 69, 77, 85, 92, 98, 105, 111, 118, 149 124, 130, 135, 145, 153, 162, 169, 180, 189, 200, 150 209, 218, 221, 225, 229, 235, 242, 253, 263, 274, 151 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 152 296, 298, 300, 302, 303, 305, 307, 309, 310, 313, 153 314, 317, 318, 321, 323, 327, 331, 333, 335, 339, 154 343, 347, 349, 351, 353 151 155 }; 152 153 static const short yyrhs[] = { 26, 154 0, 27, 0, 28, 0, 3, 0, 4, 0, 5,155 0, 6, 0, 11, 0, 13, 0, 14, 13, 0,156 15, 13, 0, 40, 0, 16, 4, 17, 0, 16,157 4, 17, 18, 0, 19, 16, 4, 17, 0, 16,158 13, 20, 34, 17, 0, 16, 34, 20, 13, 17,159 0, 13, 16, 34, 17, 0, 16, 7, 17, 0,160 16, 8, 17, 0, 16, 10, 17, 0, 16, 13,161 20, 34, 20, 29, 17, 0, 16, 13, 20, 34,162 20, 36, 17, 0, 16, 13, 20, 30, 37, 17,163 0, 16, 30, 20, 13, 17, 0, 13, 16, 34,164 20, 29, 17, 0, 16, 34, 20, 29, 17, 0,165 13, 16, 34, 20, 36, 17, 0, 16, 34, 20,166 36, 17, 0, 13, 16, 30, 37, 17, 0, 16,167 30, 37, 17, 0, 16, 21, 13, 37, 22, 20,168 29, 38, 17, 0, 16, 21, 13, 37, 22, 38,169 17, 0, 16, 21, 34, 22, 20, 29, 38, 17,170 0, 16, 21, 34, 22, 38, 17, 0, 16, 21,171 13, 20, 34, 20, 29, 22, 38, 17, 0, 16,172 21, 34, 20, 29, 22, 38, 17, 0, 16, 21,173 13, 20, 34, 20, 36, 22, 38, 17, 0, 16,174 21, 34, 20, 36, 22, 38, 17, 0, 16, 21,175 39, 30, 37, 22, 38, 17, 0, 35, 23, 0,176 35, 23, 18, 0, 35, 23, 19, 0, 35, 23,177 16, 13, 17, 0, 35, 23, 16, 39, 29, 17,178 0, 35, 23, 16, 13, 17, 23, 16, 39, 29,179 17, 0, 35, 23, 16, 13, 17, 23, 16, 13,180 17, 0, 35, 23, 16, 39, 29, 17, 23, 16,181 13, 17, 0, 12, 0, 31, 0, 12, 0, 32,182 0, 32, 0, 4, 0, 8, 0, 3, 0, 9,183 0, 4, 0, 7, 0, 33, 0, 10, 0, 8,184 0, 0, 34, 0, 7, 0, 10, 0, 0, 20,185 34, 0, 0, 20, 13, 0, 0, 13, 20,0,186 42, 0, 42, 24, 41, 0, 43, 24, 41, 0,187 43, 0, 42, 0, 42, 24, 41, 0, 43, 24,188 41, 0, 43, 19, 43, 0, 3, 0, 4, 0,189 5, 0, 6, 0156 static const short yyrhs[] = 157 { 158 26, 0, 27, 0, 28, 0, 3, 0, 4, 0, 159 5, 0, 6, 0, 11, 0, 13, 0, 14, 13, 160 0, 15, 13, 0, 40, 0, 16, 4, 17, 0, 161 16, 4, 17, 18, 0, 19, 16, 4, 17, 0, 162 16, 13, 20, 34, 17, 0, 16, 34, 20, 13, 163 17, 0, 13, 16, 34, 17, 0, 16, 7, 17, 164 0, 16, 8, 17, 0, 16, 10, 17, 0, 16, 165 13, 20, 34, 20, 29, 17, 0, 16, 13, 20, 166 34, 20, 36, 17, 0, 16, 13, 20, 30, 37, 167 17, 0, 16, 30, 20, 13, 17, 0, 13, 16, 168 34, 20, 29, 17, 0, 16, 34, 20, 29, 17, 169 0, 13, 16, 34, 20, 36, 17, 0, 16, 34, 170 20, 36, 17, 0, 13, 16, 30, 37, 17, 0, 171 16, 30, 37, 17, 0, 16, 21, 13, 37, 22, 172 20, 29, 38, 17, 0, 16, 21, 13, 37, 22, 173 38, 17, 0, 16, 21, 34, 22, 20, 29, 38, 174 17, 0, 16, 21, 34, 22, 38, 17, 0, 16, 175 21, 13, 20, 34, 20, 29, 22, 38, 17, 0, 176 16, 21, 34, 20, 29, 22, 38, 17, 0, 16, 177 21, 13, 20, 34, 20, 36, 22, 38, 17, 0, 178 16, 21, 34, 20, 36, 22, 38, 17, 0, 16, 179 21, 39, 30, 37, 22, 38, 17, 0, 35, 23, 180 0, 35, 23, 18, 0, 35, 23, 19, 0, 35, 181 23, 16, 13, 17, 0, 35, 23, 16, 39, 29, 182 17, 0, 35, 23, 16, 13, 17, 23, 16, 39, 183 29, 17, 0, 35, 23, 16, 13, 17, 23, 16, 184 13, 17, 0, 35, 23, 16, 39, 29, 17, 23, 185 16, 13, 17, 0, 12, 0, 31, 0, 12, 0, 186 32, 0, 32, 0, 4, 0, 8, 0, 3, 0, 187 9, 0, 4, 0, 7, 0, 33, 0, 10, 0, 188 8, 0, 0, 34, 0, 7, 0, 10, 0, 0, 189 20, 34, 0, 0, 20, 13, 0, 0, 13, 20, 190 0, 42, 0, 42, 24, 41, 0, 43, 24, 41, 191 0, 43, 0, 42, 0, 42, 24, 41, 0, 43, 192 24, 41, 0, 43, 19, 43, 0, 3, 0, 4, 193 0, 5, 0, 6, 0 190 194 }; 191 195 192 196 #endif 193 197 194 #if YYDEBUG != 0 195 static const short yyrline[] = { 0, 196 116, 118, 119, 124, 130, 135, 140, 145, 150, 155, 197 160, 165, 177, 183, 188, 193, 203, 213, 223, 228, 198 233, 238, 245, 256, 263, 269, 276, 282, 293, 303, 199 310, 316, 324, 331, 338, 344, 352, 359, 371, 382, 200 394, 403, 411, 419, 429, 436, 444, 451, 464, 466, 201 478, 480, 491, 493, 494, 499, 501, 506, 508, 514, 202 516, 517, 522, 527, 532, 534, 539, 544, 552, 558, 203 566, 572, 580, 582, 586, 597, 602, 603, 607, 613, 204 623, 628, 632, 636 198 #if YYDEBUG 199 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 200 static const short yyrline[] = 201 { 202 0, 117, 119, 120, 125, 131, 136, 141, 146, 151, 203 156, 161, 166, 178, 184, 189, 194, 204, 214, 224, 204 229, 234, 239, 246, 257, 264, 270, 277, 283, 294, 205 304, 311, 317, 325, 332, 339, 345, 353, 360, 372, 206 383, 395, 404, 412, 420, 430, 437, 445, 452, 465, 207 467, 479, 481, 492, 494, 495, 500, 502, 507, 509, 208 515, 517, 518, 523, 528, 533, 535, 540, 545, 553, 209 559, 567, 573, 581, 583, 587, 598, 603, 604, 608, 210 614, 624, 629, 633, 637 205 211 }; 206 212 #endif 207 213 208 214 209 #if YYDEBUG != 0 || defined (YYERROR_VERBOSE) 210 211 static const char * const yytname[] = { "$","error","$undefined.","DR","AR", 212 "FPR","FPCR","LPC","ZAR","ZDR","LZPC","CREG","INDEXREG","EXPR","'#'","'&'","'('", 213 "')'","'+'","'-'","','","'['","']'","'@'","'/'","operand","generic_operand", 214 "motorola_operand","mit_operand","zireg","zdireg","zadr","zdr","apc","zapc", 215 "optzapc","zpc","optczapc","optcexpr","optexprc","reglist","ireglist","reglistpair", 216 "reglistreg", NULL 215 #if (YYDEBUG) || defined YYERROR_VERBOSE 216 217 /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ 218 static const char *const yytname[] = 219 { 220 "$", "error", "$undefined.", "DR", "AR", "FPR", "FPCR", "LPC", "ZAR", 221 "ZDR", "LZPC", "CREG", "INDEXREG", "EXPR", "'#'", "'&'", "'('", "')'", 222 "'+'", "'-'", "','", "'['", "']'", "'@'", "'/'", "operand", 223 "generic_operand", "motorola_operand", "mit_operand", "zireg", "zdireg", 224 "zadr", "zdr", "apc", "zapc", "optzapc", "zpc", "optczapc", "optcexpr", 225 "optexprc", "reglist", "ireglist", "reglistpair", "reglistreg", 0 217 226 }; 218 227 #endif 219 228 220 static const short yyr1[] = { 0, 221 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 222 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 223 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 224 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 225 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 226 30, 30, 31, 31, 31, 32, 32, 33, 33, 34, 227 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 228 39, 39, 40, 40, 40, 41, 41, 41, 41, 42, 229 43, 43, 43, 43 229 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 230 static const short yyr1[] = 231 { 232 0, 25, 25, 25, 26, 26, 26, 26, 26, 26, 233 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 234 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 235 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 236 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 237 29, 30, 30, 31, 31, 31, 32, 32, 33, 33, 238 34, 34, 34, 35, 35, 36, 36, 37, 37, 38, 239 38, 39, 39, 40, 40, 40, 41, 41, 41, 41, 240 42, 43, 43, 43, 43 230 241 }; 231 242 232 static const short yyr2[] = { 0, 233 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 234 2, 1, 3, 4, 4, 5, 5, 4, 3, 3, 235 3, 7, 7, 6, 5, 6, 5, 6, 5, 5, 236 4, 9, 7, 8, 6, 10, 8, 10, 8, 8, 237 2, 3, 3, 5, 6, 10, 9, 10, 1, 1, 238 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239 1, 1, 0, 1, 1, 1, 0, 2, 0, 2, 240 0, 2, 1, 3, 3, 1, 1, 3, 3, 3, 241 1, 1, 1, 1 243 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 244 static const short yyr2[] = 245 { 246 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 247 2, 2, 1, 3, 4, 4, 5, 5, 4, 3, 248 3, 3, 7, 7, 6, 5, 6, 5, 6, 5, 249 5, 4, 9, 7, 8, 6, 10, 8, 10, 8, 250 8, 2, 3, 3, 5, 6, 10, 9, 10, 1, 251 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 252 1, 1, 1, 0, 1, 1, 1, 0, 2, 0, 253 2, 0, 2, 1, 3, 3, 1, 1, 3, 3, 254 3, 1, 1, 1, 1 242 255 }; 243 256 244 static const short yydefact[] = { 63, 245 81, 82, 83, 84, 59, 62, 61, 8, 9, 0, 246 0, 0, 0, 1, 2, 3, 60, 64, 0, 12, 247 73, 0, 0, 10, 11, 56, 58, 59, 62, 57, 248 61, 51, 0, 71, 67, 52, 0, 0, 41, 0, 249 0, 0, 58, 67, 0, 13, 19, 20, 21, 0, 250 67, 0, 0, 0, 0, 0, 0, 71, 42, 43, 251 81, 82, 83, 84, 74, 77, 76, 80, 75, 0, 252 0, 18, 0, 14, 67, 0, 72, 0, 0, 69, 253 67, 0, 68, 31, 54, 65, 55, 66, 49, 0, 254 0, 50, 53, 0, 15, 0, 0, 0, 0, 30, 255 0, 0, 0, 16, 0, 68, 69, 0, 0, 0, 256 0, 0, 25, 17, 27, 29, 44, 72, 0, 78, 257 79, 26, 28, 24, 0, 0, 0, 0, 0, 69, 258 69, 70, 69, 35, 69, 0, 45, 22, 23, 0, 259 0, 69, 33, 0, 0, 0, 0, 0, 71, 0, 260 69, 69, 0, 37, 39, 34, 40, 0, 0, 0, 261 0, 0, 32, 47, 0, 0, 36, 38, 46, 48, 262 0, 0, 0 257 /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE 258 doesn't specify something else to do. Zero means the default is an 259 error. */ 260 static const short yydefact[] = 261 { 262 63, 81, 82, 83, 84, 59, 62, 61, 8, 9, 263 0, 0, 0, 0, 1, 2, 3, 60, 64, 0, 264 12, 73, 0, 0, 10, 11, 56, 58, 59, 62, 265 57, 61, 51, 0, 71, 67, 52, 0, 0, 41, 266 0, 0, 0, 58, 67, 0, 13, 19, 20, 21, 267 0, 67, 0, 0, 0, 0, 0, 0, 71, 42, 268 43, 81, 82, 83, 84, 74, 77, 76, 80, 75, 269 0, 0, 18, 0, 14, 67, 0, 72, 0, 0, 270 69, 67, 0, 68, 31, 54, 65, 55, 66, 49, 271 0, 0, 50, 53, 0, 15, 0, 0, 0, 0, 272 30, 0, 0, 0, 16, 0, 68, 69, 0, 0, 273 0, 0, 0, 25, 17, 27, 29, 44, 72, 0, 274 78, 79, 26, 28, 24, 0, 0, 0, 0, 0, 275 69, 69, 70, 69, 35, 69, 0, 45, 22, 23, 276 0, 0, 69, 33, 0, 0, 0, 0, 0, 71, 277 0, 69, 69, 0, 37, 39, 34, 40, 0, 0, 278 0, 0, 0, 32, 47, 0, 0, 36, 38, 46, 279 48, 0, 0, 0 263 280 }; 264 281 265 static const short yydefgoto[] = { 171, 266 14, 15, 16, 91, 35, 92, 93, 17, 83, 19, 267 94, 55, 111, 53, 20, 65, 66, 67 282 static const short yydefgoto[] = 283 { 284 171, 14, 15, 16, 91, 35, 92, 93, 17, 83, 285 19, 94, 55, 111, 53, 20, 65, 66, 67 268 286 }; 269 287 270 static const short yypact[] = { 89, 271 10, 11, 19, 23,-32768,-32768,-32768,-32768, 13, -4, 272 22, 57, 36,-32768,-32768,-32768,-32768,-32768, 18,-32768, 273 33, -2, 114,-32768,-32768,-32768, 46, 62, 66,-32768, 274 67,-32768, 68, 131, 69,-32768, 70, 105, 147, 156, 275 156, 156,-32768, 94, 25, 101,-32768,-32768,-32768, 114, 276 100, 53, 9, 138, 108, 103, 112, 117,-32768,-32768, 277 -32768,-32768,-32768,-32768,-32768, 119, 12,-32768,-32768, 64, 278 130,-32768, 124,-32768, 94, 81, 64, 135, 124, 132, 279 94, 150,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 151, 280 152,-32768,-32768, 153,-32768, 120, 146, 156, 156,-32768, 281 154, 155, 157,-32768, 124, 144, 158, 159, 160, 73, 282 162, 161,-32768,-32768,-32768,-32768, 163,-32768, 167,-32768, 283 -32768,-32768,-32768,-32768, 168, 170, 124, 73, 171, 169, 284 169,-32768, 169,-32768, 169, 164, 172,-32768,-32768, 174, 285 175, 169,-32768, 177, 176, 181, 182, 183, 178, 185, 286 169, 169, 186,-32768,-32768,-32768,-32768, 136, 146, 179, 287 187, 188,-32768,-32768, 189, 190,-32768,-32768,-32768,-32768, 288 173, 194,-32768 288 static const short yypact[] = 289 { 290 89, 10, 11, 19, 23,-32768,-32768,-32768,-32768, 13, 291 -4, 22, 57, 36,-32768,-32768,-32768,-32768,-32768, 18, 292 -32768, 33, -2, 114,-32768,-32768,-32768, 46, 62, 66, 293 -32768, 67,-32768, 68, 131, 69,-32768, 70, 105, 147, 294 156, 156, 156,-32768, 94, 25, 101,-32768,-32768,-32768, 295 114, 100, 53, 9, 138, 108, 103, 112, 117,-32768, 296 -32768,-32768,-32768,-32768,-32768,-32768, 119, 12,-32768,-32768, 297 64, 130,-32768, 124,-32768, 94, 81, 64, 135, 124, 298 132, 94, 150,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 299 151, 152,-32768,-32768, 153,-32768, 120, 146, 156, 156, 300 -32768, 154, 155, 157,-32768, 124, 144, 158, 159, 160, 301 73, 162, 161,-32768,-32768,-32768,-32768, 163,-32768, 167, 302 -32768,-32768,-32768,-32768,-32768, 168, 170, 124, 73, 171, 303 169, 169,-32768, 169,-32768, 169, 164, 172,-32768,-32768, 304 174, 175, 169,-32768, 177, 176, 181, 182, 183, 178, 305 185, 169, 169, 186,-32768,-32768,-32768,-32768, 136, 146, 306 179, 187, 188,-32768,-32768, 189, 190,-32768,-32768,-32768, 307 -32768, 173, 194,-32768 289 308 }; 290 309 291 static const short yypgoto[] = {-32768, 292 -32768,-32768,-32768, -72, 1,-32768, -7,-32768, 3,-32768, 293 -65, -31, -103, -58,-32768, -40, 202, 6 310 static const short yypgoto[] = 311 { 312 -32768,-32768,-32768,-32768, -72, 1,-32768, -7,-32768, 3, 313 -32768, -65, -31, -103, -58,-32768, -40, 202, 6 294 314 }; 295 315 … … 298 318 299 319 300 static const short yytable[] = { 97, 301 101, 69, 18, 129, 36, 22, 108, 102, 24, -4, 302 -5, 26, 71, 109, 37, 36, 41, 30, -6, 78, 303 32, 42, -7, 44, 119, 45, 145, 146, 23, 147, 304 41, 148, 125, -58, 25, 99, 52, 133, 153, 126, 305 39, 72, 36, 103, 73, 36, 68, 161, 162, 112, 306 75, 38, 76, 81, 140, 142, 40, 120, 121, 26, 307 27, 141, 46, 28, 29, 30, 31, 43, 32, 33, 308 5, 6, 79, 7, 80, 26, 85, 34, 47, 106, 309 87, 30, 48, 49, 89, 132, 165, 50, 54, 56, 310 159, 1, 2, 3, 4, 5, 6, 104, 7, 8, 311 105, 9, 10, 11, 12, 26, 85, 13, 57, 86, 312 87, 30, 88, 70, 89, 90, 26, 43, 74, 77, 313 5, 6, 30, 7, 84, 32, 26, 85, 95, 96, 314 86, 87, 30, 88, 43, 89, 117, 5, 6, 118, 315 7, 43, 98, 51, 5, 6, 100, 7, 26, 85, 316 82, 110, 164, 87, 30, 118, 107, 89, 61, 62, 317 63, 64, 58, 127, 59, 60, 113, 114, 115, 116, 318 122, 123, 172, 124, 0, 0, 0, 128, 134, 149, 319 130, 131, 135, 137, 138, 136, 139, 143, 144, 132, 320 158, 166, 154, 173, 150, 151, 152, 155, 156, 157, 321 160, 21, 163, 167, 168, 169, 170 320 static const short yytable[] = 321 { 322 97, 101, 69, 18, 129, 36, 22, 108, 102, 24, 323 -4, -5, 26, 71, 109, 37, 36, 41, 30, -6, 324 78, 32, 42, -7, 44, 119, 45, 145, 146, 23, 325 147, 41, 148, 125, -58, 25, 99, 52, 133, 153, 326 126, 39, 72, 36, 103, 73, 36, 68, 161, 162, 327 112, 75, 38, 76, 81, 140, 142, 40, 120, 121, 328 26, 27, 141, 46, 28, 29, 30, 31, 43, 32, 329 33, 5, 6, 79, 7, 80, 26, 85, 34, 47, 330 106, 87, 30, 48, 49, 89, 132, 165, 50, 54, 331 56, 159, 1, 2, 3, 4, 5, 6, 104, 7, 332 8, 105, 9, 10, 11, 12, 26, 85, 13, 57, 333 86, 87, 30, 88, 70, 89, 90, 26, 43, 74, 334 77, 5, 6, 30, 7, 84, 32, 26, 85, 95, 335 96, 86, 87, 30, 88, 43, 89, 117, 5, 6, 336 118, 7, 43, 98, 51, 5, 6, 100, 7, 26, 337 85, 82, 110, 164, 87, 30, 118, 107, 89, 61, 338 62, 63, 64, 58, 127, 59, 60, 113, 114, 115, 339 116, 122, 123, 172, 124, 0, 0, 0, 128, 134, 340 149, 130, 131, 135, 137, 138, 136, 139, 143, 144, 341 132, 158, 166, 154, 173, 150, 151, 152, 155, 156, 342 157, 160, 21, 163, 167, 168, 169, 170 322 343 }; 323 344 324 static const short yycheck[] = { 58, 325 73, 42, 0, 107, 12, 0, 79, 73, 13, 0, 326 0, 3, 44, 79, 12, 23, 19, 9, 0, 51, 327 12, 24, 0, 23, 97, 23, 130, 131, 16, 133, 328 19, 135, 105, 23, 13, 24, 34, 110, 142, 105, 329 23, 17, 50, 75, 20, 53, 41, 151, 152, 81, 330 50, 16, 50, 53, 127, 128, 24, 98, 99, 3, 331 4, 127, 17, 7, 8, 9, 10, 4, 12, 13, 332 7, 8, 20, 10, 22, 3, 4, 21, 17, 77, 333 8, 9, 17, 17, 12, 13, 159, 20, 20, 20, 334 149, 3, 4, 5, 6, 7, 8, 17, 10, 11, 335 20, 13, 14, 15, 16, 3, 4, 19, 4, 7, 336 8, 9, 10, 20, 12, 13, 3, 4, 18, 20, 337 7, 8, 9, 10, 17, 12, 3, 4, 17, 13, 338 7, 8, 9, 10, 4, 12, 17, 7, 8, 20, 339 10, 4, 24, 13, 7, 8, 17, 10, 3, 4, 340 13, 20, 17, 8, 9, 20, 22, 12, 3, 4, 341 5, 6, 16, 20, 18, 19, 17, 17, 17, 17, 342 17, 17, 0, 17, -1, -1, -1, 20, 17, 16, 343 22, 22, 22, 17, 17, 23, 17, 17, 20, 13, 344 13, 13, 17, 0, 23, 22, 22, 17, 17, 17, 345 16, 0, 17, 17, 17, 17, 17 345 static const short yycheck[] = 346 { 347 58, 73, 42, 0, 107, 12, 0, 79, 73, 13, 348 0, 0, 3, 44, 79, 12, 23, 19, 9, 0, 349 51, 12, 24, 0, 23, 97, 23, 130, 131, 16, 350 133, 19, 135, 105, 23, 13, 24, 34, 110, 142, 351 105, 23, 17, 50, 75, 20, 53, 41, 151, 152, 352 81, 50, 16, 50, 53, 127, 128, 24, 98, 99, 353 3, 4, 127, 17, 7, 8, 9, 10, 4, 12, 354 13, 7, 8, 20, 10, 22, 3, 4, 21, 17, 355 77, 8, 9, 17, 17, 12, 13, 159, 20, 20, 356 20, 149, 3, 4, 5, 6, 7, 8, 17, 10, 357 11, 20, 13, 14, 15, 16, 3, 4, 19, 4, 358 7, 8, 9, 10, 20, 12, 13, 3, 4, 18, 359 20, 7, 8, 9, 10, 17, 12, 3, 4, 17, 360 13, 7, 8, 9, 10, 4, 12, 17, 7, 8, 361 20, 10, 4, 24, 13, 7, 8, 17, 10, 3, 362 4, 13, 20, 17, 8, 9, 20, 22, 12, 3, 363 4, 5, 6, 16, 20, 18, 19, 17, 17, 17, 364 17, 17, 17, 0, 17, -1, -1, -1, 20, 17, 365 16, 22, 22, 22, 17, 17, 23, 17, 17, 20, 366 13, 13, 13, 17, 0, 23, 22, 22, 17, 17, 367 17, 16, 0, 17, 17, 17, 17, 17 346 368 }; 347 369 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ 348 #line 3 "/usr/share/bison/bison.simple" 349 /* This file comes from bison-1.28. */ 370 #line 3 "/usr/share/bison-1.35/bison.simple" 350 371 351 372 /* Skeleton output parser for bison, 352 Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. 373 374 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software 375 Foundation, Inc. 353 376 354 377 This program is free software; you can redistribute it and/or modify … … 372 395 in version 1.24 of Bison. */ 373 396 374 /* This is the parser code that is written into each bison parser 375 when the %semantic_parser declaration is not specified in the grammar. 376 It was written by Richard Stallman by simplifying the hairy parser 377 used when %semantic_parser is specified. */ 378 379 #ifndef YYSTACK_USE_ALLOCA 380 #ifdef alloca 381 #define YYSTACK_USE_ALLOCA 382 #else /* alloca not defined */ 383 #ifdef __GNUC__ 384 #define YYSTACK_USE_ALLOCA 385 #define alloca __builtin_alloca 386 #else /* not GNU C. */ 387 #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) 388 #define YYSTACK_USE_ALLOCA 389 #include <alloca.h> 390 #else /* not sparc */ 391 /* We think this test detects Watcom and Microsoft C. */ 392 /* This used to test MSDOS, but that is a bad idea 393 since that symbol is in the user namespace. */ 394 #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) 395 #if 0 /* No need for malloc.h, which pollutes the namespace; 396 instead, just don't use alloca. */ 397 #include <malloc.h> 398 #endif 399 #else /* not MSDOS, or __TURBOC__ */ 400 #if defined(_AIX) 401 /* I don't know what this was needed for, but it pollutes the namespace. 402 So I turned it off. rms, 2 May 1997. */ 403 /* #include <malloc.h> */ 404 #pragma alloca 405 #define YYSTACK_USE_ALLOCA 406 #else /* not MSDOS, or __TURBOC__, or _AIX */ 407 #if 0 408 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, 409 and on HPUX 10. Eventually we can turn this on. */ 410 #define YYSTACK_USE_ALLOCA 411 #define alloca __builtin_alloca 412 #endif /* __hpux */ 413 #endif 414 #endif /* not _AIX */ 415 #endif /* not MSDOS, or __TURBOC__ */ 416 #endif /* not sparc */ 417 #endif /* not GNU C */ 418 #endif /* alloca not defined */ 419 #endif /* YYSTACK_USE_ALLOCA not defined */ 420 421 #ifdef YYSTACK_USE_ALLOCA 422 #define YYSTACK_ALLOC alloca 423 #else 424 #define YYSTACK_ALLOC malloc 425 #endif 426 427 /* Note: there must be only one dollar sign in this file. 428 It is replaced by the list of actions, each action 429 as one case of the switch. */ 397 /* This is the parser code that is written into each bison parser when 398 the %semantic_parser declaration is not specified in the grammar. 399 It was written by Richard Stallman by simplifying the hairy parser 400 used when %semantic_parser is specified. */ 401 402 /* All symbols defined below should begin with yy or YY, to avoid 403 infringing on user name space. This should be done even for local 404 variables, as they might otherwise be expanded by user macros. 405 There are some unavoidable exceptions within include files to 406 define necessary library symbols; they are noted "INFRINGES ON 407 USER NAME SPACE" below. */ 408 409 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) 410 411 /* The parser invokes alloca or malloc; define the necessary symbols. */ 412 413 # if YYSTACK_USE_ALLOCA 414 # define YYSTACK_ALLOC alloca 415 # else 416 # ifndef YYSTACK_USE_ALLOCA 417 # if defined (alloca) || defined (_ALLOCA_H) 418 # define YYSTACK_ALLOC alloca 419 # else 420 # ifdef __GNUC__ 421 # define YYSTACK_ALLOC __builtin_alloca 422 # endif 423 # endif 424 # endif 425 # endif 426 427 # ifdef YYSTACK_ALLOC 428 /* Pacify GCC's `empty if-body' warning. */ 429 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) 430 # else 431 # if defined (__STDC__) || defined (__cplusplus) 432 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 433 # define YYSIZE_T size_t 434 # endif 435 # define YYSTACK_ALLOC malloc 436 # define YYSTACK_FREE free 437 # endif 438 #endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ 439 440 441 #if (! defined (yyoverflow) \ 442 && (! defined (__cplusplus) \ 443 || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 444 445 /* A type that is properly aligned for any stack member. */ 446 union yyalloc 447 { 448 short yyss; 449 YYSTYPE yyvs; 450 # if YYLSP_NEEDED 451 YYLTYPE yyls; 452 # endif 453 }; 454 455 /* The size of the maximum gap between one aligned stack and the next. */ 456 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) 457 458 /* The size of an array large to enough to hold all stacks, each with 459 N elements. */ 460 # if YYLSP_NEEDED 461 # define YYSTACK_BYTES(N) \ 462 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ 463 + 2 * YYSTACK_GAP_MAX) 464 # else 465 # define YYSTACK_BYTES(N) \ 466 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ 467 + YYSTACK_GAP_MAX) 468 # endif 469 470 /* Copy COUNT objects from FROM to TO. The source and destination do 471 not overlap. */ 472 # ifndef YYCOPY 473 # if 1 < __GNUC__ 474 # define YYCOPY(To, From, Count) \ 475 __builtin_memcpy (To, From, (Count) * sizeof (*(From))) 476 # else 477 # define YYCOPY(To, From, Count) \ 478 do \ 479 { \ 480 register YYSIZE_T yyi; \ 481 for (yyi = 0; yyi < (Count); yyi++) \ 482 (To)[yyi] = (From)[yyi]; \ 483 } \ 484 while (0) 485 # endif 486 # endif 487 488 /* Relocate STACK from its old location to the new one. The 489 local variables YYSIZE and YYSTACKSIZE give the old and new number of 490 elements in the stack, and YYPTR gives the new location of the 491 stack. Advance YYPTR to a properly aligned location for the next 492 stack. */ 493 # define YYSTACK_RELOCATE(Stack) \ 494 do \ 495 { \ 496 YYSIZE_T yynewbytes; \ 497 YYCOPY (&yyptr->Stack, Stack, yysize); \ 498 Stack = &yyptr->Stack; \ 499 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ 500 yyptr += yynewbytes / sizeof (*yyptr); \ 501 } \ 502 while (0) 503 504 #endif 505 506 507 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) 508 # define YYSIZE_T __SIZE_TYPE__ 509 #endif 510 #if ! defined (YYSIZE_T) && defined (size_t) 511 # define YYSIZE_T size_t 512 #endif 513 #if ! defined (YYSIZE_T) 514 # if defined (__STDC__) || defined (__cplusplus) 515 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 516 # define YYSIZE_T size_t 517 # endif 518 #endif 519 #if ! defined (YYSIZE_T) 520 # define YYSIZE_T unsigned int 521 #endif 430 522 431 523 #define yyerrok (yyerrstatus = 0) … … 436 528 #define YYABORT goto yyabortlab 437 529 #define YYERROR goto yyerrlab1 438 /* Like YYERROR except do call yyerror. 439 This remains here temporarily to ease the 440 transition to the new meaning of YYERROR, for GCC. 530 /* Like YYERROR except do call yyerror. This remains here temporarily 531 to ease the transition to the new meaning of YYERROR, for GCC. 441 532 Once GCC version 2 has supplanted version 1, this can go. */ 442 533 #define YYFAIL goto yyerrlab 443 534 #define YYRECOVERING() (!!yyerrstatus) 444 #define YYBACKUP( token, value)\535 #define YYBACKUP(Token, Value) \ 445 536 do \ 446 537 if (yychar == YYEMPTY && yylen == 1) \ 447 { yychar = (token), yylval = (value); \ 538 { \ 539 yychar = (Token); \ 540 yylval = (Value); \ 448 541 yychar1 = YYTRANSLATE (yychar); \ 449 542 YYPOPSTACK; \ … … 451 544 } \ 452 545 else \ 453 { yyerror ("syntax error: cannot back up"); YYERROR; } \ 546 { \ 547 yyerror ("syntax error: cannot back up"); \ 548 YYERROR; \ 549 } \ 454 550 while (0) 455 551 … … 457 553 #define YYERRCODE 256 458 554 459 #ifndef YYPURE 460 #define YYLEX yylex() 461 #endif 462 463 #ifdef YYPURE 464 #ifdef YYLSP_NEEDED 465 #ifdef YYLEX_PARAM 466 #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) 467 #else 468 #define YYLEX yylex(&yylval, &yylloc) 469 #endif 470 #else /* not YYLSP_NEEDED */ 471 #ifdef YYLEX_PARAM 472 #define YYLEX yylex(&yylval, YYLEX_PARAM) 473 #else 474 #define YYLEX yylex(&yylval) 475 #endif 476 #endif /* not YYLSP_NEEDED */ 477 #endif 478 479 /* If nonreentrant, generate the variables here */ 480 481 #ifndef YYPURE 482 483 int yychar; /* the lookahead symbol */ 484 YYSTYPE yylval; /* the semantic value of the */ 485 /* lookahead symbol */ 486 487 #ifdef YYLSP_NEEDED 488 YYLTYPE yylloc; /* location data for the lookahead */ 489 /* symbol */ 490 #endif 491 492 int yynerrs; /* number of parse errors so far */ 493 #endif /* not YYPURE */ 494 495 #if YYDEBUG != 0 496 int yydebug; /* nonzero means print parse trace */ 497 /* Since this is uninitialized, it does not stop multiple parsers 498 from coexisting. */ 499 #endif 500 501 /* YYINITDEPTH indicates the initial size of the parser's stacks */ 502 555 556 /* YYLLOC_DEFAULT -- Compute the default location (before the actions 557 are run). 558 559 When YYLLOC_DEFAULT is run, CURRENT is set the location of the 560 first token. By default, to implement support for ranges, extend 561 its range to the last symbol. */ 562 563 #ifndef YYLLOC_DEFAULT 564 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 565 Current.last_line = Rhs[N].last_line; \ 566 Current.last_column = Rhs[N].last_column; 567 #endif 568 569 570 /* YYLEX -- calling `yylex' with the right arguments. */ 571 572 #if YYPURE 573 # if YYLSP_NEEDED 574 # ifdef YYLEX_PARAM 575 # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) 576 # else 577 # define YYLEX yylex (&yylval, &yylloc) 578 # endif 579 # else /* !YYLSP_NEEDED */ 580 # ifdef YYLEX_PARAM 581 # define YYLEX yylex (&yylval, YYLEX_PARAM) 582 # else 583 # define YYLEX yylex (&yylval) 584 # endif 585 # endif /* !YYLSP_NEEDED */ 586 #else /* !YYPURE */ 587 # define YYLEX yylex () 588 #endif /* !YYPURE */ 589 590 591 /* Enable debugging if requested. */ 592 #if YYDEBUG 593 594 # ifndef YYFPRINTF 595 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ 596 # define YYFPRINTF fprintf 597 # endif 598 599 # define YYDPRINTF(Args) \ 600 do { \ 601 if (yydebug) \ 602 YYFPRINTF Args; \ 603 } while (0) 604 /* Nonzero means print parse trace. It is left uninitialized so that 605 multiple parsers can coexist. */ 606 int yydebug; 607 #else /* !YYDEBUG */ 608 # define YYDPRINTF(Args) 609 #endif /* !YYDEBUG */ 610 611 /* YYINITDEPTH -- initial size of the parser's stacks. */ 503 612 #ifndef YYINITDEPTH 504 #define YYINITDEPTH 200 505 #endif 506 507 /* YYMAXDEPTH is the maximum size the stacks can grow to 508 (effective only if the built-in stack extension method is used). */ 613 # define YYINITDEPTH 200 614 #endif 615 616 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only 617 if the built-in stack extension method is used). 618 619 Do not make this value too large; the results are undefined if 620 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) 621 evaluated with infinite-precision integer arithmetic. */ 509 622 510 623 #if YYMAXDEPTH == 0 511 # undef YYMAXDEPTH624 # undef YYMAXDEPTH 512 625 #endif 513 626 514 627 #ifndef YYMAXDEPTH 515 #define YYMAXDEPTH 10000 516 #endif 517 518 519 /* Define __yy_memcpy. Note that the size argument 520 should be passed with type unsigned int, because that is what the non-GCC 521 definitions require. With GCC, __builtin_memcpy takes an arg 522 of type size_t, but it can handle unsigned int. */ 523 524 #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ 525 #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) 526 #else /* not GNU C or C++ */ 527 #ifndef __cplusplus 528 529 /* This is the most reliable way to avoid incompatibilities 530 in available built-in functions on various systems. */ 531 static void 532 __yy_memcpy (to, from, count) 533 char *to; 534 char *from; 535 unsigned int count; 536 { 537 register char *f = from; 538 register char *t = to; 539 register int i = count; 540 541 while (i-- > 0) 542 *t++ = *f++; 628 # define YYMAXDEPTH 10000 629 #endif 630 631 632 #ifdef YYERROR_VERBOSE 633 634 # ifndef yystrlen 635 # if defined (__GLIBC__) && defined (_STRING_H) 636 # define yystrlen strlen 637 # else 638 /* Return the length of YYSTR. */ 639 static YYSIZE_T 640 # if defined (__STDC__) || defined (__cplusplus) 641 yystrlen (const char *yystr) 642 # else 643 yystrlen (yystr) 644 const char *yystr; 645 # endif 646 { 647 register const char *yys = yystr; 648 649 while (*yys++ != '\0') 650 continue; 651 652 return yys - yystr - 1; 543 653 } 544 545 #else /* __cplusplus */ 546 547 /* This is the most reliable way to avoid incompatibilities 548 in available built-in functions on various systems. */ 549 static void 550 __yy_memcpy (char *to, char *from, unsigned int count) 551 { 552 register char *t = to; 553 register char *f = from; 554 register int i = count; 555 556 while (i-- > 0) 557 *t++ = *f++; 654 # endif 655 # endif 656 657 # ifndef yystpcpy 658 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) 659 # define yystpcpy stpcpy 660 # else 661 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in 662 YYDEST. */ 663 static char * 664 # if defined (__STDC__) || defined (__cplusplus) 665 yystpcpy (char *yydest, const char *yysrc) 666 # else 667 yystpcpy (yydest, yysrc) 668 char *yydest; 669 const char *yysrc; 670 # endif 671 { 672 register char *yyd = yydest; 673 register const char *yys = yysrc; 674 675 while ((*yyd++ = *yys++) != '\0') 676 continue; 677 678 return yyd - 1; 558 679 } 559 560 #endif 561 #endif 562 563 564 #line 217 "/usr/share/bison/bison.simple" 680 # endif 681 # endif 682 #endif 683 684 685 #line 315 "/usr/share/bison-1.35/bison.simple" 686 565 687 566 688 /* The user can define YYPARSE_PARAM as the name of an argument to be passed … … 571 693 572 694 #ifdef YYPARSE_PARAM 573 # ifdef __cplusplus574 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM575 # define YYPARSE_PARAM_DECL576 # else /* not __cplusplus */577 # define YYPARSE_PARAM_ARG YYPARSE_PARAM578 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;579 # endif /* not __cplusplus */580 #else /* notYYPARSE_PARAM */581 # define YYPARSE_PARAM_ARG582 # define YYPARSE_PARAM_DECL583 #endif /* notYYPARSE_PARAM */695 # if defined (__STDC__) || defined (__cplusplus) 696 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM 697 # define YYPARSE_PARAM_DECL 698 # else 699 # define YYPARSE_PARAM_ARG YYPARSE_PARAM 700 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; 701 # endif 702 #else /* !YYPARSE_PARAM */ 703 # define YYPARSE_PARAM_ARG 704 # define YYPARSE_PARAM_DECL 705 #endif /* !YYPARSE_PARAM */ 584 706 585 707 /* Prevent warning if -Wstrict-prototypes. */ 586 708 #ifdef __GNUC__ 587 # ifdef YYPARSE_PARAM709 # ifdef YYPARSE_PARAM 588 710 int yyparse (void *); 711 # else 712 int yyparse (void); 713 # endif 714 #endif 715 716 /* YY_DECL_VARIABLES -- depending whether we use a pure parser, 717 variables are global, or local to YYPARSE. */ 718 719 #define YY_DECL_NON_LSP_VARIABLES \ 720 /* The lookahead symbol. */ \ 721 int yychar; \ 722 \ 723 /* The semantic value of the lookahead symbol. */ \ 724 YYSTYPE yylval; \ 725 \ 726 /* Number of parse errors so far. */ \ 727 int yynerrs; 728 729 #if YYLSP_NEEDED 730 # define YY_DECL_VARIABLES \ 731 YY_DECL_NON_LSP_VARIABLES \ 732 \ 733 /* Location data for the lookahead symbol. */ \ 734 YYLTYPE yylloc; 589 735 #else 590 int yyparse (void); 591 #endif 592 #endif 736 # define YY_DECL_VARIABLES \ 737 YY_DECL_NON_LSP_VARIABLES 738 #endif 739 740 741 /* If nonreentrant, generate the variables here. */ 742 743 #if !YYPURE 744 YY_DECL_VARIABLES 745 #endif /* !YYPURE */ 593 746 594 747 int 595 yyparse (YYPARSE_PARAM_ARG)748 yyparse (YYPARSE_PARAM_ARG) 596 749 YYPARSE_PARAM_DECL 597 750 { 751 /* If reentrant, generate the variables here. */ 752 #if YYPURE 753 YY_DECL_VARIABLES 754 #endif /* !YYPURE */ 755 598 756 register int yystate; 599 757 register int yyn; 758 int yyresult; 759 /* Number of tokens to shift before error messages enabled. */ 760 int yyerrstatus; 761 /* Lookahead token as an internal (translated) token number. */ 762 int yychar1 = 0; 763 764 /* Three stacks and their tools: 765 `yyss': related to states, 766 `yyvs': related to semantic values, 767 `yyls': related to locations. 768 769 Refer to the stacks thru separate pointers, to allow yyoverflow 770 to reallocate them elsewhere. */ 771 772 /* The state stack. */ 773 short yyssa[YYINITDEPTH]; 774 short *yyss = yyssa; 600 775 register short *yyssp; 776 777 /* The semantic value stack. */ 778 YYSTYPE yyvsa[YYINITDEPTH]; 779 YYSTYPE *yyvs = yyvsa; 601 780 register YYSTYPE *yyvsp; 602 int yyerrstatus; /* number of tokens to shift before error messages enabled */ 603 int yychar1 = 0; /* lookahead token as an internal (translated) token number */ 604 605 short yyssa[YYINITDEPTH]; /* the state stack */ 606 YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ 607 608 short *yyss = yyssa; /* refer to the stacks thru separate pointers */ 609 YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ 610 611 #ifdef YYLSP_NEEDED 612 YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ 781 782 #if YYLSP_NEEDED 783 /* The location stack. */ 784 YYLTYPE yylsa[YYINITDEPTH]; 613 785 YYLTYPE *yyls = yylsa; 614 786 YYLTYPE *yylsp; 615 616 #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) 787 #endif 788 789 #if YYLSP_NEEDED 790 # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) 617 791 #else 618 #define YYPOPSTACK (yyvsp--, yyssp--) 619 #endif 620 621 int yystacksize = YYINITDEPTH; 622 int yyfree_stacks = 0; 623 624 #ifdef YYPURE 625 int yychar; 626 YYSTYPE yylval; 627 int yynerrs; 628 #ifdef YYLSP_NEEDED 629 YYLTYPE yylloc; 630 #endif 631 #endif 632 633 YYSTYPE yyval; /* the variable used to return */ 634 /* semantic values from the action */ 635 /* routines */ 636 792 # define YYPOPSTACK (yyvsp--, yyssp--) 793 #endif 794 795 YYSIZE_T yystacksize = YYINITDEPTH; 796 797 798 /* The variables used to return semantic value and location from the 799 action routines. */ 800 YYSTYPE yyval; 801 #if YYLSP_NEEDED 802 YYLTYPE yyloc; 803 #endif 804 805 /* When reducing, the number of symbols on the RHS of the reduced 806 rule. */ 637 807 int yylen; 638 808 639 #if YYDEBUG != 0 640 if (yydebug) 641 fprintf(stderr, "Starting parse\n"); 642 #endif 809 YYDPRINTF ((stderr, "Starting parse\n")); 643 810 644 811 yystate = 0; … … 652 819 The wasted elements are never initialized. */ 653 820 654 yyssp = yyss - 1;821 yyssp = yyss; 655 822 yyvsp = yyvs; 656 #if defYYLSP_NEEDED823 #if YYLSP_NEEDED 657 824 yylsp = yyls; 658 825 #endif 659 660 /* Push a new state, which is found in yystate . */ 661 /* In all cases, when you get here, the value and location stacks 662 have just been pushed. so pushing a state here evens the stacks. */ 663 yynewstate: 664 665 *++yyssp = yystate; 826 goto yysetstate; 827 828 /*------------------------------------------------------------. 829 | yynewstate -- Push a new state, which is found in yystate. | 830 `------------------------------------------------------------*/ 831 yynewstate: 832 /* In all cases, when you get here, the value and location stacks 833 have just been pushed. so pushing a state here evens the stacks. 834 */ 835 yyssp++; 836 837 yysetstate: 838 *yyssp = yystate; 666 839 667 840 if (yyssp >= yyss + yystacksize - 1) 668 841 { 669 /* Give user a chance to reallocate the stack */670 /* Use copies of these so that the &'s don't force the real ones into memory. */671 YYSTYPE *yyvs1 = yyvs;672 short *yyss1 = yyss;673 #ifdef YYLSP_NEEDED674 YYLTYPE *yyls1 = yyls;675 #endif676 677 842 /* Get the current used size of the three stacks, in elements. */ 678 intsize = yyssp - yyss + 1;843 YYSIZE_T yysize = yyssp - yyss + 1; 679 844 680 845 #ifdef yyoverflow 681 /* Each stack pointer address is followed by the size of 682 the data in use in that stack, in bytes. */ 683 #ifdef YYLSP_NEEDED 684 /* This used to be a conditional around just the two extra args, 685 but that might be undefined if yyoverflow is a macro. */ 686 yyoverflow("parser stack overflow", 687 &yyss1, size * sizeof (*yyssp), 688 &yyvs1, size * sizeof (*yyvsp), 689 &yyls1, size * sizeof (*yylsp), 690 &yystacksize); 691 #else 692 yyoverflow("parser stack overflow", 693 &yyss1, size * sizeof (*yyssp), 694 &yyvs1, size * sizeof (*yyvsp), 695 &yystacksize); 696 #endif 697 698 yyss = yyss1; yyvs = yyvs1; 699 #ifdef YYLSP_NEEDED 700 yyls = yyls1; 701 #endif 846 { 847 /* Give user a chance to reallocate the stack. Use copies of 848 these so that the &'s don't force the real ones into 849 memory. */ 850 YYSTYPE *yyvs1 = yyvs; 851 short *yyss1 = yyss; 852 853 /* Each stack pointer address is followed by the size of the 854 data in use in that stack, in bytes. */ 855 # if YYLSP_NEEDED 856 YYLTYPE *yyls1 = yyls; 857 /* This used to be a conditional around just the two extra args, 858 but that might be undefined if yyoverflow is a macro. */ 859 yyoverflow ("parser stack overflow", 860 &yyss1, yysize * sizeof (*yyssp), 861 &yyvs1, yysize * sizeof (*yyvsp), 862 &yyls1, yysize * sizeof (*yylsp), 863 &yystacksize); 864 yyls = yyls1; 865 # else 866 yyoverflow ("parser stack overflow", 867 &yyss1, yysize * sizeof (*yyssp), 868 &yyvs1, yysize * sizeof (*yyvsp), 869 &yystacksize); 870 # endif 871 yyss = yyss1; 872 yyvs = yyvs1; 873 } 702 874 #else /* no yyoverflow */ 875 # ifndef YYSTACK_RELOCATE 876 goto yyoverflowlab; 877 # else 703 878 /* Extend the stack our own way. */ 704 879 if (yystacksize >= YYMAXDEPTH) 705 { 706 yyerror("parser stack overflow"); 707 if (yyfree_stacks) 708 { 709 free (yyss); 710 free (yyvs); 711 #ifdef YYLSP_NEEDED 712 free (yyls); 713 #endif 714 } 715 return 2; 716 } 880 goto yyoverflowlab; 717 881 yystacksize *= 2; 718 882 if (yystacksize > YYMAXDEPTH) 719 883 yystacksize = YYMAXDEPTH; 720 #ifndef YYSTACK_USE_ALLOCA 721 yyfree_stacks = 1; 722 #endif 723 yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); 724 __yy_memcpy ((char *)yyss, (char *)yyss1, 725 size * (unsigned int) sizeof (*yyssp)); 726 yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); 727 __yy_memcpy ((char *)yyvs, (char *)yyvs1, 728 size * (unsigned int) sizeof (*yyvsp)); 729 #ifdef YYLSP_NEEDED 730 yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); 731 __yy_memcpy ((char *)yyls, (char *)yyls1, 732 size * (unsigned int) sizeof (*yylsp)); 733 #endif 884 885 { 886 short *yyss1 = yyss; 887 union yyalloc *yyptr = 888 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); 889 if (! yyptr) 890 goto yyoverflowlab; 891 YYSTACK_RELOCATE (yyss); 892 YYSTACK_RELOCATE (yyvs); 893 # if YYLSP_NEEDED 894 YYSTACK_RELOCATE (yyls); 895 # endif 896 # undef YYSTACK_RELOCATE 897 if (yyss1 != yyssa) 898 YYSTACK_FREE (yyss1); 899 } 900 # endif 734 901 #endif /* no yyoverflow */ 735 902 736 yyssp = yyss + size - 1; 737 yyvsp = yyvs + size - 1; 738 #ifdef YYLSP_NEEDED 739 yylsp = yyls + size - 1; 740 #endif 741 742 #if YYDEBUG != 0 743 if (yydebug) 744 fprintf(stderr, "Stack size increased to %d\n", yystacksize); 745 #endif 903 yyssp = yyss + yysize - 1; 904 yyvsp = yyvs + yysize - 1; 905 #if YYLSP_NEEDED 906 yylsp = yyls + yysize - 1; 907 #endif 908 909 YYDPRINTF ((stderr, "Stack size increased to %lu\n", 910 (unsigned long int) yystacksize)); 746 911 747 912 if (yyssp >= yyss + yystacksize - 1) … … 749 914 } 750 915 751 #if YYDEBUG != 0 752 if (yydebug) 753 fprintf(stderr, "Entering state %d\n", yystate); 754 #endif 916 YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 755 917 756 918 goto yybackup; 757 yybackup: 919 920 921 /*-----------. 922 | yybackup. | 923 `-----------*/ 924 yybackup: 758 925 759 926 /* Do appropriate processing given the current state. */ … … 774 941 if (yychar == YYEMPTY) 775 942 { 776 #if YYDEBUG != 0 777 if (yydebug) 778 fprintf(stderr, "Reading a token: "); 779 #endif 943 YYDPRINTF ((stderr, "Reading a token: ")); 780 944 yychar = YYLEX; 781 945 } … … 788 952 yychar = YYEOF; /* Don't call YYLEX any more */ 789 953 790 #if YYDEBUG != 0 791 if (yydebug) 792 fprintf(stderr, "Now at end of input.\n"); 793 #endif 954 YYDPRINTF ((stderr, "Now at end of input.\n")); 794 955 } 795 956 else 796 957 { 797 yychar1 = YYTRANSLATE(yychar); 798 799 #if YYDEBUG != 0 958 yychar1 = YYTRANSLATE (yychar); 959 960 #if YYDEBUG 961 /* We have to keep this `#if YYDEBUG', since we use variables 962 which are defined only if `YYDEBUG' is set. */ 800 963 if (yydebug) 801 964 { 802 fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); 803 /* Give the individual parser a way to print the precise meaning 804 of a token, for further debugging info. */ 805 #ifdef YYPRINT 965 YYFPRINTF (stderr, "Next token is %d (%s", 966 yychar, yytname[yychar1]); 967 /* Give the individual parser a way to print the precise 968 meaning of a token, for further debugging info. */ 969 # ifdef YYPRINT 806 970 YYPRINT (stderr, yychar, yylval); 807 # endif808 fprintf(stderr, ")\n");971 # endif 972 YYFPRINTF (stderr, ")\n"); 809 973 } 810 974 #endif … … 838 1002 839 1003 /* Shift the lookahead token. */ 840 841 #if YYDEBUG != 0 842 if (yydebug) 843 fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); 844 #endif 1004 YYDPRINTF ((stderr, "Shifting token %d (%s), ", 1005 yychar, yytname[yychar1])); 845 1006 846 1007 /* Discard the token being shifted unless it is eof. */ … … 849 1010 850 1011 *++yyvsp = yylval; 851 #if defYYLSP_NEEDED1012 #if YYLSP_NEEDED 852 1013 *++yylsp = yylloc; 853 1014 #endif 854 1015 855 /* count tokens shifted since error; after three, turn off error status. */ 856 if (yyerrstatus) yyerrstatus--; 1016 /* Count tokens shifted since error; after three, turn off error 1017 status. */ 1018 if (yyerrstatus) 1019 yyerrstatus--; 857 1020 858 1021 yystate = yyn; 859 1022 goto yynewstate; 860 1023 861 /* Do the default action for the current state. */ 1024 1025 /*-----------------------------------------------------------. 1026 | yydefault -- do the default action for the current state. | 1027 `-----------------------------------------------------------*/ 862 1028 yydefault: 863 864 1029 yyn = yydefact[yystate]; 865 1030 if (yyn == 0) 866 1031 goto yyerrlab; 867 868 /* Do a reduction. yyn is the number of a rule to reduce with. */ 1032 goto yyreduce; 1033 1034 1035 /*-----------------------------. 1036 | yyreduce -- Do a reduction. | 1037 `-----------------------------*/ 869 1038 yyreduce: 1039 /* yyn is the number of a rule to reduce with. */ 870 1040 yylen = yyr2[yyn]; 871 if (yylen > 0) 872 yyval = yyvsp[1-yylen]; /* implement default value of the action */ 873 874 #if YYDEBUG != 0 1041 1042 /* If YYLEN is nonzero, implement the default value of the action: 1043 `$$ = $1'. 1044 1045 Otherwise, the following line sets YYVAL to the semantic value of 1046 the lookahead token. This behavior is undocumented and Bison 1047 users should not rely upon it. Assigning to YYVAL 1048 unconditionally makes the parser a bit smaller, and it avoids a 1049 GCC warning that YYVAL may be used uninitialized. */ 1050 yyval = yyvsp[1-yylen]; 1051 1052 #if YYLSP_NEEDED 1053 /* Similarly for the default location. Let the user run additional 1054 commands if for instance locations are ranges. */ 1055 yyloc = yylsp[1-yylen]; 1056 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); 1057 #endif 1058 1059 #if YYDEBUG 1060 /* We have to keep this `#if YYDEBUG', since we use variables which 1061 are defined only if `YYDEBUG' is set. */ 875 1062 if (yydebug) 876 1063 { 877 int i;878 879 fprintf(stderr, "Reducing via rule %d (line %d), ",880 1064 int yyi; 1065 1066 YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", 1067 yyn, yyrline[yyn]); 881 1068 882 1069 /* Print the symbols being reduced, and their result. */ 883 for ( i = yyprhs[yyn]; yyrhs[i] > 0;i++)884 fprintf (stderr, "%s ", yytname[yyrhs[i]]);885 fprintf(stderr, " -> %s\n", yytname[yyr1[yyn]]);1070 for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) 1071 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); 1072 YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); 886 1073 } 887 1074 #endif 888 1075 889 890 1076 switch (yyn) { 891 1077 892 1078 case 4: 893 #line 12 6"m68k-parse.y"1079 #line 127 "m68k-parse.y" 894 1080 { 895 1081 op->mode = DREG; 896 1082 op->reg = yyvsp[0].reg; 897 ;898 break; }1083 } 1084 break; 899 1085 case 5: 900 #line 13 1"m68k-parse.y"1086 #line 132 "m68k-parse.y" 901 1087 { 902 1088 op->mode = AREG; 903 1089 op->reg = yyvsp[0].reg; 904 ;905 break; }1090 } 1091 break; 906 1092 case 6: 907 #line 13 6"m68k-parse.y"1093 #line 137 "m68k-parse.y" 908 1094 { 909 1095 op->mode = FPREG; 910 1096 op->reg = yyvsp[0].reg; 911 ;912 break; }1097 } 1098 break; 913 1099 case 7: 914 #line 14 1"m68k-parse.y"1100 #line 142 "m68k-parse.y" 915 1101 { 916 1102 op->mode = CONTROL; 917 1103 op->reg = yyvsp[0].reg; 918 ;919 break; }1104 } 1105 break; 920 1106 case 8: 921 #line 14 6"m68k-parse.y"1107 #line 147 "m68k-parse.y" 922 1108 { 923 1109 op->mode = CONTROL; 924 1110 op->reg = yyvsp[0].reg; 925 ;926 break; }1111 } 1112 break; 927 1113 case 9: 928 #line 15 1"m68k-parse.y"1114 #line 152 "m68k-parse.y" 929 1115 { 930 1116 op->mode = ABSL; 931 1117 op->disp = yyvsp[0].exp; 932 ;933 break; }1118 } 1119 break; 934 1120 case 10: 935 #line 15 6"m68k-parse.y"1121 #line 157 "m68k-parse.y" 936 1122 { 937 1123 op->mode = IMMED; 938 1124 op->disp = yyvsp[0].exp; 939 ;940 break; }1125 } 1126 break; 941 1127 case 11: 942 #line 16 1"m68k-parse.y"1128 #line 162 "m68k-parse.y" 943 1129 { 944 1130 op->mode = IMMED; 945 1131 op->disp = yyvsp[0].exp; 946 ;947 break; }1132 } 1133 break; 948 1134 case 12: 949 #line 16 6"m68k-parse.y"1135 #line 167 "m68k-parse.y" 950 1136 { 951 1137 op->mode = REGLST; 952 1138 op->mask = yyvsp[0].mask; 953 ;954 break; }1139 } 1140 break; 955 1141 case 13: 956 #line 1 79"m68k-parse.y"1142 #line 180 "m68k-parse.y" 957 1143 { 958 1144 op->mode = AINDR; 959 1145 op->reg = yyvsp[-1].reg; 960 ;961 break; }1146 } 1147 break; 962 1148 case 14: 963 #line 18 4"m68k-parse.y"1149 #line 185 "m68k-parse.y" 964 1150 { 965 1151 op->mode = AINC; 966 1152 op->reg = yyvsp[-2].reg; 967 ;968 break; }1153 } 1154 break; 969 1155 case 15: 970 #line 1 89"m68k-parse.y"1156 #line 190 "m68k-parse.y" 971 1157 { 972 1158 op->mode = ADEC; 973 1159 op->reg = yyvsp[-1].reg; 974 ;975 break; }1160 } 1161 break; 976 1162 case 16: 977 #line 19 4"m68k-parse.y"1163 #line 195 "m68k-parse.y" 978 1164 { 979 1165 op->reg = yyvsp[-1].reg; … … 984 1170 else 985 1171 op->mode = DISP; 986 ;987 break; }1172 } 1173 break; 988 1174 case 17: 989 #line 20 4"m68k-parse.y"1175 #line 205 "m68k-parse.y" 990 1176 { 991 1177 op->reg = yyvsp[-3].reg; … … 996 1182 else 997 1183 op->mode = DISP; 998 ;999 break; }1184 } 1185 break; 1000 1186 case 18: 1001 #line 21 4"m68k-parse.y"1187 #line 215 "m68k-parse.y" 1002 1188 { 1003 1189 op->reg = yyvsp[-1].reg; … … 1008 1194 else 1009 1195 op->mode = DISP; 1010 ;1011 break; }1196 } 1197 break; 1012 1198 case 19: 1013 #line 22 4"m68k-parse.y"1199 #line 225 "m68k-parse.y" 1014 1200 { 1015 1201 op->mode = DISP; 1016 1202 op->reg = yyvsp[-1].reg; 1017 ;1018 break; }1203 } 1204 break; 1019 1205 case 20: 1020 #line 2 29"m68k-parse.y"1206 #line 230 "m68k-parse.y" 1021 1207 { 1022 1208 op->mode = BASE; 1023 1209 op->reg = yyvsp[-1].reg; 1024 ;1025 break; }1210 } 1211 break; 1026 1212 case 21: 1027 #line 23 4"m68k-parse.y"1213 #line 235 "m68k-parse.y" 1028 1214 { 1029 1215 op->mode = BASE; 1030 1216 op->reg = yyvsp[-1].reg; 1031 ;1032 break; }1217 } 1218 break; 1033 1219 case 22: 1034 #line 2 39"m68k-parse.y"1220 #line 240 "m68k-parse.y" 1035 1221 { 1036 1222 op->mode = BASE; … … 1038 1224 op->disp = yyvsp[-5].exp; 1039 1225 op->index = yyvsp[-1].indexreg; 1040 ;1041 break; }1226 } 1227 break; 1042 1228 case 23: 1043 #line 24 6"m68k-parse.y"1229 #line 247 "m68k-parse.y" 1044 1230 { 1045 1231 if (yyvsp[-3].reg == PC || yyvsp[-3].reg == ZPC) … … 1051 1237 op->index.size = SIZE_UNSPEC; 1052 1238 op->index.scale = 1; 1053 ;1054 break; }1239 } 1240 break; 1055 1241 case 24: 1056 #line 25 7"m68k-parse.y"1242 #line 258 "m68k-parse.y" 1057 1243 { 1058 1244 op->mode = BASE; … … 1060 1246 op->disp = yyvsp[-4].exp; 1061 1247 op->index = yyvsp[-2].indexreg; 1062 ;1063 break; }1248 } 1249 break; 1064 1250 case 25: 1065 #line 26 4"m68k-parse.y"1251 #line 265 "m68k-parse.y" 1066 1252 { 1067 1253 op->mode = BASE; 1068 1254 op->disp = yyvsp[-1].exp; 1069 1255 op->index = yyvsp[-3].indexreg; 1070 ;1071 break; }1256 } 1257 break; 1072 1258 case 26: 1073 #line 27 0"m68k-parse.y"1259 #line 271 "m68k-parse.y" 1074 1260 { 1075 1261 op->mode = BASE; … … 1077 1263 op->disp = yyvsp[-5].exp; 1078 1264 op->index = yyvsp[-1].indexreg; 1079 ;1080 break; }1265 } 1266 break; 1081 1267 case 27: 1082 #line 27 7"m68k-parse.y"1268 #line 278 "m68k-parse.y" 1083 1269 { 1084 1270 op->mode = BASE; 1085 1271 op->reg = yyvsp[-3].reg; 1086 1272 op->index = yyvsp[-1].indexreg; 1087 ;1088 break; }1273 } 1274 break; 1089 1275 case 28: 1090 #line 28 3"m68k-parse.y"1276 #line 284 "m68k-parse.y" 1091 1277 { 1092 1278 if (yyvsp[-3].reg == PC || yyvsp[-3].reg == ZPC) … … 1098 1284 op->index.size = SIZE_UNSPEC; 1099 1285 op->index.scale = 1; 1100 ;1101 break; }1286 } 1287 break; 1102 1288 case 29: 1103 #line 29 4"m68k-parse.y"1289 #line 295 "m68k-parse.y" 1104 1290 { 1105 1291 if (yyvsp[-3].reg == PC || yyvsp[-3].reg == ZPC) … … 1110 1296 op->index.size = SIZE_UNSPEC; 1111 1297 op->index.scale = 1; 1112 ;1113 break; }1298 } 1299 break; 1114 1300 case 30: 1115 #line 30 4"m68k-parse.y"1301 #line 305 "m68k-parse.y" 1116 1302 { 1117 1303 op->mode = BASE; … … 1119 1305 op->disp = yyvsp[-4].exp; 1120 1306 op->index = yyvsp[-2].indexreg; 1121 ;1122 break; }1307 } 1308 break; 1123 1309 case 31: 1124 #line 31 1"m68k-parse.y"1310 #line 312 "m68k-parse.y" 1125 1311 { 1126 1312 op->mode = BASE; 1127 1313 op->reg = yyvsp[-1].reg; 1128 1314 op->index = yyvsp[-2].indexreg; 1129 ;1130 break; }1315 } 1316 break; 1131 1317 case 32: 1132 #line 31 7"m68k-parse.y"1318 #line 318 "m68k-parse.y" 1133 1319 { 1134 1320 op->mode = POST; … … 1137 1323 op->index = yyvsp[-2].indexreg; 1138 1324 op->odisp = yyvsp[-1].exp; 1139 ;1140 break; }1325 } 1326 break; 1141 1327 case 33: 1142 #line 32 5"m68k-parse.y"1328 #line 326 "m68k-parse.y" 1143 1329 { 1144 1330 op->mode = POST; … … 1146 1332 op->disp = yyvsp[-4].exp; 1147 1333 op->odisp = yyvsp[-1].exp; 1148 ;1149 break; }1334 } 1335 break; 1150 1336 case 34: 1151 #line 33 2"m68k-parse.y"1337 #line 333 "m68k-parse.y" 1152 1338 { 1153 1339 op->mode = POST; … … 1155 1341 op->index = yyvsp[-2].indexreg; 1156 1342 op->odisp = yyvsp[-1].exp; 1157 ;1158 break; }1343 } 1344 break; 1159 1345 case 35: 1160 #line 3 39"m68k-parse.y"1346 #line 340 "m68k-parse.y" 1161 1347 { 1162 1348 op->mode = POST; 1163 1349 op->reg = yyvsp[-3].reg; 1164 1350 op->odisp = yyvsp[-1].exp; 1165 ;1166 break; }1351 } 1352 break; 1167 1353 case 36: 1168 #line 34 5"m68k-parse.y"1354 #line 346 "m68k-parse.y" 1169 1355 { 1170 1356 op->mode = PRE; … … 1173 1359 op->index = yyvsp[-3].indexreg; 1174 1360 op->odisp = yyvsp[-1].exp; 1175 ;1176 break; }1361 } 1362 break; 1177 1363 case 37: 1178 #line 35 3"m68k-parse.y"1364 #line 354 "m68k-parse.y" 1179 1365 { 1180 1366 op->mode = PRE; … … 1182 1368 op->index = yyvsp[-3].indexreg; 1183 1369 op->odisp = yyvsp[-1].exp; 1184 ;1185 break; }1370 } 1371 break; 1186 1372 case 38: 1187 #line 36 0"m68k-parse.y"1373 #line 361 "m68k-parse.y" 1188 1374 { 1189 1375 if (yyvsp[-5].reg == PC || yyvsp[-5].reg == ZPC) … … 1196 1382 op->index.scale = 1; 1197 1383 op->odisp = yyvsp[-1].exp; 1198 ;1199 break; }1384 } 1385 break; 1200 1386 case 39: 1201 #line 37 2"m68k-parse.y"1387 #line 373 "m68k-parse.y" 1202 1388 { 1203 1389 if (yyvsp[-5].reg == PC || yyvsp[-5].reg == ZPC) … … 1209 1395 op->index.scale = 1; 1210 1396 op->odisp = yyvsp[-1].exp; 1211 ;1212 break; }1397 } 1398 break; 1213 1399 case 40: 1214 #line 38 3"m68k-parse.y"1400 #line 384 "m68k-parse.y" 1215 1401 { 1216 1402 op->mode = PRE; … … 1219 1405 op->index = yyvsp[-4].indexreg; 1220 1406 op->odisp = yyvsp[-1].exp; 1221 ;1222 break; }1407 } 1408 break; 1223 1409 case 41: 1224 #line 39 6"m68k-parse.y"1410 #line 397 "m68k-parse.y" 1225 1411 { 1226 1412 /* We use optzapc to avoid a shift/reduce conflict. */ … … 1229 1415 op->mode = AINDR; 1230 1416 op->reg = yyvsp[-1].reg; 1231 ;1232 break; }1417 } 1418 break; 1233 1419 case 42: 1234 #line 40 4"m68k-parse.y"1420 #line 405 "m68k-parse.y" 1235 1421 { 1236 1422 /* We use optzapc to avoid a shift/reduce conflict. */ … … 1239 1425 op->mode = AINC; 1240 1426 op->reg = yyvsp[-2].reg; 1241 ;1242 break; }1427 } 1428 break; 1243 1429 case 43: 1244 #line 41 2"m68k-parse.y"1430 #line 413 "m68k-parse.y" 1245 1431 { 1246 1432 /* We use optzapc to avoid a shift/reduce conflict. */ … … 1249 1435 op->mode = ADEC; 1250 1436 op->reg = yyvsp[-2].reg; 1251 ;1252 break; }1437 } 1438 break; 1253 1439 case 44: 1254 #line 42 0"m68k-parse.y"1440 #line 421 "m68k-parse.y" 1255 1441 { 1256 1442 op->reg = yyvsp[-4].reg; … … 1261 1447 else 1262 1448 op->mode = DISP; 1263 ;1264 break; }1449 } 1450 break; 1265 1451 case 45: 1266 #line 43 0"m68k-parse.y"1452 #line 431 "m68k-parse.y" 1267 1453 { 1268 1454 op->mode = BASE; … … 1270 1456 op->disp = yyvsp[-2].exp; 1271 1457 op->index = yyvsp[-1].indexreg; 1272 ;1273 break; }1458 } 1459 break; 1274 1460 case 46: 1275 #line 43 7"m68k-parse.y"1461 #line 438 "m68k-parse.y" 1276 1462 { 1277 1463 op->mode = POST; … … 1280 1466 op->index = yyvsp[-1].indexreg; 1281 1467 op->odisp = yyvsp[-2].exp; 1282 ;1283 break; }1468 } 1469 break; 1284 1470 case 47: 1285 #line 44 5"m68k-parse.y"1471 #line 446 "m68k-parse.y" 1286 1472 { 1287 1473 op->mode = POST; … … 1289 1475 op->disp = yyvsp[-5].exp; 1290 1476 op->odisp = yyvsp[-1].exp; 1291 ;1292 break; }1477 } 1478 break; 1293 1479 case 48: 1294 #line 45 2"m68k-parse.y"1480 #line 453 "m68k-parse.y" 1295 1481 { 1296 1482 op->mode = PRE; … … 1299 1485 op->index = yyvsp[-5].indexreg; 1300 1486 op->odisp = yyvsp[-1].exp; 1301 ;1302 break; }1487 } 1488 break; 1303 1489 case 50: 1304 #line 46 7"m68k-parse.y"1490 #line 468 "m68k-parse.y" 1305 1491 { 1306 1492 yyval.indexreg.reg = yyvsp[0].reg; 1307 1493 yyval.indexreg.size = SIZE_UNSPEC; 1308 1494 yyval.indexreg.scale = 1; 1309 ;1310 break; }1495 } 1496 break; 1311 1497 case 52: 1312 #line 48 1"m68k-parse.y"1498 #line 482 "m68k-parse.y" 1313 1499 { 1314 1500 yyval.indexreg.reg = yyvsp[0].reg; 1315 1501 yyval.indexreg.size = SIZE_UNSPEC; 1316 1502 yyval.indexreg.scale = 1; 1317 ;1318 break; }1503 } 1504 break; 1319 1505 case 63: 1320 #line 52 4"m68k-parse.y"1506 #line 525 "m68k-parse.y" 1321 1507 { 1322 1508 yyval.reg = ZADDR0; 1323 ;1324 break; }1509 } 1510 break; 1325 1511 case 67: 1326 #line 54 1"m68k-parse.y"1512 #line 542 "m68k-parse.y" 1327 1513 { 1328 1514 yyval.reg = ZADDR0; 1329 ;1330 break; }1515 } 1516 break; 1331 1517 case 68: 1332 #line 54 5"m68k-parse.y"1518 #line 546 "m68k-parse.y" 1333 1519 { 1334 1520 yyval.reg = yyvsp[0].reg; 1335 ;1336 break; }1521 } 1522 break; 1337 1523 case 69: 1338 #line 55 4"m68k-parse.y"1524 #line 555 "m68k-parse.y" 1339 1525 { 1340 1526 yyval.exp.exp.X_op = O_absent; 1341 1527 yyval.exp.size = SIZE_UNSPEC; 1342 ;1343 break; }1528 } 1529 break; 1344 1530 case 70: 1345 #line 5 59"m68k-parse.y"1531 #line 560 "m68k-parse.y" 1346 1532 { 1347 1533 yyval.exp = yyvsp[0].exp; 1348 ;1349 break; }1534 } 1535 break; 1350 1536 case 71: 1351 #line 56 8"m68k-parse.y"1537 #line 569 "m68k-parse.y" 1352 1538 { 1353 1539 yyval.exp.exp.X_op = O_absent; 1354 1540 yyval.exp.size = SIZE_UNSPEC; 1355 ;1356 break; }1541 } 1542 break; 1357 1543 case 72: 1358 #line 57 3"m68k-parse.y"1544 #line 574 "m68k-parse.y" 1359 1545 { 1360 1546 yyval.exp = yyvsp[-1].exp; 1361 ;1362 break; }1547 } 1548 break; 1363 1549 case 74: 1364 #line 58 3"m68k-parse.y"1550 #line 584 "m68k-parse.y" 1365 1551 { 1366 1552 yyval.mask = yyvsp[-2].mask | yyvsp[0].mask; 1367 ;1368 break; }1553 } 1554 break; 1369 1555 case 75: 1370 #line 58 7"m68k-parse.y"1556 #line 588 "m68k-parse.y" 1371 1557 { 1372 1558 yyval.mask = (1 << yyvsp[-2].onereg) | yyvsp[0].mask; 1373 ;1374 break; }1559 } 1560 break; 1375 1561 case 76: 1376 #line 599"m68k-parse.y"1562 #line 600 "m68k-parse.y" 1377 1563 { 1378 1564 yyval.mask = 1 << yyvsp[0].onereg; 1379 ;1380 break; }1565 } 1566 break; 1381 1567 case 78: 1382 #line 60 4"m68k-parse.y"1568 #line 605 "m68k-parse.y" 1383 1569 { 1384 1570 yyval.mask = yyvsp[-2].mask | yyvsp[0].mask; 1385 ;1386 break; }1571 } 1572 break; 1387 1573 case 79: 1388 #line 60 8"m68k-parse.y"1574 #line 609 "m68k-parse.y" 1389 1575 { 1390 1576 yyval.mask = (1 << yyvsp[-2].onereg) | yyvsp[0].mask; 1391 ;1392 break; }1577 } 1578 break; 1393 1579 case 80: 1394 #line 61 5"m68k-parse.y"1580 #line 616 "m68k-parse.y" 1395 1581 { 1396 1582 if (yyvsp[-2].onereg <= yyvsp[0].onereg) … … 1398 1584 else 1399 1585 yyval.mask = (1 << (yyvsp[-2].onereg + 1)) - 1 - ((1 << yyvsp[0].onereg) - 1); 1400 ;1401 break; }1586 } 1587 break; 1402 1588 case 81: 1403 #line 62 5"m68k-parse.y"1589 #line 626 "m68k-parse.y" 1404 1590 { 1405 1591 yyval.onereg = yyvsp[0].reg - DATA0; 1406 ;1407 break; }1592 } 1593 break; 1408 1594 case 82: 1409 #line 6 29"m68k-parse.y"1595 #line 630 "m68k-parse.y" 1410 1596 { 1411 1597 yyval.onereg = yyvsp[0].reg - ADDR0 + 8; 1412 ;1413 break; }1598 } 1599 break; 1414 1600 case 83: 1415 #line 63 3"m68k-parse.y"1601 #line 634 "m68k-parse.y" 1416 1602 { 1417 1603 yyval.onereg = yyvsp[0].reg - FP0 + 16; 1418 ;1419 break; }1604 } 1605 break; 1420 1606 case 84: 1421 #line 63 7"m68k-parse.y"1607 #line 638 "m68k-parse.y" 1422 1608 { 1423 1609 if (yyvsp[0].reg == FPI) … … 1427 1613 else 1428 1614 yyval.onereg = 26; 1429 ;1430 break; }1615 } 1616 break; 1431 1617 } 1432 /* the action file gets copied in in place of this dollarsign */ 1433 #line 543 "/usr/share/bison/bison.simple" 1618 1619 #line 705 "/usr/share/bison-1.35/bison.simple" 1620 1434 1621 1435 1622 1436 1623 yyvsp -= yylen; 1437 1624 yyssp -= yylen; 1438 #if defYYLSP_NEEDED1625 #if YYLSP_NEEDED 1439 1626 yylsp -= yylen; 1440 1627 #endif 1441 1628 1442 #if YYDEBUG != 01629 #if YYDEBUG 1443 1630 if (yydebug) 1444 1631 { 1445 short * ssp1 = yyss - 1;1446 fprintf(stderr, "state stack now");1447 while ( ssp1 != yyssp)1448 fprintf (stderr, " %d", *++ssp1);1449 fprintf(stderr, "\n");1632 short *yyssp1 = yyss - 1; 1633 YYFPRINTF (stderr, "state stack now"); 1634 while (yyssp1 != yyssp) 1635 YYFPRINTF (stderr, " %d", *++yyssp1); 1636 YYFPRINTF (stderr, "\n"); 1450 1637 } 1451 1638 #endif 1452 1639 1453 1640 *++yyvsp = yyval; 1454 1455 #ifdef YYLSP_NEEDED 1456 yylsp++; 1457 if (yylen == 0) 1458 { 1459 yylsp->first_line = yylloc.first_line; 1460 yylsp->first_column = yylloc.first_column; 1461 yylsp->last_line = (yylsp-1)->last_line; 1462 yylsp->last_column = (yylsp-1)->last_column; 1463 yylsp->text = 0; 1464 } 1465 else 1466 { 1467 yylsp->last_line = (yylsp+yylen-1)->last_line; 1468 yylsp->last_column = (yylsp+yylen-1)->last_column; 1469 } 1470 #endif 1471 1472 /* Now "shift" the result of the reduction. 1473 Determine what state that goes to, 1474 based on the state we popped back to 1475 and the rule number reduced by. */ 1641 #if YYLSP_NEEDED 1642 *++yylsp = yyloc; 1643 #endif 1644 1645 /* Now `shift' the result of the reduction. Determine what state 1646 that goes to, based on the state we popped back to and the rule 1647 number reduced by. */ 1476 1648 1477 1649 yyn = yyr1[yyn]; … … 1485 1657 goto yynewstate; 1486 1658 1487 yyerrlab: /* here on detecting error */ 1488 1489 if (! yyerrstatus) 1490 /* If not already recovering from an error, report this error. */ 1659 1660 /*------------------------------------. 1661 | yyerrlab -- here on detecting error | 1662 `------------------------------------*/ 1663 yyerrlab: 1664 /* If not already recovering from an error, report this error. */ 1665 if (!yyerrstatus) 1491 1666 { 1492 1667 ++yynerrs; … … 1497 1672 if (yyn > YYFLAG && yyn < YYLAST) 1498 1673 { 1499 int size = 0; 1500 char *msg; 1501 int x, count; 1502 1503 count = 0; 1504 /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ 1505 for (x = (yyn < 0 ? -yyn : 0); 1506 x < (sizeof(yytname) / sizeof(char *)); x++) 1507 if (yycheck[x + yyn] == x) 1508 size += strlen(yytname[x]) + 15, count++; 1509 msg = (char *) malloc(size + 15); 1510 if (msg != 0) 1674 YYSIZE_T yysize = 0; 1675 char *yymsg; 1676 int yyx, yycount; 1677 1678 yycount = 0; 1679 /* Start YYX at -YYN if negative to avoid negative indexes in 1680 YYCHECK. */ 1681 for (yyx = yyn < 0 ? -yyn : 0; 1682 yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) 1683 if (yycheck[yyx + yyn] == yyx) 1684 yysize += yystrlen (yytname[yyx]) + 15, yycount++; 1685 yysize += yystrlen ("parse error, unexpected ") + 1; 1686 yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); 1687 yymsg = (char *) YYSTACK_ALLOC (yysize); 1688 if (yymsg != 0) 1511 1689 { 1512 strcpy(msg, "parse error"); 1513 1514 if (count < 5) 1690 char *yyp = yystpcpy (yymsg, "parse error, unexpected "); 1691 yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); 1692 1693 if (yycount < 5) 1515 1694 { 1516 count = 0; 1517 for (x = (yyn < 0 ? -yyn : 0); 1518 x < (sizeof(yytname) / sizeof(char *)); x++) 1519 if (yycheck[x + yyn] == x) 1695 yycount = 0; 1696 for (yyx = yyn < 0 ? -yyn : 0; 1697 yyx < (int) (sizeof (yytname) / sizeof (char *)); 1698 yyx++) 1699 if (yycheck[yyx + yyn] == yyx) 1520 1700 { 1521 strcat(msg, count == 0 ? ", expecting `" : " or `");1522 strcat(msg, yytname[x]);1523 strcat(msg, "'");1524 count++;1701 const char *yyq = ! yycount ? ", expecting " : " or "; 1702 yyp = yystpcpy (yyp, yyq); 1703 yyp = yystpcpy (yyp, yytname[yyx]); 1704 yycount++; 1525 1705 } 1526 1706 } 1527 yyerror (msg);1528 free(msg);1707 yyerror (yymsg); 1708 YYSTACK_FREE (yymsg); 1529 1709 } 1530 1710 else 1531 yyerror ("parse error; also virtual memory ex ceeded");1711 yyerror ("parse error; also virtual memory exhausted"); 1532 1712 } 1533 1713 else 1534 #endif /* YYERROR_VERBOSE*/1535 yyerror ("parse error");1714 #endif /* defined (YYERROR_VERBOSE) */ 1715 yyerror ("parse error"); 1536 1716 } 1537 1538 1717 goto yyerrlab1; 1539 yyerrlab1: /* here on error raised explicitly by an action */ 1540 1718 1719 1720 /*--------------------------------------------------. 1721 | yyerrlab1 -- error raised explicitly by an action | 1722 `--------------------------------------------------*/ 1723 yyerrlab1: 1541 1724 if (yyerrstatus == 3) 1542 1725 { 1543 /* if just tried and failed to reuse lookahead token after an error, discard it. */ 1726 /* If just tried and failed to reuse lookahead token after an 1727 error, discard it. */ 1544 1728 1545 1729 /* return failure if at end of input */ 1546 1730 if (yychar == YYEOF) 1547 1731 YYABORT; 1548 1549 #if YYDEBUG != 0 1550 if (yydebug) 1551 fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); 1552 #endif 1553 1732 YYDPRINTF ((stderr, "Discarding token %d (%s).\n", 1733 yychar, yytname[yychar1])); 1554 1734 yychar = YYEMPTY; 1555 1735 } 1556 1736 1557 /* Else will try to reuse lookahead token 1558 after shifting the errortoken. */1737 /* Else will try to reuse lookahead token after shifting the error 1738 token. */ 1559 1739 1560 1740 yyerrstatus = 3; /* Each real token shifted decrements this */ … … 1562 1742 goto yyerrhandle; 1563 1743 1564 yyerrdefault: /* current state does not do anything special for the error token. */ 1565 1744 1745 /*-------------------------------------------------------------------. 1746 | yyerrdefault -- current state does not do anything special for the | 1747 | error token. | 1748 `-------------------------------------------------------------------*/ 1749 yyerrdefault: 1566 1750 #if 0 1567 1751 /* This is wrong; only states that explicitly want error tokens 1568 1752 should shift them. */ 1569 yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ 1570 if (yyn) goto yydefault; 1571 #endif 1572 1573 yyerrpop: /* pop the current state because it cannot handle the error token */ 1574 1575 if (yyssp == yyss) YYABORT; 1753 1754 /* If its default is to accept any token, ok. Otherwise pop it. */ 1755 yyn = yydefact[yystate]; 1756 if (yyn) 1757 goto yydefault; 1758 #endif 1759 1760 1761 /*---------------------------------------------------------------. 1762 | yyerrpop -- pop the current state because it cannot handle the | 1763 | error token | 1764 `---------------------------------------------------------------*/ 1765 yyerrpop: 1766 if (yyssp == yyss) 1767 YYABORT; 1576 1768 yyvsp--; 1577 1769 yystate = *--yyssp; 1578 #if defYYLSP_NEEDED1770 #if YYLSP_NEEDED 1579 1771 yylsp--; 1580 1772 #endif 1581 1773 1582 #if YYDEBUG != 01774 #if YYDEBUG 1583 1775 if (yydebug) 1584 1776 { 1585 short * ssp1 = yyss - 1;1586 fprintf(stderr, "Error: state stack now");1587 while ( ssp1 != yyssp)1588 fprintf (stderr, " %d", *++ssp1);1589 fprintf(stderr, "\n");1777 short *yyssp1 = yyss - 1; 1778 YYFPRINTF (stderr, "Error: state stack now"); 1779 while (yyssp1 != yyssp) 1780 YYFPRINTF (stderr, " %d", *++yyssp1); 1781 YYFPRINTF (stderr, "\n"); 1590 1782 } 1591 1783 #endif 1592 1784 1785 /*--------------. 1786 | yyerrhandle. | 1787 `--------------*/ 1593 1788 yyerrhandle: 1594 1595 1789 yyn = yypact[yystate]; 1596 1790 if (yyn == YYFLAG) … … 1615 1809 YYACCEPT; 1616 1810 1617 #if YYDEBUG != 0 1618 if (yydebug) 1619 fprintf(stderr, "Shifting error token, "); 1620 #endif 1811 YYDPRINTF ((stderr, "Shifting error token, ")); 1621 1812 1622 1813 *++yyvsp = yylval; 1623 #if defYYLSP_NEEDED1814 #if YYLSP_NEEDED 1624 1815 *++yylsp = yylloc; 1625 1816 #endif … … 1628 1819 goto yynewstate; 1629 1820 1630 yyacceptlab: 1631 /* YYACCEPT comes here. */ 1632 if (yyfree_stacks) 1633 { 1634 free (yyss); 1635 free (yyvs); 1636 #ifdef YYLSP_NEEDED 1637 free (yyls); 1638 #endif 1639 } 1640 return 0; 1641 1642 yyabortlab: 1643 /* YYABORT comes here. */ 1644 if (yyfree_stacks) 1645 { 1646 free (yyss); 1647 free (yyvs); 1648 #ifdef YYLSP_NEEDED 1649 free (yyls); 1650 #endif 1651 } 1652 return 1; 1821 1822 /*-------------------------------------. 1823 | yyacceptlab -- YYACCEPT comes here. | 1824 `-------------------------------------*/ 1825 yyacceptlab: 1826 yyresult = 0; 1827 goto yyreturn; 1828 1829 /*-----------------------------------. 1830 | yyabortlab -- YYABORT comes here. | 1831 `-----------------------------------*/ 1832 yyabortlab: 1833 yyresult = 1; 1834 goto yyreturn; 1835 1836 /*---------------------------------------------. 1837 | yyoverflowab -- parser overflow comes here. | 1838 `---------------------------------------------*/ 1839 yyoverflowlab: 1840 yyerror ("parser stack overflow"); 1841 yyresult = 2; 1842 /* Fall through. */ 1843 1844 yyreturn: 1845 #ifndef yyoverflow 1846 if (yyss != yyssa) 1847 YYSTACK_FREE (yyss); 1848 #endif 1849 return yyresult; 1653 1850 } 1654 #line 64 7"m68k-parse.y"1851 #line 648 "m68k-parse.y" 1655 1852 1656 1853 … … 1752 1949 if (flag_mri) 1753 1950 { 1754 if ( isdigit(str[1])1951 if (ISDIGIT (str[1]) 1755 1952 || ((str[1] == '+' || str[1] == '-') 1756 && isdigit(str[2])))1953 && ISDIGIT (str[2]))) 1757 1954 break; 1758 1955 } … … 1938 2135 if (parens == 0 1939 2136 && s > str 1940 && (s[-1] == ')' || isalnum ((unsigned char)s[-1])))2137 && (s[-1] == ')' || ISALNUM (s[-1]))) 1941 2138 break; 1942 2139 ++parens; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.