1 diff --git a/as31/parser.c b/as31/parser.c
2 index dd388a9..53a9c8f 100644
6 -/* A Bison parser, made by GNU Bison 1.875d. */
7 +/* A Bison parser, made by GNU Bison 2.5. */
9 -/* Skeleton parser for Yacc-like parsing with Bison,
10 - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
12 - This program is free software; you can redistribute it and/or modify
13 +/* Bison implementation for Yacc-like parsers in C
15 + Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
17 + This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 - the Free Software Foundation; either version 2, or (at your option)
22 + the Free Software Foundation, either version 3 of the License, or
23 + (at your option) any later version.
25 This program is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 GNU General Public License for more details.
31 You should have received a copy of the GNU General Public License
32 - along with this program; if not, write to the Free Software
33 - Foundation, Inc., 59 Temple Place - Suite 330,
34 - Boston, MA 02111-1307, USA. */
36 -/* As a special exception, when this file is copied by Bison into a
37 - Bison output file, you may use that output file without restriction.
38 - This special exception was added by the Free Software Foundation
39 - in version 1.24 of Bison. */
41 -/* Written by Richard Stallman by simplifying the original so called
42 - ``semantic'' parser. */
43 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
45 +/* As a special exception, you may create a larger work that contains
46 + part or all of the Bison parser skeleton and distribute that work
47 + under terms of your choice, so long as that work isn't itself a
48 + parser generator using the skeleton or a modified version thereof
49 + as a parser skeleton. Alternatively, if you modify or redistribute
50 + the parser skeleton itself, you may (at your option) remove this
51 + special exception, which will cause the skeleton and the resulting
52 + Bison output files to be licensed under the GNU General Public
53 + License without this special exception.
55 + This special exception was added by the Free Software Foundation in
56 + version 2.2 of Bison. */
58 +/* C LALR(1) parser skeleton written by Richard Stallman, by
59 + simplifying the original so-called "semantic" parser. */
61 /* All symbols defined below should begin with yy or YY, to avoid
62 infringing on user name space. This should be done even for local
64 /* Identify Bison output. */
68 +#define YYBISON_VERSION "2.5"
71 #define YYSKELETON_NAME "yacc.c"
82 /* Using locations. */
83 #define YYLSP_NEEDED 0
87 +/* Copy the first part of user declarations. */
89 +/* Line 268 of yacc.c */
100 +#define YYSTYPE union ystack
102 +static unsigned char bytebuf[1024]; /* used by dumplist() */
103 +static int bytecount;
106 +void yyerror(const char *s);
107 +int makeop(struct opcode * op, struct mode *m, int add);
109 +char *padline(char *line);
110 +void dumplist(char *txt, int show);
111 +void genbyte(int b);
112 +void genstr(const char *s);
113 +void genword(unsigned long w);
115 +/* ------------------------ G R A M M E R ----------------------------- */
119 +/* Line 268 of yacc.c */
122 +/* Enabling traces. */
127 +/* Enabling verbose error messages. */
128 +#ifdef YYERROR_VERBOSE
129 +# undef YYERROR_VERBOSE
130 +# define YYERROR_VERBOSE 1
132 +# define YYERROR_VERBOSE 0
135 +/* Enabling the token table. */
136 +#ifndef YYTOKEN_TABLE
137 +# define YYTOKEN_TABLE 0
152 @@ -195,113 +266,184 @@
156 -/* Copy the first part of user declarations. */
167 -#define YYSTYPE union ystack
169 -static unsigned char bytebuf[1024]; /* used by dumplist() */
170 -static int bytecount;
171 +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
172 +typedef int YYSTYPE;
173 +# define YYSTYPE_IS_TRIVIAL 1
174 +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
175 +# define YYSTYPE_IS_DECLARED 1
179 -void yyerror(const char *s);
180 -int makeop(struct opcode * op, struct mode *m, int add);
182 -char *padline(char *line);
183 -void dumplist(char *txt, int show);
184 -void genbyte(int b);
185 -void genstr(const char *s);
186 -void genword(unsigned long w);
187 +/* Copy the second part of user declarations. */
189 -/* ------------------------ G R A M M E R ----------------------------- */
191 +/* Line 343 of yacc.c */
198 -/* Enabling traces. */
202 +typedef YYTYPE_UINT8 yytype_uint8;
204 +typedef unsigned char yytype_uint8;
207 -/* Enabling verbose error messages. */
208 -#ifdef YYERROR_VERBOSE
209 -# undef YYERROR_VERBOSE
210 -# define YYERROR_VERBOSE 1
212 +typedef YYTYPE_INT8 yytype_int8;
213 +#elif (defined __STDC__ || defined __C99__FUNC__ \
214 + || defined __cplusplus || defined _MSC_VER)
215 +typedef signed char yytype_int8;
217 -# define YYERROR_VERBOSE 0
218 +typedef short int yytype_int8;
221 -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
222 -typedef int YYSTYPE;
223 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */
224 -# define YYSTYPE_IS_DECLARED 1
225 -# define YYSTYPE_IS_TRIVIAL 1
226 +#ifdef YYTYPE_UINT16
227 +typedef YYTYPE_UINT16 yytype_uint16;
229 +typedef unsigned short int yytype_uint16;
233 +typedef YYTYPE_INT16 yytype_int16;
235 +typedef short int yytype_int16;
239 +# ifdef __SIZE_TYPE__
240 +# define YYSIZE_T __SIZE_TYPE__
241 +# elif defined size_t
242 +# define YYSIZE_T size_t
243 +# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
244 + || defined __cplusplus || defined _MSC_VER)
245 +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
246 +# define YYSIZE_T size_t
248 +# define YYSIZE_T unsigned int
252 -/* Copy the second part of user declarations. */
253 +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
256 +# if defined YYENABLE_NLS && YYENABLE_NLS
258 +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
259 +# define YY_(msgid) dgettext ("bison-runtime", msgid)
263 +# define YY_(msgid) msgid
267 -/* Line 214 of yacc.c. */
269 +/* Suppress unused-variable warnings by "using" E. */
270 +#if ! defined lint || defined __GNUC__
271 +# define YYUSE(e) ((void) (e))
273 +# define YYUSE(e) /* empty */
276 -#if ! defined (yyoverflow) || YYERROR_VERBOSE
277 +/* Identity function, used to suppress warnings about constant conditions. */
279 +# define YYID(n) (n)
281 +#if (defined __STDC__ || defined __C99__FUNC__ \
282 + || defined __cplusplus || defined _MSC_VER)
296 -# define YYFREE free
299 -# define YYMALLOC malloc
301 +#if ! defined yyoverflow || YYERROR_VERBOSE
303 /* The parser invokes alloca or malloc; define the necessary symbols. */
305 # ifdef YYSTACK_USE_ALLOCA
306 # if YYSTACK_USE_ALLOCA
307 -# define YYSTACK_ALLOC alloca
310 -# if defined (alloca) || defined (_ALLOCA_H)
311 -# define YYSTACK_ALLOC alloca
314 # define YYSTACK_ALLOC __builtin_alloca
315 +# elif defined __BUILTIN_VA_ARG_INCR
316 +# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
318 +# define YYSTACK_ALLOC __alloca
319 +# elif defined _MSC_VER
320 +# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
321 +# define alloca _alloca
323 +# define YYSTACK_ALLOC alloca
324 +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
325 + || defined __cplusplus || defined _MSC_VER)
326 +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
327 +# ifndef EXIT_SUCCESS
328 +# define EXIT_SUCCESS 0
335 # ifdef YYSTACK_ALLOC
336 - /* Pacify GCC's `empty if-body' warning. */
337 -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
339 -# if defined (__STDC__) || defined (__cplusplus)
340 -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
341 -# define YYSIZE_T size_t
342 + /* Pacify GCC's `empty if-body' warning. */
343 +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
344 +# ifndef YYSTACK_ALLOC_MAXIMUM
345 + /* The OS might guarantee only one guard page at the bottom of the stack,
346 + and a page size can be as small as 4096 bytes. So we cannot safely
347 + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
348 + to allow for a few compiler-allocated temporary stack slots. */
349 +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
352 # define YYSTACK_ALLOC YYMALLOC
353 # define YYSTACK_FREE YYFREE
354 +# ifndef YYSTACK_ALLOC_MAXIMUM
355 +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
357 +# if (defined __cplusplus && ! defined EXIT_SUCCESS \
358 + && ! ((defined YYMALLOC || defined malloc) \
359 + && (defined YYFREE || defined free)))
360 +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
361 +# ifndef EXIT_SUCCESS
362 +# define EXIT_SUCCESS 0
366 +# define YYMALLOC malloc
367 +# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
368 + || defined __cplusplus || defined _MSC_VER)
369 +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
373 +# define YYFREE free
374 +# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
375 + || defined __cplusplus || defined _MSC_VER)
376 +void free (void *); /* INFRINGES ON USER NAME SPACE */
380 -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
381 +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
384 -#if (! defined (yyoverflow) \
385 - && (! defined (__cplusplus) \
386 - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
387 +#if (! defined yyoverflow \
388 + && (! defined __cplusplus \
389 + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
391 /* A type that is properly aligned for any stack member. */
397 + yytype_int16 yyss_alloc;
398 + YYSTYPE yyvs_alloc;
401 /* The size of the maximum gap between one aligned stack and the next. */
402 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
403 @@ -309,74 +451,72 @@ union yyalloc
404 /* The size of an array large to enough to hold all stacks, each with
406 # define YYSTACK_BYTES(N) \
407 - ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
408 + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
409 + YYSTACK_GAP_MAXIMUM)
411 -/* Copy COUNT objects from FROM to TO. The source and destination do
414 -# if defined (__GNUC__) && 1 < __GNUC__
415 -# define YYCOPY(To, From, Count) \
416 - __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
418 -# define YYCOPY(To, From, Count) \
421 - register YYSIZE_T yyi; \
422 - for (yyi = 0; yyi < (Count); yyi++) \
423 - (To)[yyi] = (From)[yyi]; \
428 +# define YYCOPY_NEEDED 1
430 /* Relocate STACK from its old location to the new one. The
431 local variables YYSIZE and YYSTACKSIZE give the old and new number of
432 elements in the stack, and YYPTR gives the new location of the
433 stack. Advance YYPTR to a properly aligned location for the next
435 -# define YYSTACK_RELOCATE(Stack) \
436 +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
439 YYSIZE_T yynewbytes; \
440 - YYCOPY (&yyptr->Stack, Stack, yysize); \
441 - Stack = &yyptr->Stack; \
442 + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
443 + Stack = &yyptr->Stack_alloc; \
444 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
445 yyptr += yynewbytes / sizeof (*yyptr); \
452 -#if defined (__STDC__) || defined (__cplusplus)
453 - typedef signed char yysigned_char;
455 - typedef short int yysigned_char;
457 +#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
458 +/* Copy COUNT objects from FROM to TO. The source and destination do
461 +# if defined __GNUC__ && 1 < __GNUC__
462 +# define YYCOPY(To, From, Count) \
463 + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
465 +# define YYCOPY(To, From, Count) \
469 + for (yyi = 0; yyi < (Count); yyi++) \
470 + (To)[yyi] = (From)[yyi]; \
475 +#endif /* !YYCOPY_NEEDED */
477 -/* YYFINAL -- State number of the termination state. */
478 +/* YYFINAL -- State number of the termination state. */
480 /* YYLAST -- Last index in YYTABLE. */
483 -/* YYNTOKENS -- Number of terminals. */
484 +/* YYNTOKENS -- Number of terminals. */
486 -/* YYNNTS -- Number of nonterminals. */
487 +/* YYNNTS -- Number of nonterminals. */
489 -/* YYNRULES -- Number of rules. */
490 +/* YYNRULES -- Number of rules. */
492 -/* YYNRULES -- Number of states. */
493 +/* YYNRULES -- Number of states. */
494 #define YYNSTATES 316
496 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
498 #define YYMAXUTOK 325
500 -#define YYTRANSLATE(YYX) \
501 +#define YYTRANSLATE(YYX) \
502 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
504 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
505 -static const unsigned char yytranslate[] =
506 +static const yytype_uint8 yytranslate[] =
508 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
509 81, 2, 2, 2, 2, 2, 2, 2, 2, 2,
510 @@ -416,7 +556,7 @@ static const unsigned char yytranslate[] =
512 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
514 -static const unsigned short int yyprhs[] =
515 +static const yytype_uint16 yyprhs[] =
517 0, 0, 3, 5, 8, 10, 14, 16, 19, 22,
518 24, 25, 29, 33, 37, 41, 45, 51, 57, 60,
519 @@ -437,8 +577,8 @@ static const unsigned short int yyprhs[] =
520 551, 553, 555, 557, 559, 561
523 -/* YYRHS -- A `-1'-separated list of the rules' RHS. */
524 -static const yysigned_char yyrhs[] =
525 +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
526 +static const yytype_int8 yyrhs[] =
528 90, 0, -1, 91, -1, 91, 92, -1, 92, -1,
529 99, 80, 93, -1, 93, -1, 95, 81, -1, 103,
530 @@ -500,7 +640,7 @@ static const yysigned_char yyrhs[] =
533 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
534 -static const unsigned short int yyrline[] =
535 +static const yytype_uint16 yyrline[] =
537 0, 126, 126, 131, 132, 135, 145, 148, 153, 159,
538 164, 164, 183, 190, 191, 192, 195, 204, 210, 213,
539 @@ -522,9 +662,9 @@ static const unsigned short int yyrline[] =
543 -#if YYDEBUG || YYERROR_VERBOSE
544 -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
545 - First, the terminals, then, starting at YYNTOKENS, nonterminals. */
546 +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
547 +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
548 + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
549 static const char *const yytname[] =
551 "$end", "error", "$undefined", "STRING", "D_ORG", "D_BYTE", "D_WORD",
552 @@ -537,7 +677,7 @@ static const char *const yytname[] =
553 "R5", "R6", "R7", "VALUE", "SYMBOL", "'+'", "'-'", "'*'", "'/'", "'%'",
554 "'|'", "'&'", "'>'", "'<'", "':'", "'\\n'", "'.'", "','", "'('", "')'",
555 "'@'", "'#'", "'!'", "$accept", "program", "linelist", "line",
556 - "linerest", "@1", "directive", "defexpr", "flag", "flagv", "undefsym",
557 + "linerest", "$@1", "directive", "defexpr", "flag", "flagv", "undefsym",
558 "blist", "wlist", "expr", "instr", "two_op1", "two_op2", "two_op3",
559 "two_op4", "two_op5", "two_op6", "single_op1", "single_op2", "three_op1",
560 "rel", "rel2", "bit", "bitv", "reg", "regi", "data8", "data16", "addr11",
561 @@ -548,7 +688,7 @@ static const char *const yytname[] =
563 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
565 -static const unsigned short int yytoknum[] =
566 +static const yytype_uint16 yytoknum[] =
568 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
569 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
570 @@ -563,7 +703,7 @@ static const unsigned short int yytoknum[] =
573 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
574 -static const unsigned char yyr1[] =
575 +static const yytype_uint8 yyr1[] =
577 0, 89, 90, 91, 91, 92, 92, 93, 93, 93,
578 94, 93, 95, 95, 95, 95, 95, 95, 95, 96,
579 @@ -585,7 +725,7 @@ static const unsigned char yyr1[] =
582 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
583 -static const unsigned char yyr2[] =
584 +static const yytype_uint8 yyr2[] =
586 0, 2, 1, 2, 1, 3, 1, 2, 2, 1,
587 0, 3, 3, 3, 3, 3, 5, 5, 2, 1,
588 @@ -606,10 +746,10 @@ static const unsigned char yyr2[] =
592 -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
593 - STATE-NUM when YYTABLE doesn't specify something else to do. Zero
594 +/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
595 + Performed when YYTABLE doesn't specify something else to do. Zero
596 means the default is an error. */
597 -static const unsigned char yydefact[] =
598 +static const yytype_uint8 yydefact[] =
600 0, 10, 0, 0, 0, 0, 0, 0, 0, 0,
601 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
602 @@ -645,8 +785,8 @@ static const unsigned char yydefact[] =
603 137, 97, 95, 98, 96, 138
606 -/* YYDEFGOTO[NTERM-NUM]. */
607 -static const short int yydefgoto[] =
608 +/* YYDEFGOTO[NTERM-NUM]. */
609 +static const yytype_int16 yydefgoto[] =
611 -1, 49, 50, 51, 52, 56, 53, 203, 297, 298,
612 54, 206, 208, 69, 55, 65, 71, 72, 106, 101,
613 @@ -657,7 +797,7 @@ static const short int yydefgoto[] =
614 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
616 #define YYPACT_NINF -239
617 -static const short int yypact[] =
618 +static const yytype_int16 yypact[] =
620 370, -239, 139, -24, -24, 139, 120, 70, 15, 15,
621 -19, 470, -12, 292, 441, 23, 23, 139, -45, 23,
622 @@ -694,7 +834,7 @@ static const short int yypact[] =
625 /* YYPGOTO[NTERM-NUM]. */
626 -static const short int yypgoto[] =
627 +static const yytype_int16 yypgoto[] =
629 -239, -239, -239, 214, 107, -239, -239, 116, -239, -239,
630 114, -239, -239, -2, -239, 21, 33, 238, 26, -239,
631 @@ -704,10 +844,9 @@ static const short int yypgoto[] =
633 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
634 positive, shift that token. If negative, reduce the rule which
635 - number is the opposite. If zero, do what YYDEFACT says.
636 - If YYTABLE_NINF, syntax error. */
637 + number is the opposite. If YYTABLE_NINF, syntax error. */
638 #define YYTABLE_NINF -3
639 -static const short int yytable[] =
640 +static const yytype_int16 yytable[] =
642 62, 107, 107, 62, 242, 107, 85, 205, 277, 232,
643 197, 187, 102, 291, 99, 109, 103, 99, 109, 109,
644 @@ -771,7 +910,13 @@ static const short int yytable[] =
645 169, 170, 171, 165, 166, 167, 168, 169, 170, 171
648 -static const short int yycheck[] =
649 +#define yypact_value_is_default(yystate) \
650 + ((yystate) == (-239))
652 +#define yytable_value_is_error(yytable_value) \
655 +static const yytype_int16 yycheck[] =
657 2, 15, 16, 5, 190, 19, 7, 3, 246, 56,
658 60, 96, 13, 3, 11, 17, 13, 14, 20, 21,
659 @@ -837,7 +982,7 @@ static const short int yycheck[] =
661 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
662 symbol of state STATE-NUM. */
663 -static const unsigned char yystos[] =
664 +static const yytype_uint8 yystos[] =
666 0, 1, 11, 12, 13, 14, 15, 16, 17, 18,
667 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
668 @@ -873,22 +1018,6 @@ static const unsigned char yystos[] =
669 113, 58, 59, 56, 56, 113
672 -#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
673 -# define YYSIZE_T __SIZE_TYPE__
675 -#if ! defined (YYSIZE_T) && defined (size_t)
676 -# define YYSIZE_T size_t
678 -#if ! defined (YYSIZE_T)
679 -# if defined (__STDC__) || defined (__cplusplus)
680 -# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
681 -# define YYSIZE_T size_t
684 -#if ! defined (YYSIZE_T)
685 -# define YYSIZE_T unsigned int
688 #define yyerrok (yyerrstatus = 0)
689 #define yyclearin (yychar = YYEMPTY)
691 @@ -901,9 +1030,18 @@ static const unsigned char yystos[] =
693 /* Like YYERROR except do call yyerror. This remains here temporarily
694 to ease the transition to the new meaning of YYERROR, for GCC.
695 - Once GCC version 2 has supplanted version 1, this can go. */
696 + Once GCC version 2 has supplanted version 1, this can go. However,
697 + YYFAIL appears to be in use. Nevertheless, it is formally deprecated
698 + in Bison 2.4.2's NEWS entry, where a plan to phase it out is
701 #define YYFAIL goto yyerrlab
703 + /* This is here to suppress warnings from the GCC cpp's
704 + -Wunused-macros. Normally we don't worry about that warning, but
705 + some users do, and we want to make it easy for users to remove
706 + YYFAIL uses, which will produce warnings from Bison 2.5. */
709 #define YYRECOVERING() (!!yyerrstatus)
711 @@ -913,31 +1051,54 @@ do \
715 - yytoken = YYTRANSLATE (yychar); \
722 - yyerror ("syntax error: cannot back up");\
724 + yyerror (YY_("syntax error: cannot back up")); \
732 #define YYERRCODE 256
734 -/* YYLLOC_DEFAULT -- Compute the default location (before the actions
737 +/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
738 + If N is 0, then set CURRENT to the empty location which ends
739 + the previous symbol: RHS[0] (always defined). */
741 +#define YYRHSLOC(Rhs, K) ((Rhs)[K])
742 #ifndef YYLLOC_DEFAULT
743 -# define YYLLOC_DEFAULT(Current, Rhs, N) \
744 - ((Current).first_line = (Rhs)[1].first_line, \
745 - (Current).first_column = (Rhs)[1].first_column, \
746 - (Current).last_line = (Rhs)[N].last_line, \
747 - (Current).last_column = (Rhs)[N].last_column)
748 +# define YYLLOC_DEFAULT(Current, Rhs, N) \
752 + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
753 + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
754 + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
755 + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
759 + (Current).first_line = (Current).last_line = \
760 + YYRHSLOC (Rhs, 0).last_line; \
761 + (Current).first_column = (Current).last_column = \
762 + YYRHSLOC (Rhs, 0).last_column; \
768 +/* This macro is provided for backward compatibility. */
770 +#ifndef YY_LOCATION_PRINT
771 +# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
775 /* YYLEX -- calling `yylex' with the right arguments. */
778 @@ -958,43 +1119,100 @@ while (0)
785 -# define YYDSYMPRINT(Args) \
790 +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
794 + YYFPRINTF (stderr, "%s ", Title); \
795 + yy_symbol_print (stderr, \
797 + YYFPRINTF (stderr, "\n"); \
801 -# define YYDSYMPRINTF(Title, Token, Value, Location) \
805 - YYFPRINTF (stderr, "%s ", Title); \
806 - yysymprint (stderr, \
808 - YYFPRINTF (stderr, "\n"); \
812 +/*--------------------------------.
813 +| Print this symbol on YYOUTPUT. |
814 +`--------------------------------*/
817 +#if (defined __STDC__ || defined __C99__FUNC__ \
818 + || defined __cplusplus || defined _MSC_VER)
820 +yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
823 +yy_symbol_value_print (yyoutput, yytype, yyvaluep)
826 + YYSTYPE const * const yyvaluep;
832 + if (yytype < YYNTOKENS)
833 + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
845 +/*--------------------------------.
846 +| Print this symbol on YYOUTPUT. |
847 +`--------------------------------*/
849 +#if (defined __STDC__ || defined __C99__FUNC__ \
850 + || defined __cplusplus || defined _MSC_VER)
852 +yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
855 +yy_symbol_print (yyoutput, yytype, yyvaluep)
858 + YYSTYPE const * const yyvaluep;
861 + if (yytype < YYNTOKENS)
862 + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
864 + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
866 + yy_symbol_value_print (yyoutput, yytype, yyvaluep);
867 + YYFPRINTF (yyoutput, ")");
870 /*------------------------------------------------------------------.
871 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
873 `------------------------------------------------------------------*/
875 -#if defined (__STDC__) || defined (__cplusplus)
876 +#if (defined __STDC__ || defined __C99__FUNC__ \
877 + || defined __cplusplus || defined _MSC_VER)
879 -yy_stack_print (short int *bottom, short int *top)
880 +yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
883 -yy_stack_print (bottom, top)
886 +yy_stack_print (yybottom, yytop)
887 + yytype_int16 *yybottom;
888 + yytype_int16 *yytop;
891 YYFPRINTF (stderr, "Stack now");
892 - for (/* Nothing. */; bottom <= top; ++bottom)
893 - YYFPRINTF (stderr, " %d", *bottom);
894 + for (; yybottom <= yytop; yybottom++)
896 + int yybot = *yybottom;
897 + YYFPRINTF (stderr, " %d", yybot);
899 YYFPRINTF (stderr, "\n");
902 @@ -1002,45 +1220,52 @@ yy_stack_print (bottom, top)
905 yy_stack_print ((Bottom), (Top)); \
910 /*------------------------------------------------.
911 | Report that the YYRULE is going to be reduced. |
912 `------------------------------------------------*/
914 -#if defined (__STDC__) || defined (__cplusplus)
915 +#if (defined __STDC__ || defined __C99__FUNC__ \
916 + || defined __cplusplus || defined _MSC_VER)
918 -yy_reduce_print (int yyrule)
919 +yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
922 -yy_reduce_print (yyrule)
923 +yy_reduce_print (yyvsp, yyrule)
928 + int yynrhs = yyr2[yyrule];
930 - unsigned int yylno = yyrline[yyrule];
931 - YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
932 - yyrule - 1, yylno);
933 - /* Print the symbols being reduced, and their result. */
934 - for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
935 - YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
936 - YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
937 + unsigned long int yylno = yyrline[yyrule];
938 + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
939 + yyrule - 1, yylno);
940 + /* The symbols being reduced. */
941 + for (yyi = 0; yyi < yynrhs; yyi++)
943 + YYFPRINTF (stderr, " $%d = ", yyi + 1);
944 + yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
945 + &(yyvsp[(yyi + 1) - (yynrhs)])
947 + YYFPRINTF (stderr, "\n");
951 # define YY_REDUCE_PRINT(Rule) \
954 - yy_reduce_print (Rule); \
956 + yy_reduce_print (yyvsp, Rule); \
959 /* Nonzero means print parse trace. It is left uninitialized so that
960 multiple parsers can coexist. */
963 # define YYDPRINTF(Args)
964 -# define YYDSYMPRINT(Args)
965 -# define YYDSYMPRINTF(Title, Token, Value, Location)
966 +# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
967 # define YY_STACK_PRINT(Bottom, Top)
968 # define YY_REDUCE_PRINT(Rule)
969 #endif /* !YYDEBUG */
970 @@ -1055,61 +1280,58 @@ int yydebug;
971 if the built-in stack extension method is used).
973 Do not make this value too large; the results are undefined if
974 - SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
975 + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
976 evaluated with infinite-precision integer arithmetic. */
978 -#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
983 # define YYMAXDEPTH 10000
991 -# if defined (__GLIBC__) && defined (_STRING_H)
992 +# if defined __GLIBC__ && defined _STRING_H
993 # define yystrlen strlen
995 /* Return the length of YYSTR. */
996 +#if (defined __STDC__ || defined __C99__FUNC__ \
997 + || defined __cplusplus || defined _MSC_VER)
999 -# if defined (__STDC__) || defined (__cplusplus)
1000 yystrlen (const char *yystr)
1005 - const char *yystr;
1007 + const char *yystr;
1010 - register const char *yys = yystr;
1012 - while (*yys++ != '\0')
1014 + for (yylen = 0; yystr[yylen]; yylen++)
1017 - return yys - yystr - 1;
1024 -# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
1025 +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1026 # define yystpcpy stpcpy
1028 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1030 +#if (defined __STDC__ || defined __C99__FUNC__ \
1031 + || defined __cplusplus || defined _MSC_VER)
1033 -# if defined (__STDC__) || defined (__cplusplus)
1034 yystpcpy (char *yydest, const char *yysrc)
1038 yystpcpy (yydest, yysrc)
1040 - const char *yysrc;
1043 + const char *yysrc;
1046 - register char *yyd = yydest;
1047 - register const char *yys = yysrc;
1048 + char *yyd = yydest;
1049 + const char *yys = yysrc;
1051 while ((*yyd++ = *yys++) != '\0')
1053 @@ -1119,84 +1341,232 @@ yystpcpy (yydest, yysrc)
1057 -#endif /* !YYERROR_VERBOSE */
1059 +/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1060 + quotes and backslashes, so that it's suitable for yyerror. The
1061 + heuristic is that double-quoting is unnecessary unless the string
1062 + contains an apostrophe, a comma, or backslash (other than
1063 + backslash-backslash). YYSTR is taken from yytname. If YYRES is
1064 + null, do not copy; instead, return the length of what the result
1065 + would have been. */
1067 +yytnamerr (char *yyres, const char *yystr)
1069 + if (*yystr == '"')
1072 + char const *yyp = yystr;
1079 + goto do_not_strip_quotes;
1082 + if (*++yyp != '\\')
1083 + goto do_not_strip_quotes;
1084 + /* Fall through. */
1087 + yyres[yyn] = *yyp;
1093 + yyres[yyn] = '\0';
1096 + do_not_strip_quotes: ;
1101 + return yystrlen (yystr);
1104 -/*--------------------------------.
1105 -| Print this symbol on YYOUTPUT. |
1106 -`--------------------------------*/
1107 + return yystpcpy (yyres, yystr) - yyres;
1111 -#if defined (__STDC__) || defined (__cplusplus)
1113 -yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
1116 -yysymprint (yyoutput, yytype, yyvaluep)
1119 - YYSTYPE *yyvaluep;
1121 +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1122 + about the unexpected token YYTOKEN for the state stack whose top is
1125 + Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
1126 + not large enough to hold the message. In that case, also set
1127 + *YYMSG_ALLOC to the required number of bytes. Return 2 if the
1128 + required number of bytes is too large to store. */
1130 +yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
1131 + yytype_int16 *yyssp, int yytoken)
1133 - /* Pacify ``unused variable'' warnings. */
1135 + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
1136 + YYSIZE_T yysize = yysize0;
1138 + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1139 + /* Internationalized format string. */
1140 + const char *yyformat = 0;
1141 + /* Arguments of yyformat. */
1142 + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1143 + /* Number of reported tokens (one for the "unexpected", one per
1147 + /* There are many possibilities here to consider:
1148 + - Assume YYFAIL is not used. It's too flawed to consider. See
1149 + <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
1150 + for details. YYERROR is fine as it does not invoke this
1152 + - If this state is a consistent state with a default action, then
1153 + the only way this function was invoked is if the default action
1154 + is an error action. In that case, don't check for expected
1155 + tokens because there are none.
1156 + - The only way there can be no lookahead present (in yychar) is if
1157 + this state is a consistent state with a default action. Thus,
1158 + detecting the absence of a lookahead is sufficient to determine
1159 + that there is no unexpected or expected token to report. In that
1160 + case, just report a simple "syntax error".
1161 + - Don't assume there isn't a lookahead just because this state is a
1162 + consistent state with a default action. There might have been a
1163 + previous inconsistent state, consistent state with a non-default
1164 + action, or user semantic action that manipulated yychar.
1165 + - Of course, the expected token list depends on states to have
1166 + correct lookahead information, and it depends on the parser not
1167 + to perform extra reductions after fetching a lookahead from the
1168 + scanner and before detecting a syntax error. Thus, state merging
1169 + (from LALR or IELR) and default reductions corrupt the expected
1170 + token list. However, the list is correct for canonical LR with
1171 + one exception: it will still contain any token that will not be
1172 + accepted due to an error action in a later state.
1174 + if (yytoken != YYEMPTY)
1176 + int yyn = yypact[*yyssp];
1177 + yyarg[yycount++] = yytname[yytoken];
1178 + if (!yypact_value_is_default (yyn))
1180 + /* Start YYX at -YYN if negative to avoid negative indexes in
1181 + YYCHECK. In other words, skip the first -YYN actions for
1182 + this state because they are default actions. */
1183 + int yyxbegin = yyn < 0 ? -yyn : 0;
1184 + /* Stay within bounds of both yycheck and yytname. */
1185 + int yychecklim = YYLAST - yyn + 1;
1186 + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1189 + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1190 + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1191 + && !yytable_value_is_error (yytable[yyx + yyn]))
1193 + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1199 + yyarg[yycount++] = yytname[yyx];
1200 + yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1201 + if (! (yysize <= yysize1
1202 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1209 - if (yytype < YYNTOKENS)
1211 - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1213 - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1217 +# define YYCASE_(N, S) \
1221 + YYCASE_(0, YY_("syntax error"));
1222 + YYCASE_(1, YY_("syntax error, unexpected %s"));
1223 + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1224 + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1225 + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1226 + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1230 - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1233 + yysize1 = yysize + yystrlen (yyformat);
1234 + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
1238 + if (*yymsg_alloc < yysize)
1242 + *yymsg_alloc = 2 * yysize;
1243 + if (! (yysize <= *yymsg_alloc
1244 + && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1245 + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1248 - YYFPRINTF (yyoutput, ")");
1250 + /* Avoid sprintf, as that infringes on the user's name space.
1251 + Don't have undefined behavior even if the translation
1252 + produced a string with the wrong number of "%s"s. */
1254 + char *yyp = *yymsg;
1256 + while ((*yyp = *yyformat) != '\0')
1257 + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1259 + yyp += yytnamerr (yyp, yyarg[yyi++]);
1270 +#endif /* YYERROR_VERBOSE */
1272 -#endif /* ! YYDEBUG */
1273 /*-----------------------------------------------.
1274 | Release the memory associated to this symbol. |
1275 `-----------------------------------------------*/
1277 -#if defined (__STDC__) || defined (__cplusplus)
1279 +#if (defined __STDC__ || defined __C99__FUNC__ \
1280 + || defined __cplusplus || defined _MSC_VER)
1282 -yydestruct (int yytype, YYSTYPE *yyvaluep)
1283 +yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1286 -yydestruct (yytype, yyvaluep)
1287 +yydestruct (yymsg, yytype, yyvaluep)
1288 + const char *yymsg;
1293 - /* Pacify ``unused variable'' warnings. */
1298 + yymsg = "Deleting";
1299 + YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1311 -/* Prevent warnings from -Wmissing-prototypes. */
1313 +/* Prevent warnings from -Wmissing-prototypes. */
1314 #ifdef YYPARSE_PARAM
1315 -# if defined (__STDC__) || defined (__cplusplus)
1316 +#if defined __STDC__ || defined __cplusplus
1317 int yyparse (void *YYPARSE_PARAM);
1323 #else /* ! YYPARSE_PARAM */
1324 -#if defined (__STDC__) || defined (__cplusplus)
1325 +#if defined __STDC__ || defined __cplusplus
1329 @@ -1204,7 +1574,6 @@ int yyparse ();
1330 #endif /* ! YYPARSE_PARAM */
1334 /* The lookahead symbol. */
1337 @@ -1215,20 +1584,23 @@ YYSTYPE yylval;
1346 #ifdef YYPARSE_PARAM
1347 -# if defined (__STDC__) || defined (__cplusplus)
1348 -int yyparse (void *YYPARSE_PARAM)
1350 -int yyparse (YYPARSE_PARAM)
1351 - void *YYPARSE_PARAM;
1353 +#if (defined __STDC__ || defined __C99__FUNC__ \
1354 + || defined __cplusplus || defined _MSC_VER)
1356 +yyparse (void *YYPARSE_PARAM)
1359 +yyparse (YYPARSE_PARAM)
1360 + void *YYPARSE_PARAM;
1362 #else /* ! YYPARSE_PARAM */
1363 -#if defined (__STDC__) || defined (__cplusplus)
1364 +#if (defined __STDC__ || defined __C99__FUNC__ \
1365 + || defined __cplusplus || defined _MSC_VER)
1369 @@ -1238,64 +1610,69 @@ yyparse ()
1374 - register int yystate;
1377 - /* Number of tokens to shift before error messages enabled. */
1379 - /* Lookahead token as an internal (translated) token number. */
1382 + /* Number of tokens to shift before error messages enabled. */
1385 - /* Three stacks and their tools:
1386 - `yyss': related to states,
1387 - `yyvs': related to semantic values,
1388 - `yyls': related to locations.
1389 + /* The stacks and their tools:
1390 + `yyss': related to states.
1391 + `yyvs': related to semantic values.
1393 - Refer to the stacks thru separate pointers, to allow yyoverflow
1394 - to reallocate them elsewhere. */
1395 + Refer to the stacks thru separate pointers, to allow yyoverflow
1396 + to reallocate them elsewhere. */
1398 - /* The state stack. */
1399 - short int yyssa[YYINITDEPTH];
1400 - short int *yyss = yyssa;
1401 - register short int *yyssp;
1402 + /* The state stack. */
1403 + yytype_int16 yyssa[YYINITDEPTH];
1404 + yytype_int16 *yyss;
1405 + yytype_int16 *yyssp;
1407 - /* The semantic value stack. */
1408 - YYSTYPE yyvsa[YYINITDEPTH];
1409 - YYSTYPE *yyvs = yyvsa;
1410 - register YYSTYPE *yyvsp;
1411 + /* The semantic value stack. */
1412 + YYSTYPE yyvsa[YYINITDEPTH];
1416 + YYSIZE_T yystacksize;
1419 -#define YYPOPSTACK (yyvsp--, yyssp--)
1421 - YYSIZE_T yystacksize = YYINITDEPTH;
1425 + /* Lookahead token as an internal (translated) token number. */
1427 /* The variables used to return semantic value and location from the
1431 +#if YYERROR_VERBOSE
1432 + /* Buffer for error messages, and its allocated size. */
1433 + char yymsgbuf[128];
1434 + char *yymsg = yymsgbuf;
1435 + YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1438 +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1440 - /* When reducing, the number of symbols on the RHS of the reduced
1443 + /* The number of symbols on the RHS of the reduced rule.
1444 + Keep to zero when no symbol should be popped. */
1450 + yystacksize = YYINITDEPTH;
1452 YYDPRINTF ((stderr, "Starting parse\n"));
1457 - yychar = YYEMPTY; /* Cause a token to be read. */
1458 + yychar = YYEMPTY; /* Cause a token to be read. */
1460 /* Initialize stack pointers.
1461 Waste one element of value and location stack
1462 so that they stay on the same level as the state stack.
1463 The wasted elements are never initialized. */
1471 /*------------------------------------------------------------.
1472 @@ -1303,8 +1680,7 @@ yyparse ()
1473 `------------------------------------------------------------*/
1475 /* In all cases, when you get here, the value and location stacks
1476 - have just been pushed. so pushing a state here evens the stacks.
1478 + have just been pushed. So pushing a state here evens the stacks. */
1482 @@ -1317,21 +1693,19 @@ yyparse ()
1486 - /* Give user a chance to reallocate the stack. Use copies of
1487 + /* Give user a chance to reallocate the stack. Use copies of
1488 these so that the &'s don't force the real ones into
1490 YYSTYPE *yyvs1 = yyvs;
1491 - short int *yyss1 = yyss;
1493 + yytype_int16 *yyss1 = yyss;
1495 /* Each stack pointer address is followed by the size of the
1496 data in use in that stack, in bytes. This used to be a
1497 conditional around just the two extra args, but that might
1498 be undefined if yyoverflow is a macro. */
1499 - yyoverflow ("parser stack overflow",
1500 + yyoverflow (YY_("memory exhausted"),
1501 &yyss1, yysize * sizeof (*yyssp),
1502 &yyvs1, yysize * sizeof (*yyvsp),
1507 @@ -1339,24 +1713,23 @@ yyparse ()
1509 #else /* no yyoverflow */
1510 # ifndef YYSTACK_RELOCATE
1511 - goto yyoverflowlab;
1512 + goto yyexhaustedlab;
1514 /* Extend the stack our own way. */
1515 if (YYMAXDEPTH <= yystacksize)
1516 - goto yyoverflowlab;
1517 + goto yyexhaustedlab;
1519 if (YYMAXDEPTH < yystacksize)
1520 yystacksize = YYMAXDEPTH;
1523 - short int *yyss1 = yyss;
1524 + yytype_int16 *yyss1 = yyss;
1525 union yyalloc *yyptr =
1526 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1528 - goto yyoverflowlab;
1529 - YYSTACK_RELOCATE (yyss);
1530 - YYSTACK_RELOCATE (yyvs);
1532 + goto yyexhaustedlab;
1533 + YYSTACK_RELOCATE (yyss_alloc, yyss);
1534 + YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1535 # undef YYSTACK_RELOCATE
1537 YYSTACK_FREE (yyss1);
1538 @@ -1367,7 +1740,6 @@ yyparse ()
1539 yyssp = yyss + yysize - 1;
1540 yyvsp = yyvs + yysize - 1;
1543 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1544 (unsigned long int) yystacksize));
1546 @@ -1377,6 +1749,9 @@ yyparse ()
1548 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1550 + if (yystate == YYFINAL)
1556 @@ -1384,14 +1759,12 @@ yyparse ()
1560 -/* Do appropriate processing given the current state. */
1561 -/* Read a lookahead token if we need one and don't already have one. */
1563 + /* Do appropriate processing given the current state. Read a
1564 + lookahead token if we need one and don't already have one. */
1566 /* First try to decide what to do without reference to lookahead token. */
1568 yyn = yypact[yystate];
1569 - if (yyn == YYPACT_NINF)
1570 + if (yypact_value_is_default (yyn))
1573 /* Not known => get a lookahead token if don't already have one. */
1574 @@ -1411,7 +1784,7 @@ yybackup:
1577 yytoken = YYTRANSLATE (yychar);
1578 - YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
1579 + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1582 /* If the proper action on seeing token YYTOKEN is to reduce or to
1583 @@ -1422,31 +1795,26 @@ yybackup:
1587 - if (yyn == 0 || yyn == YYTABLE_NINF)
1589 + if (yytable_value_is_error (yyn))
1595 - if (yyn == YYFINAL)
1598 - /* Shift the lookahead token. */
1599 - YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
1601 - /* Discard the token being shifted unless it is eof. */
1602 - if (yychar != YYEOF)
1605 - *++yyvsp = yylval;
1608 /* Count tokens shifted since error; after three, turn off error
1613 + /* Shift the lookahead token. */
1614 + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1616 + /* Discard the shifted token. */
1620 + *++yyvsp = yylval;
1625 @@ -1482,58 +1850,72 @@ yyreduce:
1630 +/* Line 1806 of yacc.c */
1631 #line 127 "parser.y"
1638 +/* Line 1806 of yacc.c */
1639 #line 136 "parser.y"
1641 if (abort_asap) {YYABORT;}
1643 - yyvsp[-2].sym->type = LABEL;
1644 - yyvsp[-2].sym->value = lc;
1645 + (yyvsp[(1) - (3)]).sym->type = LABEL;
1646 + (yyvsp[(1) - (3)]).sym->value = lc;
1648 - inclc(yyvsp[0].value);
1649 + inclc((yyvsp[(3) - (3)]).value);
1656 +/* Line 1806 of yacc.c */
1657 #line 145 "parser.y"
1658 - { inclc(yyvsp[0].value); bytecount = 0; }
1659 + { inclc((yyvsp[(1) - (1)]).value); bytecount = 0; }
1664 +/* Line 1806 of yacc.c */
1665 #line 148 "parser.y"
1667 - yyval.value = yyvsp[-1].value;
1668 + (yyval).value = (yyvsp[(1) - (2)]).value;
1669 if( dashl && pass2 )
1670 - dumplist(yyvsp[0].str,1);
1671 + dumplist((yyvsp[(2) - (2)]).str,1);
1677 +/* Line 1806 of yacc.c */
1678 #line 153 "parser.y"
1680 - yyval.value = yyvsp[-1].value;
1681 + (yyval).value = (yyvsp[(1) - (2)]).value;
1682 if( dashl && pass2 )
1683 - dumplist(yyvsp[0].str,1);
1684 + dumplist((yyvsp[(2) - (2)]).str,1);
1691 +/* Line 1806 of yacc.c */
1692 #line 159 "parser.y"
1695 + (yyval).value = 0;
1696 if( dashl && pass2 )
1697 - dumplist(yyvsp[0].str,0);
1698 + dumplist((yyvsp[(1) - (1)]).str,0);
1704 +/* Line 1806 of yacc.c */
1705 #line 164 "parser.y"
1708 @@ -1541,987 +1923,1249 @@ yyreduce:
1713 +/* Line 1806 of yacc.c */
1714 #line 167 "parser.y"
1717 + (yyval).value = 0;
1718 if( dashl && pass2 )
1719 - dumplist(yyvsp[-2].str,0);
1720 + dumplist((yyvsp[(1) - (3)]).str,0);
1726 +/* Line 1806 of yacc.c */
1727 #line 184 "parser.y"
1729 - lc = yyvsp[0].val.v;
1730 + lc = (yyvsp[(3) - (3)]).val.v;
1731 if( pass2 ) emitaddr(lc);
1734 + (yyval).value = 0;
1740 +/* Line 1806 of yacc.c */
1741 #line 190 "parser.y"
1742 - { yyval.value = yyvsp[0].value; }
1743 + { (yyval).value = (yyvsp[(3) - (3)]).value; }
1748 +/* Line 1806 of yacc.c */
1749 #line 191 "parser.y"
1750 - { yyval.value = yyvsp[0].value; }
1751 + { (yyval).value = (yyvsp[(3) - (3)]).value; }
1756 +/* Line 1806 of yacc.c */
1757 #line 192 "parser.y"
1758 - { yyval.value = yyvsp[0].val.v;
1759 + { (yyval).value = (yyvsp[(3) - (3)]).val.v;
1761 - emitaddr(lc+yyval.value); }
1762 + emitaddr(lc+(yyval).value); }
1767 +/* Line 1806 of yacc.c */
1768 #line 196 "parser.y"
1770 - if( yyvsp[0].val.d == 0 )
1771 + if( (yyvsp[(5) - (5)]).val.d == 0 )
1772 warn("Expression is undefined in pass 1");
1773 - yyvsp[-2].sym->type = LABEL;
1774 - yyvsp[-2].sym->value = yyvsp[0].val.v;
1776 + (yyvsp[(3) - (5)]).sym->type = LABEL;
1777 + (yyvsp[(3) - (5)]).sym->value = (yyvsp[(5) - (5)]).val.v;
1778 + (yyval).value = 0;
1784 +/* Line 1806 of yacc.c */
1785 #line 205 "parser.y"
1787 - yyvsp[-2].sym->type = LABEL;
1788 - yyvsp[-2].sym->value = yyvsp[0].value;
1790 + (yyvsp[(3) - (5)]).sym->type = LABEL;
1791 + (yyvsp[(3) - (5)]).sym->value = (yyvsp[(5) - (5)]).value;
1792 + (yyval).value = 0;
1798 +/* Line 1806 of yacc.c */
1799 #line 210 "parser.y"
1800 - { yyval.value = 0; }
1801 + { (yyval).value = 0; }
1806 +/* Line 1806 of yacc.c */
1807 #line 214 "parser.y"
1809 - if( yyvsp[0].val.d == 0 )
1810 + if( (yyvsp[(1) - (1)]).val.d == 0 )
1811 warn("Expression is undefined in pass 1");
1812 - if( !(isbit16(yyvsp[0].val.v)) )
1813 + if( !(isbit16((yyvsp[(1) - (1)]).val.v)) )
1814 warn("Value greater than 16-bits");
1815 - yyval.value = yyvsp[0].val.v;
1816 + (yyval).value = (yyvsp[(1) - (1)]).val.v;
1822 +/* Line 1806 of yacc.c */
1823 #line 224 "parser.y"
1825 - if( !isbit8(yyvsp[-1].value) )
1826 + if( !isbit8((yyvsp[(1) - (2)]).value) )
1827 warn("Bit address exceeds 8-bits");
1828 - if( isbmram(yyvsp[-1].value) )
1829 - yyval.value = (yyvsp[-1].value-0x20)*8+ yyvsp[0].value;
1830 - else if( isbmsfr(yyvsp[-1].value) )
1831 - yyval.value = yyvsp[-1].value + yyvsp[0].value;
1832 + if( isbmram((yyvsp[(1) - (2)]).value) )
1833 + (yyval).value = ((yyvsp[(1) - (2)]).value-0x20)*8+ (yyvsp[(2) - (2)]).value;
1834 + else if( isbmsfr((yyvsp[(1) - (2)]).value) )
1835 + (yyval).value = (yyvsp[(1) - (2)]).value + (yyvsp[(2) - (2)]).value;
1837 warn("Invalid bit addressable RAM location");
1843 +/* Line 1806 of yacc.c */
1844 #line 237 "parser.y"
1846 - if( yyvsp[0].sym->type == UNDEF )
1847 - warn("Symbol %s must be defined in pass 1",yyvsp[0].sym->name);
1848 - yyval.value = yyvsp[0].sym->value;
1849 + if( (yyvsp[(1) - (1)]).sym->type == UNDEF )
1850 + warn("Symbol %s must be defined in pass 1",(yyvsp[(1) - (1)]).sym->name);
1851 + (yyval).value = (yyvsp[(1) - (1)]).sym->value;
1857 +/* Line 1806 of yacc.c */
1858 #line 242 "parser.y"
1859 - { yyval.value = yyvsp[0].value; }
1860 + { (yyval).value = (yyvsp[(1) - (1)]).value; }
1865 +/* Line 1806 of yacc.c */
1866 #line 247 "parser.y"
1868 - if( yyvsp[0].sym->type != UNDEF && pass1)
1869 - warn("Attempt to redefine symbol: %s",yyvsp[0].sym->name);
1870 - yyval.sym = yyvsp[0].sym;
1871 + if( (yyvsp[(1) - (1)]).sym->type != UNDEF && pass1)
1872 + warn("Attempt to redefine symbol: %s",(yyvsp[(1) - (1)]).sym->name);
1873 + (yyval).sym = (yyvsp[(1) - (1)]).sym;
1879 +/* Line 1806 of yacc.c */
1880 #line 255 "parser.y"
1882 - if( pass2 ) genbyte(yyvsp[0].value);
1883 - yyval.value = yyvsp[-2].value + 1;
1884 + if( pass2 ) genbyte((yyvsp[(3) - (3)]).value);
1885 + (yyval).value = (yyvsp[(1) - (3)]).value + 1;
1891 +/* Line 1806 of yacc.c */
1892 #line 260 "parser.y"
1895 - yyval.value = yyvsp[-2].value + yyvsp[0].value;
1896 + (yyval).value = (yyvsp[(1) - (3)]).value + (yyvsp[(3) - (3)]).value;
1898 - yyval.value = yyvsp[-2].value + strlen(yyvsp[0].str);
1899 - genstr(yyvsp[0].str);
1900 + (yyval).value = (yyvsp[(1) - (3)]).value + strlen((yyvsp[(3) - (3)]).str);
1901 + genstr((yyvsp[(3) - (3)]).str);
1903 - free(yyvsp[0].str);
1904 + free((yyvsp[(3) - (3)]).str);
1911 +/* Line 1806 of yacc.c */
1912 #line 271 "parser.y"
1914 - if( pass2 ) genbyte(yyvsp[0].value);
1916 + if( pass2 ) genbyte((yyvsp[(1) - (1)]).value);
1917 + (yyval).value = 1;
1923 +/* Line 1806 of yacc.c */
1924 #line 276 "parser.y"
1927 - yyval.value = yyvsp[0].value;
1928 + (yyval).value = (yyvsp[(1) - (1)]).value;
1930 - yyval.value = strlen(yyvsp[0].str);
1931 - genstr(yyvsp[0].str);
1932 - free(yyvsp[0].str);
1933 + (yyval).value = strlen((yyvsp[(1) - (1)]).str);
1934 + genstr((yyvsp[(1) - (1)]).str);
1935 + free((yyvsp[(1) - (1)]).str);
1942 +/* Line 1806 of yacc.c */
1943 #line 288 "parser.y"
1945 - if( pass2 ) genword(yyvsp[0].value);
1946 - yyval.value = yyvsp[-2].value + 2;
1947 + if( pass2 ) genword((yyvsp[(3) - (3)]).value);
1948 + (yyval).value = (yyvsp[(1) - (3)]).value + 2;
1954 +/* Line 1806 of yacc.c */
1955 #line 293 "parser.y"
1957 - if( pass2 ) genword(yyvsp[0].value);
1959 + if( pass2 ) genword((yyvsp[(1) - (1)]).value);
1960 + (yyval).value = 2;
1966 +/* Line 1806 of yacc.c */
1967 #line 306 "parser.y"
1968 - { yyval.val.v = lc;
1969 - yyval.val.d = 1; }
1970 + { (yyval).val.v = lc;
1971 + (yyval).val.d = 1; }
1976 +/* Line 1806 of yacc.c */
1977 #line 309 "parser.y"
1978 - { yyval.val.v = yyvsp[-1].val.v;
1979 - yyval.val.d = yyvsp[-1].val.d; }
1980 + { (yyval).val.v = (yyvsp[(2) - (3)]).val.v;
1981 + (yyval).val.d = (yyvsp[(2) - (3)]).val.d; }
1986 +/* Line 1806 of yacc.c */
1987 #line 312 "parser.y"
1988 - { yyval.val.v = -yyvsp[0].val.v;
1989 - yyval.val.d = yyvsp[0].val.d; }
1990 + { (yyval).val.v = -(yyvsp[(2) - (2)]).val.v;
1991 + (yyval).val.d = (yyvsp[(2) - (2)]).val.d; }
1996 +/* Line 1806 of yacc.c */
1997 #line 315 "parser.y"
1998 - { yyval.val.v = yyvsp[-2].val.v | yyvsp[0].val.v;
1999 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2000 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v | (yyvsp[(3) - (3)]).val.v;
2001 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2006 +/* Line 1806 of yacc.c */
2007 #line 318 "parser.y"
2008 - { yyval.val.v = yyvsp[-2].val.v & yyvsp[0].val.v;
2009 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2010 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v & (yyvsp[(3) - (3)]).val.v;
2011 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2016 +/* Line 1806 of yacc.c */
2017 #line 321 "parser.y"
2018 - { yyval.val.v = yyvsp[-2].val.v * yyvsp[0].val.v;
2019 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2020 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v * (yyvsp[(3) - (3)]).val.v;
2021 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2026 +/* Line 1806 of yacc.c */
2027 #line 324 "parser.y"
2028 - { yyval.val.v = yyvsp[-2].val.v / yyvsp[0].val.v;
2029 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2030 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v / (yyvsp[(3) - (3)]).val.v;
2031 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2036 +/* Line 1806 of yacc.c */
2037 #line 327 "parser.y"
2038 - { yyval.val.v = yyvsp[-2].val.v % yyvsp[0].val.v;
2039 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2040 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v % (yyvsp[(3) - (3)]).val.v;
2041 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2046 +/* Line 1806 of yacc.c */
2047 #line 330 "parser.y"
2048 - { yyval.val.v = yyvsp[-2].val.v - yyvsp[0].val.v;
2049 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2050 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v - (yyvsp[(3) - (3)]).val.v;
2051 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2056 +/* Line 1806 of yacc.c */
2057 #line 333 "parser.y"
2058 - { yyval.val.v = yyvsp[-2].val.v + yyvsp[0].val.v;
2059 - yyval.val.d = yyvsp[-2].val.d && yyvsp[0].val.d; }
2060 + { (yyval).val.v = (yyvsp[(1) - (3)]).val.v + (yyvsp[(3) - (3)]).val.v;
2061 + (yyval).val.d = (yyvsp[(1) - (3)]).val.d && (yyvsp[(3) - (3)]).val.d; }
2066 +/* Line 1806 of yacc.c */
2067 #line 336 "parser.y"
2068 - { yyval.val.v = yyvsp[-3].val.v >> yyvsp[0].val.v;
2069 - yyval.val.d = yyvsp[-3].val.d && yyvsp[0].val.d; }
2070 + { (yyval).val.v = (yyvsp[(1) - (4)]).val.v >> (yyvsp[(4) - (4)]).val.v;
2071 + (yyval).val.d = (yyvsp[(1) - (4)]).val.d && (yyvsp[(4) - (4)]).val.d; }
2076 +/* Line 1806 of yacc.c */
2077 #line 339 "parser.y"
2078 - { yyval.val.v = yyvsp[-3].val.v << yyvsp[0].val.v;
2079 - yyval.val.d = yyvsp[-3].val.d && yyvsp[0].val.d; }
2080 + { (yyval).val.v = (yyvsp[(1) - (4)]).val.v << (yyvsp[(4) - (4)]).val.v;
2081 + (yyval).val.d = (yyvsp[(1) - (4)]).val.d && (yyvsp[(4) - (4)]).val.d; }
2086 +/* Line 1806 of yacc.c */
2087 #line 342 "parser.y"
2090 - yyval.val.v = yyvsp[0].sym->value;
2091 - yyval.val.d = (yyvsp[0].sym->type != UNDEF);
2092 + (yyval).val.v = (yyvsp[(1) - (1)]).sym->value;
2093 + (yyval).val.d = ((yyvsp[(1) - (1)]).sym->type != UNDEF);
2096 - if( yyvsp[0].sym->type == UNDEF )
2097 - warn("Undefined symbol %s",yyvsp[0].sym->name);
2098 - yyval.val.v = yyvsp[0].sym->value;
2100 + if( (yyvsp[(1) - (1)]).sym->type == UNDEF )
2101 + warn("Undefined symbol %s",(yyvsp[(1) - (1)]).sym->name);
2102 + (yyval).val.v = (yyvsp[(1) - (1)]).sym->value;
2103 + (yyval).val.d = 1;
2110 +/* Line 1806 of yacc.c */
2111 #line 354 "parser.y"
2112 - { yyval.val.v = yyvsp[0].val.v; yyval.val.d=1; }
2113 + { (yyval).val.v = (yyvsp[(1) - (1)]).val.v; (yyval).val.d=1; }
2118 +/* Line 1806 of yacc.c */
2119 #line 367 "parser.y"
2120 - { yyval.value = makeop(yyvsp[0].op,NULL,0); }
2121 + { (yyval).value = makeop((yyvsp[(1) - (1)]).op,NULL,0); }
2126 +/* Line 1806 of yacc.c */
2127 #line 369 "parser.y"
2128 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2129 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2134 +/* Line 1806 of yacc.c */
2135 #line 371 "parser.y"
2136 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2137 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2142 +/* Line 1806 of yacc.c */
2143 #line 373 "parser.y"
2144 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2145 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2150 +/* Line 1806 of yacc.c */
2151 #line 375 "parser.y"
2152 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2153 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2158 +/* Line 1806 of yacc.c */
2159 #line 377 "parser.y"
2160 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2161 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2166 +/* Line 1806 of yacc.c */
2167 #line 379 "parser.y"
2168 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2169 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2174 +/* Line 1806 of yacc.c */
2175 #line 381 "parser.y"
2176 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,4); }
2177 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,4); }
2182 +/* Line 1806 of yacc.c */
2183 #line 383 "parser.y"
2184 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2185 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2190 +/* Line 1806 of yacc.c */
2191 #line 385 "parser.y"
2192 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,4); }
2193 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,4); }
2198 +/* Line 1806 of yacc.c */
2199 #line 387 "parser.y"
2200 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,6); }
2201 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,6); }
2206 +/* Line 1806 of yacc.c */
2207 #line 389 "parser.y"
2208 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2209 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2214 +/* Line 1806 of yacc.c */
2215 #line 391 "parser.y"
2216 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,4); }
2217 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,4); }
2222 +/* Line 1806 of yacc.c */
2223 #line 393 "parser.y"
2224 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,6); }
2225 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,6); }
2230 +/* Line 1806 of yacc.c */
2231 #line 395 "parser.y"
2232 - { if( get_md(yyvsp[0].mode) == 3 )
2233 + { if( get_md((yyvsp[(2) - (2)]).mode) == 3 )
2234 warn("Immediate mode is illegal");
2235 - yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0);
2236 + (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0);
2242 +/* Line 1806 of yacc.c */
2243 #line 400 "parser.y"
2244 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2245 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2250 +/* Line 1806 of yacc.c */
2251 #line 402 "parser.y"
2252 - { yyval.value = makeop(yyvsp[-1].op,NULL,4); }
2253 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,4); }
2258 +/* Line 1806 of yacc.c */
2259 #line 404 "parser.y"
2260 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2261 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2266 +/* Line 1806 of yacc.c */
2267 #line 406 "parser.y"
2268 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2269 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2274 +/* Line 1806 of yacc.c */
2275 #line 408 "parser.y"
2276 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2277 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2282 +/* Line 1806 of yacc.c */
2283 #line 410 "parser.y"
2284 - { yyval.value = makeop(yyvsp[-4].op,NULL,0); }
2285 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,0); }
2290 +/* Line 1806 of yacc.c */
2291 #line 412 "parser.y"
2292 - { yyval.value = makeop(yyvsp[-4].op,NULL,0); }
2293 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,0); }
2298 +/* Line 1806 of yacc.c */
2299 #line 414 "parser.y"
2300 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2301 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2306 +/* Line 1806 of yacc.c */
2307 #line 416 "parser.y"
2308 - { yyval.value = makeop(yyvsp[0].op,NULL,0); }
2309 + { (yyval).value = makeop((yyvsp[(1) - (1)]).op,NULL,0); }
2314 +/* Line 1806 of yacc.c */
2315 #line 418 "parser.y"
2316 - { yyval.value = makeop(yyvsp[0].op,NULL,0); }
2317 + { (yyval).value = makeop((yyvsp[(1) - (1)]).op,NULL,0); }
2322 +/* Line 1806 of yacc.c */
2323 #line 420 "parser.y"
2324 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2325 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2330 +/* Line 1806 of yacc.c */
2331 #line 422 "parser.y"
2332 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2333 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2338 +/* Line 1806 of yacc.c */
2339 #line 424 "parser.y"
2340 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2341 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2346 +/* Line 1806 of yacc.c */
2347 #line 426 "parser.y"
2348 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2349 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2354 +/* Line 1806 of yacc.c */
2355 #line 428 "parser.y"
2356 - { yyval.value = makeop(yyvsp[-1].op,NULL,0); }
2357 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,NULL,0); }
2362 +/* Line 1806 of yacc.c */
2363 #line 430 "parser.y"
2364 - { if( get_md(yyvsp[0].mode) != 2 )
2365 + { if( get_md((yyvsp[(2) - (2)]).mode) != 2 )
2366 warn("Invalid addressing mode");
2367 - yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,-2); }
2368 + (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,-2); }
2373 +/* Line 1806 of yacc.c */
2374 #line 434 "parser.y"
2375 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2376 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2381 +/* Line 1806 of yacc.c */
2382 #line 436 "parser.y"
2383 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2384 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2389 +/* Line 1806 of yacc.c */
2390 #line 438 "parser.y"
2391 - { if( get_md(yyvsp[0].mode) == 0 )
2392 + { if( get_md((yyvsp[(2) - (2)]).mode) == 0 )
2393 warn("Invalid addressing mode");
2394 - yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,-1); }
2395 + (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,-1); }
2400 +/* Line 1806 of yacc.c */
2401 #line 442 "parser.y"
2407 - set_b1(tmp,yyvsp[0].value);
2408 - yyval.value = makeop(yyvsp[-1].op,&tmp,0);
2409 + set_b1(tmp,(yyvsp[(2) - (2)]).value);
2410 + (yyval).value = makeop((yyvsp[(1) - (2)]).op,&tmp,0);
2416 +/* Line 1806 of yacc.c */
2417 #line 451 "parser.y"
2423 - set_b1(tmp,yyvsp[0].value);
2424 - yyval.value = makeop(yyvsp[-1].op,&tmp,0);
2425 + set_b1(tmp,(yyvsp[(2) - (2)]).value);
2426 + (yyval).value = makeop((yyvsp[(1) - (2)]).op,&tmp,0);
2432 +/* Line 1806 of yacc.c */
2433 #line 460 "parser.y"
2434 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2435 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2440 +/* Line 1806 of yacc.c */
2441 #line 462 "parser.y"
2442 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2443 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2448 +/* Line 1806 of yacc.c */
2449 #line 464 "parser.y"
2450 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2451 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2456 +/* Line 1806 of yacc.c */
2457 #line 466 "parser.y"
2458 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2459 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2464 +/* Line 1806 of yacc.c */
2465 #line 468 "parser.y"
2466 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2467 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2472 +/* Line 1806 of yacc.c */
2473 #line 470 "parser.y"
2474 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2475 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2480 +/* Line 1806 of yacc.c */
2481 #line 472 "parser.y"
2482 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2483 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2488 +/* Line 1806 of yacc.c */
2489 #line 474 "parser.y"
2490 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2491 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2496 +/* Line 1806 of yacc.c */
2497 #line 476 "parser.y"
2498 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2499 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2504 +/* Line 1806 of yacc.c */
2505 #line 478 "parser.y"
2506 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2507 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2512 +/* Line 1806 of yacc.c */
2513 #line 480 "parser.y"
2514 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2515 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2520 +/* Line 1806 of yacc.c */
2521 #line 482 "parser.y"
2522 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2523 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2528 +/* Line 1806 of yacc.c */
2529 #line 484 "parser.y"
2530 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,0); }
2531 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,0); }
2536 +/* Line 1806 of yacc.c */
2537 #line 486 "parser.y"
2538 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,4); }
2539 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,4); }
2544 +/* Line 1806 of yacc.c */
2545 #line 488 "parser.y"
2546 - { yyval.value = makeop(yyvsp[-1].op,&yyvsp[0].mode,6); }
2547 + { (yyval).value = makeop((yyvsp[(1) - (2)]).op,&(yyvsp[(2) - (2)]).mode,6); }
2552 +/* Line 1806 of yacc.c */
2553 #line 492 "parser.y"
2554 - { yyval.value = makeop(yyvsp[-6].op,NULL,0); }
2555 + { (yyval).value = makeop((yyvsp[(1) - (7)]).op,NULL,0); }
2560 +/* Line 1806 of yacc.c */
2561 #line 494 "parser.y"
2562 - { yyval.value = makeop(yyvsp[-6].op,NULL,0); }
2563 + { (yyval).value = makeop((yyvsp[(1) - (7)]).op,NULL,0); }
2568 +/* Line 1806 of yacc.c */
2569 #line 496 "parser.y"
2570 - { yyval.value = makeop(yyvsp[-6].op,NULL,1); }
2571 + { (yyval).value = makeop((yyvsp[(1) - (7)]).op,NULL,1); }
2576 +/* Line 1806 of yacc.c */
2577 #line 498 "parser.y"
2578 - { yyval.value = makeop(yyvsp[-6].op,NULL,1); }
2579 + { (yyval).value = makeop((yyvsp[(1) - (7)]).op,NULL,1); }
2584 +/* Line 1806 of yacc.c */
2585 #line 501 "parser.y"
2586 - { yyval.value = makeop(yyvsp[-4].op,NULL,yyvsp[0].value); }
2587 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,(yyvsp[(5) - (5)]).value); }
2592 +/* Line 1806 of yacc.c */
2593 #line 503 "parser.y"
2594 - { yyval.value = makeop(yyvsp[-4].op,NULL,2); }
2595 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,2); }
2600 +/* Line 1806 of yacc.c */
2601 #line 505 "parser.y"
2602 - { yyval.value = makeop(yyvsp[-4].op,NULL,yyvsp[-2].value+3); }
2603 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,(yyvsp[(3) - (5)]).value+3); }
2608 +/* Line 1806 of yacc.c */
2609 #line 507 "parser.y"
2610 - { yyval.value = makeop(yyvsp[-4].op,NULL,5); }
2611 + { (yyval).value = makeop((yyvsp[(1) - (5)]).op,NULL,5); }
2616 +/* Line 1806 of yacc.c */
2617 #line 519 "parser.y"
2619 - set_md(yyval.mode,0);
2620 - set_ov(yyval.mode, yyvsp[0].value);
2621 - set_sz(yyval.mode, 0);
2622 + set_md((yyval).mode,0);
2623 + set_ov((yyval).mode, (yyvsp[(3) - (3)]).value);
2624 + set_sz((yyval).mode, 0);
2630 +/* Line 1806 of yacc.c */
2631 #line 525 "parser.y"
2633 - set_md(yyval.mode,1);
2634 - set_ov(yyval.mode,0);
2635 - set_sz(yyval.mode,1);
2636 - set_b1(yyval.mode,yyvsp[0].value);
2637 + set_md((yyval).mode,1);
2638 + set_ov((yyval).mode,0);
2639 + set_sz((yyval).mode,1);
2640 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2646 +/* Line 1806 of yacc.c */
2647 #line 532 "parser.y"
2649 - set_md(yyval.mode,2);
2650 - set_ov(yyval.mode,yyvsp[0].value);
2651 - set_sz(yyval.mode,0);
2652 + set_md((yyval).mode,2);
2653 + set_ov((yyval).mode,(yyvsp[(4) - (4)]).value);
2654 + set_sz((yyval).mode,0);
2660 +/* Line 1806 of yacc.c */
2661 #line 538 "parser.y"
2663 - set_md(yyval.mode,3);
2664 - set_ov(yyval.mode,0);
2665 - set_sz(yyval.mode,1);
2666 - set_b1(yyval.mode,yyvsp[0].value);
2667 + set_md((yyval).mode,3);
2668 + set_ov((yyval).mode,0);
2669 + set_sz((yyval).mode,1);
2670 + set_b1((yyval).mode,(yyvsp[(4) - (4)]).value);
2676 +/* Line 1806 of yacc.c */
2677 #line 547 "parser.y"
2679 - set_md(yyval.mode,0);
2680 - set_ov(yyval.mode,0);
2681 - set_sz(yyval.mode,1);
2682 - set_b1(yyval.mode,yyvsp[-2].value);
2683 + set_md((yyval).mode,0);
2684 + set_ov((yyval).mode,0);
2685 + set_sz((yyval).mode,1);
2686 + set_b1((yyval).mode,(yyvsp[(1) - (3)]).value);
2692 +/* Line 1806 of yacc.c */
2693 #line 554 "parser.y"
2695 - set_md(yyval.mode,1);
2696 - set_ov(yyval.mode,0);
2697 - set_sz(yyval.mode,2);
2698 - set_b1(yyval.mode,yyvsp[-3].value);
2699 - set_b2(yyval.mode,yyvsp[0].value);
2700 + set_md((yyval).mode,1);
2701 + set_ov((yyval).mode,0);
2702 + set_sz((yyval).mode,2);
2703 + set_b1((yyval).mode,(yyvsp[(1) - (4)]).value);
2704 + set_b2((yyval).mode,(yyvsp[(4) - (4)]).value);
2710 +/* Line 1806 of yacc.c */
2711 #line 564 "parser.y"
2713 - set_md(yyval.mode,0);
2714 - set_ov(yyval.mode,0);
2715 - set_sz(yyval.mode,1);
2716 - set_b1(yyval.mode,yyvsp[0].value);
2717 + set_md((yyval).mode,0);
2718 + set_ov((yyval).mode,0);
2719 + set_sz((yyval).mode,1);
2720 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2726 +/* Line 1806 of yacc.c */
2727 #line 571 "parser.y"
2729 - set_md(yyval.mode,1);
2730 - set_ov(yyval.mode,0);
2731 - set_sz(yyval.mode,1);
2732 - set_b1(yyval.mode,yyvsp[0].value);
2733 + set_md((yyval).mode,1);
2734 + set_ov((yyval).mode,0);
2735 + set_sz((yyval).mode,1);
2736 + set_b1((yyval).mode,(yyvsp[(4) - (4)]).value);
2742 +/* Line 1806 of yacc.c */
2743 #line 578 "parser.y"
2745 - set_md(yyval.mode,1);
2746 - set_ov(yyval.mode,0);
2747 - set_sz(yyval.mode,1);
2748 - set_b1(yyval.mode,yyvsp[0].value);
2749 + set_md((yyval).mode,1);
2750 + set_ov((yyval).mode,0);
2751 + set_sz((yyval).mode,1);
2752 + set_b1((yyval).mode,(yyvsp[(4) - (4)]).value);
2758 +/* Line 1806 of yacc.c */
2759 #line 587 "parser.y"
2761 - set_md(yyval.mode,0);
2762 - set_ov(yyval.mode,0);
2763 - set_sz(yyval.mode,2);
2764 - set_b1(yyval.mode,yyvsp[-2].value);
2765 - set_b2(yyval.mode,yyvsp[0].value);
2766 + set_md((yyval).mode,0);
2767 + set_ov((yyval).mode,0);
2768 + set_sz((yyval).mode,2);
2769 + set_b1((yyval).mode,(yyvsp[(1) - (3)]).value);
2770 + set_b2((yyval).mode,(yyvsp[(3) - (3)]).value);
2776 +/* Line 1806 of yacc.c */
2777 #line 597 "parser.y"
2779 - set_md(yyval.mode,0);
2780 - set_ov(yyval.mode,yyvsp[-2].value);
2781 - set_sz(yyval.mode,1);
2782 - set_b1(yyval.mode,yyvsp[0].value);
2783 + set_md((yyval).mode,0);
2784 + set_ov((yyval).mode,(yyvsp[(1) - (3)]).value);
2785 + set_sz((yyval).mode,1);
2786 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2792 +/* Line 1806 of yacc.c */
2793 #line 604 "parser.y"
2795 - set_md(yyval.mode,1);
2796 - set_ov(yyval.mode,0);
2797 - set_sz(yyval.mode,2);
2798 - set_b1(yyval.mode,yyvsp[-2].value);
2799 - set_b2(yyval.mode,yyvsp[0].value);
2800 + set_md((yyval).mode,1);
2801 + set_ov((yyval).mode,0);
2802 + set_sz((yyval).mode,2);
2803 + set_b1((yyval).mode,(yyvsp[(1) - (3)]).value);
2804 + set_b2((yyval).mode,(yyvsp[(3) - (3)]).value);
2810 +/* Line 1806 of yacc.c */
2811 #line 614 "parser.y"
2813 - set_md(yyval.mode,0);
2814 - set_ov(yyval.mode,yyvsp[-2].value);
2815 - set_sz(yyval.mode,0);
2816 + set_md((yyval).mode,0);
2817 + set_ov((yyval).mode,(yyvsp[(1) - (3)]).value);
2818 + set_sz((yyval).mode,0);
2824 +/* Line 1806 of yacc.c */
2825 #line 620 "parser.y"
2827 - set_md(yyval.mode,1);
2828 - set_ov(yyval.mode,yyvsp[-2].value);
2829 - set_sz(yyval.mode,1);
2830 - set_b1(yyval.mode,yyvsp[0].value);
2831 + set_md((yyval).mode,1);
2832 + set_ov((yyval).mode,(yyvsp[(1) - (3)]).value);
2833 + set_sz((yyval).mode,1);
2834 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2840 +/* Line 1806 of yacc.c */
2841 #line 627 "parser.y"
2843 - set_md(yyval.mode,2);
2844 - set_ov(yyval.mode,yyvsp[-3].value);
2845 - set_sz(yyval.mode,1);
2846 - set_b1(yyval.mode,yyvsp[0].value);
2847 + set_md((yyval).mode,2);
2848 + set_ov((yyval).mode,(yyvsp[(1) - (4)]).value);
2849 + set_sz((yyval).mode,1);
2850 + set_b1((yyval).mode,(yyvsp[(4) - (4)]).value);
2856 +/* Line 1806 of yacc.c */
2857 #line 634 "parser.y"
2859 - set_md(yyval.mode,3);
2860 - set_ov(yyval.mode,yyvsp[0].value);
2861 - set_sz(yyval.mode,1);
2862 - set_b1(yyval.mode,yyvsp[-2].value);
2863 + set_md((yyval).mode,3);
2864 + set_ov((yyval).mode,(yyvsp[(3) - (3)]).value);
2865 + set_sz((yyval).mode,1);
2866 + set_b1((yyval).mode,(yyvsp[(1) - (3)]).value);
2872 +/* Line 1806 of yacc.c */
2873 #line 641 "parser.y"
2875 - set_md(yyval.mode,4);
2876 - set_ov(yyval.mode,0);
2877 - set_sz(yyval.mode,2);
2878 - set_b1(yyval.mode,yyvsp[0].value);
2879 - set_b2(yyval.mode,yyvsp[-2].value);
2880 + set_md((yyval).mode,4);
2881 + set_ov((yyval).mode,0);
2882 + set_sz((yyval).mode,2);
2883 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2884 + set_b2((yyval).mode,(yyvsp[(1) - (3)]).value);
2890 +/* Line 1806 of yacc.c */
2891 #line 649 "parser.y"
2893 - set_md(yyval.mode,5);
2894 - set_ov(yyval.mode,yyvsp[0].value);
2895 - set_sz(yyval.mode,1);
2896 - set_b1(yyval.mode,yyvsp[-3].value);
2897 + set_md((yyval).mode,5);
2898 + set_ov((yyval).mode,(yyvsp[(4) - (4)]).value);
2899 + set_sz((yyval).mode,1);
2900 + set_b1((yyval).mode,(yyvsp[(1) - (4)]).value);
2906 +/* Line 1806 of yacc.c */
2907 #line 656 "parser.y"
2909 - set_md(yyval.mode,6);
2910 - set_ov(yyval.mode,yyvsp[-2].value);
2911 - set_sz(yyval.mode,0);
2912 + set_md((yyval).mode,6);
2913 + set_ov((yyval).mode,(yyvsp[(2) - (4)]).value);
2914 + set_sz((yyval).mode,0);
2920 +/* Line 1806 of yacc.c */
2921 #line 662 "parser.y"
2923 - set_md(yyval.mode,7);
2924 - set_ov(yyval.mode,yyvsp[-2].value);
2925 - set_sz(yyval.mode,1);
2926 - set_b1(yyval.mode,yyvsp[0].value);
2927 + set_md((yyval).mode,7);
2928 + set_ov((yyval).mode,(yyvsp[(2) - (4)]).value);
2929 + set_sz((yyval).mode,1);
2930 + set_b1((yyval).mode,(yyvsp[(4) - (4)]).value);
2936 +/* Line 1806 of yacc.c */
2937 #line 669 "parser.y"
2939 - set_md(yyval.mode,8);
2940 - set_ov(yyval.mode,yyvsp[-3].value);
2941 - set_sz(yyval.mode,1);
2942 - set_b1(yyval.mode,yyvsp[0].value);
2943 + set_md((yyval).mode,8);
2944 + set_ov((yyval).mode,(yyvsp[(2) - (5)]).value);
2945 + set_sz((yyval).mode,1);
2946 + set_b1((yyval).mode,(yyvsp[(5) - (5)]).value);
2952 +/* Line 1806 of yacc.c */
2953 #line 676 "parser.y"
2955 - set_md(yyval.mode,9);
2956 - set_ov(yyval.mode,0);
2957 - set_sz(yyval.mode,2);
2958 - set_b1(yyval.mode, (yyvsp[0].value & 0xff00) >> 8 );
2959 - set_b2(yyval.mode, (yyvsp[0].value & 0x00ff) );
2960 + set_md((yyval).mode,9);
2961 + set_ov((yyval).mode,0);
2962 + set_sz((yyval).mode,2);
2963 + set_b1((yyval).mode, ((yyvsp[(4) - (4)]).value & 0xff00) >> 8 );
2964 + set_b2((yyval).mode, ((yyvsp[(4) - (4)]).value & 0x00ff) );
2970 +/* Line 1806 of yacc.c */
2971 #line 684 "parser.y"
2973 - set_md(yyval.mode,10);
2974 - set_ov(yyval.mode,0);
2975 - set_sz(yyval.mode,1);
2976 - set_b1(yyval.mode,yyvsp[0].value);
2977 + set_md((yyval).mode,10);
2978 + set_ov((yyval).mode,0);
2979 + set_sz((yyval).mode,1);
2980 + set_b1((yyval).mode,(yyvsp[(3) - (3)]).value);
2986 +/* Line 1806 of yacc.c */
2987 #line 700 "parser.y"
2989 - set_md(yyval.mode,11);
2990 - set_ov(yyval.mode,0);
2991 - set_sz(yyval.mode,1);
2992 - set_b1(yyval.mode,yyvsp[-2].value);
2993 + set_md((yyval).mode,11);
2994 + set_ov((yyval).mode,0);
2995 + set_sz((yyval).mode,1);
2996 + set_b1((yyval).mode,(yyvsp[(1) - (3)]).value);
3002 +/* Line 1806 of yacc.c */
3003 #line 707 "parser.y"
3006 - if( !isbit8(yyvsp[-3].value) )
3007 + if( !isbit8((yyvsp[(1) - (4)]).value) )
3008 warn("Bit address exceeds 8-bits");
3009 - if( isbmram(yyvsp[-3].value) )
3010 - set_b1(yyval.mode, (yyvsp[-3].value-0x20)*8+ yyvsp[-2].value );
3011 - else if( isbmsfr(yyvsp[-3].value) )
3012 - set_b1(yyval.mode, yyvsp[-3].value + yyvsp[-2].value );
3013 + if( isbmram((yyvsp[(1) - (4)]).value) )
3014 + set_b1((yyval).mode, ((yyvsp[(1) - (4)]).value-0x20)*8+ (yyvsp[(2) - (4)]).value );
3015 + else if( isbmsfr((yyvsp[(1) - (4)]).value) )
3016 + set_b1((yyval).mode, (yyvsp[(1) - (4)]).value + (yyvsp[(2) - (4)]).value );
3018 warn("Invalid bit addressable RAM location");
3020 - set_md(yyval.mode,11);
3021 - set_ov(yyval.mode,0);
3022 - set_sz(yyval.mode,1);
3023 + set_md((yyval).mode,11);
3024 + set_ov((yyval).mode,0);
3025 + set_sz((yyval).mode,1);
3031 +/* Line 1806 of yacc.c */
3032 #line 726 "parser.y"
3034 - set_md(yyval.mode,0);
3035 - set_ov(yyval.mode,0);
3036 - set_sz(yyval.mode,0);
3037 + set_md((yyval).mode,0);
3038 + set_ov((yyval).mode,0);
3039 + set_sz((yyval).mode,0);
3045 +/* Line 1806 of yacc.c */
3046 #line 733 "parser.y"
3048 - set_md(yyval.mode,1);
3049 - set_ov(yyval.mode,yyvsp[0].value);
3050 - set_sz(yyval.mode,0);
3051 + set_md((yyval).mode,1);
3052 + set_ov((yyval).mode,(yyvsp[(1) - (1)]).value);
3053 + set_sz((yyval).mode,0);
3059 +/* Line 1806 of yacc.c */
3060 #line 739 "parser.y"
3062 - set_md(yyval.mode,2);
3063 - set_ov(yyval.mode,0);
3064 - set_sz(yyval.mode,1);
3065 - set_b1(yyval.mode,yyvsp[0].value);
3066 + set_md((yyval).mode,2);
3067 + set_ov((yyval).mode,0);
3068 + set_sz((yyval).mode,1);
3069 + set_b1((yyval).mode,(yyvsp[(1) - (1)]).value);
3075 +/* Line 1806 of yacc.c */
3076 #line 746 "parser.y"
3078 - set_md(yyval.mode,3);
3079 - set_ov(yyval.mode,yyvsp[0].value);
3080 - set_sz(yyval.mode,0);
3081 + set_md((yyval).mode,3);
3082 + set_ov((yyval).mode,(yyvsp[(2) - (2)]).value);
3083 + set_sz((yyval).mode,0);
3089 +/* Line 1806 of yacc.c */
3090 #line 754 "parser.y"
3092 - set_md(yyval.mode,0);
3093 - set_ov(yyval.mode,0);
3094 - set_sz(yyval.mode,0);
3095 + set_md((yyval).mode,0);
3096 + set_ov((yyval).mode,0);
3097 + set_sz((yyval).mode,0);
3103 +/* Line 1806 of yacc.c */
3104 #line 760 "parser.y"
3106 - set_md(yyval.mode,1);
3107 - set_ov(yyval.mode,0);
3108 - set_sz(yyval.mode,0);
3109 + set_md((yyval).mode,1);
3110 + set_ov((yyval).mode,0);
3111 + set_sz((yyval).mode,0);
3117 +/* Line 1806 of yacc.c */
3118 #line 766 "parser.y"
3120 - set_md(yyval.mode,2);
3121 - set_ov(yyval.mode,0);
3122 - set_sz(yyval.mode,1);
3123 - set_b1(yyval.mode,yyvsp[0].value);
3124 + set_md((yyval).mode,2);
3125 + set_ov((yyval).mode,0);
3126 + set_sz((yyval).mode,1);
3127 + set_b1((yyval).mode,(yyvsp[(1) - (1)]).value);
3133 +/* Line 1806 of yacc.c */
3134 #line 775 "parser.y"
3136 - set_md(yyval.mode,0);
3137 - set_ov(yyval.mode,0);
3138 - set_sz(yyval.mode,2);
3139 - set_b1(yyval.mode,yyvsp[-2].value);
3140 - set_b2(yyval.mode,yyvsp[0].value);
3141 + set_md((yyval).mode,0);
3142 + set_ov((yyval).mode,0);
3143 + set_sz((yyval).mode,2);
3144 + set_b1((yyval).mode,(yyvsp[(3) - (5)]).value);
3145 + set_b2((yyval).mode,(yyvsp[(5) - (5)]).value);
3151 +/* Line 1806 of yacc.c */
3152 #line 783 "parser.y"
3154 - set_md(yyval.mode,1);
3155 - set_ov(yyval.mode,0);
3156 - set_sz(yyval.mode,2);
3157 - set_b1(yyval.mode,yyvsp[-2].value);
3158 - set_b2(yyval.mode,yyvsp[0].value);
3159 + set_md((yyval).mode,1);
3160 + set_ov((yyval).mode,0);
3161 + set_sz((yyval).mode,2);
3162 + set_b1((yyval).mode,(yyvsp[(4) - (6)]).value);
3163 + set_b2((yyval).mode,(yyvsp[(6) - (6)]).value);
3169 +/* Line 1806 of yacc.c */
3170 #line 791 "parser.y"
3172 - set_md(yyval.mode,2);
3173 - set_ov(yyval.mode,yyvsp[-5].value);
3174 - set_sz(yyval.mode,2);
3175 - set_b1(yyval.mode,yyvsp[-2].value);
3176 - set_b2(yyval.mode,yyvsp[0].value);
3177 + set_md((yyval).mode,2);
3178 + set_ov((yyval).mode,(yyvsp[(1) - (6)]).value);
3179 + set_sz((yyval).mode,2);
3180 + set_b1((yyval).mode,(yyvsp[(4) - (6)]).value);
3181 + set_b2((yyval).mode,(yyvsp[(6) - (6)]).value);
3187 +/* Line 1806 of yacc.c */
3188 #line 799 "parser.y"
3190 - set_md(yyval.mode,3);
3191 - set_ov(yyval.mode,yyvsp[-5].value);
3192 - set_sz(yyval.mode,2);
3193 - set_b1(yyval.mode,yyvsp[-2].value);
3194 - set_b2(yyval.mode,yyvsp[0].value);
3195 + set_md((yyval).mode,3);
3196 + set_ov((yyval).mode,(yyvsp[(2) - (7)]).value);
3197 + set_sz((yyval).mode,2);
3198 + set_b1((yyval).mode,(yyvsp[(5) - (7)]).value);
3199 + set_b2((yyval).mode,(yyvsp[(7) - (7)]).value);
3205 +/* Line 1806 of yacc.c */
3206 #line 809 "parser.y"
3210 - offset = yyvsp[0].val.v - (lc+3);
3211 + offset = (yyvsp[(1) - (1)]).val.v - (lc+3);
3212 if( offset > 127 || offset < -128 )
3213 warn("Relative offset exceeds -128 / +127");
3214 - yyval.value = offset;
3215 + (yyval).value = offset;
3222 +/* Line 1806 of yacc.c */
3223 #line 826 "parser.y"
3227 - offset = yyvsp[0].val.v - (lc+2); /* different! */
3228 + offset = (yyvsp[(1) - (1)]).val.v - (lc+2); /* different! */
3229 if( offset > 127 || offset < -128 )
3230 warn("Relative offset exceeds -128 / +127");
3231 - yyval.value = offset;
3232 + (yyval).value = offset;
3239 +/* Line 1806 of yacc.c */
3240 #line 839 "parser.y"
3243 - if( !isbit8(yyvsp[-1].value) )
3244 + if( !isbit8((yyvsp[(1) - (2)]).value) )
3245 warn("Bit address exceeds 8-bits");
3246 - if( isbmram(yyvsp[-1].value) )
3247 - yyval.value = (yyvsp[-1].value-0x20)*8+yyvsp[0].value;
3248 - else if( isbmsfr(yyvsp[-1].value) )
3249 - yyval.value = yyvsp[-1].value + yyvsp[0].value;
3250 + if( isbmram((yyvsp[(1) - (2)]).value) )
3251 + (yyval).value = ((yyvsp[(1) - (2)]).value-0x20)*8+(yyvsp[(2) - (2)]).value;
3252 + else if( isbmsfr((yyvsp[(1) - (2)]).value) )
3253 + (yyval).value = (yyvsp[(1) - (2)]).value + (yyvsp[(2) - (2)]).value;
3255 warn("Invalid bit addressable RAM location");
3257 @@ -2529,201 +3173,259 @@ yyreduce:
3262 +/* Line 1806 of yacc.c */
3263 #line 852 "parser.y"
3266 - if( !isbit8(yyvsp[0].value) )
3267 + if( !isbit8((yyvsp[(1) - (1)]).value) )
3268 warn("Bit address exceeds 8-bits");
3269 - yyval.value = yyvsp[0].value;
3270 + (yyval).value = (yyvsp[(1) - (1)]).value;
3277 +/* Line 1806 of yacc.c */
3278 #line 862 "parser.y"
3280 - if( yyvsp[0].sym->type == UNDEF && pass2 )
3281 - warn("Symbol %s undefined",yyvsp[0].sym->name);
3282 - yyval.value = yyvsp[0].sym->value;
3283 + if( (yyvsp[(1) - (1)]).sym->type == UNDEF && pass2 )
3284 + warn("Symbol %s undefined",(yyvsp[(1) - (1)]).sym->name);
3285 + (yyval).value = (yyvsp[(1) - (1)]).sym->value;
3291 +/* Line 1806 of yacc.c */
3292 #line 867 "parser.y"
3293 - { yyval.value = yyvsp[0].value; }
3294 + { (yyval).value = (yyvsp[(1) - (1)]).value; }
3299 +/* Line 1806 of yacc.c */
3300 #line 870 "parser.y"
3301 - { yyval.value = 0; }
3302 + { (yyval).value = 0; }
3307 +/* Line 1806 of yacc.c */
3308 #line 871 "parser.y"
3309 - { yyval.value = 1; }
3310 + { (yyval).value = 1; }
3315 +/* Line 1806 of yacc.c */
3316 #line 872 "parser.y"
3317 - { yyval.value = 2; }
3318 + { (yyval).value = 2; }
3323 +/* Line 1806 of yacc.c */
3324 #line 873 "parser.y"
3325 - { yyval.value = 3; }
3326 + { (yyval).value = 3; }
3331 +/* Line 1806 of yacc.c */
3332 #line 874 "parser.y"
3333 - { yyval.value = 4; }
3334 + { (yyval).value = 4; }
3339 +/* Line 1806 of yacc.c */
3340 #line 875 "parser.y"
3341 - { yyval.value = 5; }
3342 + { (yyval).value = 5; }
3347 +/* Line 1806 of yacc.c */
3348 #line 876 "parser.y"
3349 - { yyval.value = 6; }
3350 + { (yyval).value = 6; }
3355 +/* Line 1806 of yacc.c */
3356 #line 877 "parser.y"
3357 - { yyval.value = 7; }
3358 + { (yyval).value = 7; }
3363 +/* Line 1806 of yacc.c */
3364 #line 880 "parser.y"
3365 - { yyval.value = 0; }
3366 + { (yyval).value = 0; }
3371 +/* Line 1806 of yacc.c */
3372 #line 881 "parser.y"
3373 - { yyval.value = 1; }
3374 + { (yyval).value = 1; }
3379 +/* Line 1806 of yacc.c */
3380 #line 883 "parser.y"
3381 - { yyval.value = 0;
3382 + { (yyval).value = 0;
3383 warn("Illegal indirect register: @r2"); }
3388 +/* Line 1806 of yacc.c */
3389 #line 886 "parser.y"
3390 - { yyval.value = 0;
3391 + { (yyval).value = 0;
3392 warn("Illegal indirect register: @r3"); }
3397 +/* Line 1806 of yacc.c */
3398 #line 889 "parser.y"
3399 - { yyval.value = 0;
3400 + { (yyval).value = 0;
3401 warn("Illegal indirect register: @r4"); }
3406 +/* Line 1806 of yacc.c */
3407 #line 892 "parser.y"
3408 - { yyval.value = 0;
3409 + { (yyval).value = 0;
3410 warn("Illegal indirect register: @r5"); }
3415 +/* Line 1806 of yacc.c */
3416 #line 895 "parser.y"
3417 - { yyval.value = 0;
3418 + { (yyval).value = 0;
3419 warn("Illegal indirect register: @r6"); }
3424 +/* Line 1806 of yacc.c */
3425 #line 898 "parser.y"
3426 - { yyval.value = 0;
3427 + { (yyval).value = 0;
3428 warn("Illegal indirect register: @r7"); }
3433 +/* Line 1806 of yacc.c */
3434 #line 903 "parser.y"
3437 - if( !isbit8(yyvsp[0].val.v) )
3438 + if( !isbit8((yyvsp[(1) - (1)]).val.v) )
3439 warn("Expression greater than 8-bits");
3441 - yyval.value = yyvsp[0].val.v;
3442 + (yyval).value = (yyvsp[(1) - (1)]).val.v;
3448 +/* Line 1806 of yacc.c */
3449 #line 913 "parser.y"
3452 - if( !isbit16(yyvsp[0].val.v) )
3453 + if( !isbit16((yyvsp[(1) - (1)]).val.v) )
3454 warn("Expression greater than 16-bits");
3456 - yyval.value = yyvsp[0].val.v;
3457 + (yyval).value = (yyvsp[(1) - (1)]).val.v;
3463 +/* Line 1806 of yacc.c */
3464 #line 923 "parser.y"
3467 - if( !isbit16(yyvsp[0].val.v) )
3468 + if( !isbit16((yyvsp[(1) - (1)]).val.v) )
3469 warn("Address greater than 16-bits");
3470 - if( (yyvsp[0].val.v & size11) != ((lc+2) & size11) )
3471 + if( ((yyvsp[(1) - (1)]).val.v & size11) != ((lc+2) & size11) )
3472 warn("Address outside current 2K page");
3474 - set_md(yyval.mode,0);
3475 - set_ov(yyval.mode, (yyvsp[0].val.v&0x0700)>>3 );
3476 - set_sz(yyval.mode,1);
3477 - set_b1(yyval.mode,yyvsp[0].val.v&0x00ff);
3478 + set_md((yyval).mode,0);
3479 + set_ov((yyval).mode, ((yyvsp[(1) - (1)]).val.v&0x0700)>>3 );
3480 + set_sz((yyval).mode,1);
3481 + set_b1((yyval).mode,(yyvsp[(1) - (1)]).val.v&0x00ff);
3487 +/* Line 1806 of yacc.c */
3488 #line 938 "parser.y"
3491 - if( !isbit16(yyvsp[0].val.v) )
3492 + if( !isbit16((yyvsp[(1) - (1)]).val.v) )
3493 warn("Address greater than 16-bits");
3495 - set_md(yyval.mode,0);
3496 - set_ov(yyval.mode, 0 );
3497 - set_sz(yyval.mode,2);
3498 - set_b1(yyval.mode, (yyvsp[0].val.v & 0xff00 ) >> 8 );
3499 - set_b2(yyval.mode, (yyvsp[0].val.v & 0x00ff ) );
3500 + set_md((yyval).mode,0);
3501 + set_ov((yyval).mode, 0 );
3502 + set_sz((yyval).mode,2);
3503 + set_b1((yyval).mode, ((yyvsp[(1) - (1)]).val.v & 0xff00 ) >> 8 );
3504 + set_b2((yyval).mode, ((yyvsp[(1) - (1)]).val.v & 0x00ff ) );
3510 +/* Line 1806 of yacc.c */
3511 #line 952 "parser.y"
3515 - offset = yyvsp[0].val.v - (lc+2);
3516 + offset = (yyvsp[(1) - (1)]).val.v - (lc+2);
3517 if( offset>127 || offset<-128 )
3518 warn("Relative offset exceeds -128 / +127");
3520 - set_md(yyval.mode,0);
3521 - set_ov(yyval.mode,0);
3522 - set_sz(yyval.mode,1);
3523 - set_b1(yyval.mode,offset);
3524 + set_md((yyval).mode,0);
3525 + set_ov((yyval).mode,0);
3526 + set_sz((yyval).mode,1);
3527 + set_b1((yyval).mode,offset);
3535 -/* Line 1010 of yacc.c. */
3536 -#line 2717 "y.tab.c"
3542 +/* Line 1806 of yacc.c */
3543 +#line 3408 "y.tab.c"
3546 + /* User semantic actions sometimes alter yychar, and that requires
3547 + that yytoken be updated with the new translation. We take the
3548 + approach of translating immediately before every use of yytoken.
3549 + One alternative is translating here after every semantic action,
3550 + but that translation would be missed if the semantic action invokes
3551 + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
3552 + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
3553 + incorrect destructor might then be invoked immediately. In the
3554 + case of YYERROR or YYBACKUP, subsequent parser actions might lead
3555 + to an incorrect destructor call or verbose syntax error message
3556 + before the lookahead is translated. */
3557 + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3559 + YYPOPSTACK (yylen);
3561 YY_STACK_PRINT (yyss, yyssp);
3566 /* Now `shift' the result of the reduction. Determine what state
3567 that goes to, based on the state we popped back to and the rule
3568 number reduced by. */
3569 @@ -2743,70 +3445,48 @@ yyreduce:
3570 | yyerrlab -- here on detecting error |
3571 `------------------------------------*/
3573 + /* Make sure we have latest lookahead translation. See comments at
3574 + user semantic actions for why this is necessary. */
3575 + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
3577 /* If not already recovering from an error, report this error. */
3581 -#if YYERROR_VERBOSE
3582 - yyn = yypact[yystate];
3584 - if (YYPACT_NINF < yyn && yyn < YYLAST)
3586 - YYSIZE_T yysize = 0;
3587 - int yytype = YYTRANSLATE (yychar);
3588 - const char* yyprefix;
3592 - /* Start YYX at -YYN if negative to avoid negative indexes in
3594 - int yyxbegin = yyn < 0 ? -yyn : 0;
3596 - /* Stay within bounds of both yycheck and yytname. */
3597 - int yychecklim = YYLAST - yyn;
3598 - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
3601 - yyprefix = ", expecting ";
3602 - for (yyx = yyxbegin; yyx < yyxend; ++yyx)
3603 - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
3605 - yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
3613 - yysize += (sizeof ("syntax error, unexpected ")
3614 - + yystrlen (yytname[yytype]));
3615 - yymsg = (char *) YYSTACK_ALLOC (yysize);
3618 - char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
3619 - yyp = yystpcpy (yyp, yytname[yytype]);
3623 - yyprefix = ", expecting ";
3624 - for (yyx = yyxbegin; yyx < yyxend; ++yyx)
3625 - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
3627 - yyp = yystpcpy (yyp, yyprefix);
3628 - yyp = yystpcpy (yyp, yytname[yyx]);
3629 - yyprefix = " or ";
3633 - YYSTACK_FREE (yymsg);
3636 - yyerror ("syntax error; also virtual memory exhausted");
3639 -#endif /* YYERROR_VERBOSE */
3640 - yyerror ("syntax error");
3641 +#if ! YYERROR_VERBOSE
3642 + yyerror (YY_("syntax error"));
3644 +# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
3647 + char const *yymsgp = YY_("syntax error");
3648 + int yysyntax_error_status;
3649 + yysyntax_error_status = YYSYNTAX_ERROR;
3650 + if (yysyntax_error_status == 0)
3652 + else if (yysyntax_error_status == 1)
3654 + if (yymsg != yymsgbuf)
3655 + YYSTACK_FREE (yymsg);
3656 + yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
3660 + yymsg_alloc = sizeof yymsgbuf;
3661 + yysyntax_error_status = 2;
3665 + yysyntax_error_status = YYSYNTAX_ERROR;
3670 + if (yysyntax_error_status == 2)
3671 + goto yyexhaustedlab;
3673 +# undef YYSYNTAX_ERROR
3678 @@ -2817,25 +3497,16 @@ yyerrlab:
3679 error, discard it. */
3681 if (yychar <= YYEOF)
3683 - /* If at end of input, pop the error token,
3684 - then the rest of the stack, then return failure. */
3686 + /* Return failure if at end of input. */
3687 if (yychar == YYEOF)
3691 - if (yyssp == yyss)
3693 - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
3694 - yydestruct (yystos[*yyssp], yyvsp);
3701 - YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
3702 - yydestruct (yytoken, &yylval);
3703 + yydestruct ("Error: discarding",
3704 + yytoken, &yylval);
3710 @@ -2849,15 +3520,17 @@ yyerrlab:
3711 `---------------------------------------------------*/
3715 - /* Pacify GCC when the user code never invokes YYERROR and the label
3716 - yyerrorlab therefore never appears in user code. */
3718 + /* Pacify compilers like GCC when the user code never invokes
3719 + YYERROR and the label yyerrorlab therefore never appears in user
3721 + if (/*CONSTCOND*/ 0)
3727 + /* Do not reclaim the symbols of the rule which action triggered
3729 + YYPOPSTACK (yylen);
3731 + YY_STACK_PRINT (yyss, yyssp);
3735 @@ -2871,7 +3544,7 @@ yyerrlab1:
3738 yyn = yypact[yystate];
3739 - if (yyn != YYPACT_NINF)
3740 + if (!yypact_value_is_default (yyn))
3743 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
3744 @@ -2886,21 +3559,20 @@ yyerrlab1:
3748 - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
3749 - yydestruct (yystos[yystate], yyvsp);
3752 + yydestruct ("Error: popping",
3753 + yystos[yystate], yyvsp);
3756 YY_STACK_PRINT (yyss, yyssp);
3759 - if (yyn == YYFINAL)
3762 - YYDPRINTF ((stderr, "Shifting error token, "));
3767 + /* Shift the error token. */
3768 + YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
3773 @@ -2919,25 +3591,50 @@ yyabortlab:
3778 -/*----------------------------------------------.
3779 -| yyoverflowlab -- parser overflow comes here. |
3780 -`----------------------------------------------*/
3782 - yyerror ("parser stack overflow");
3783 +#if !defined(yyoverflow) || YYERROR_VERBOSE
3784 +/*-------------------------------------------------.
3785 +| yyexhaustedlab -- memory exhaustion comes here. |
3786 +`-------------------------------------------------*/
3788 + yyerror (YY_("memory exhausted"));
3794 + if (yychar != YYEMPTY)
3796 + /* Make sure we have latest lookahead translation. See comments at
3797 + user semantic actions for why this is necessary. */
3798 + yytoken = YYTRANSLATE (yychar);
3799 + yydestruct ("Cleanup: discarding lookahead",
3800 + yytoken, &yylval);
3802 + /* Do not reclaim the symbols of the rule which action triggered
3803 + this YYABORT or YYACCEPT. */
3804 + YYPOPSTACK (yylen);
3805 + YY_STACK_PRINT (yyss, yyssp);
3806 + while (yyssp != yyss)
3808 + yydestruct ("Cleanup: popping",
3809 + yystos[*yyssp], yyvsp);
3814 YYSTACK_FREE (yyss);
3817 +#if YYERROR_VERBOSE
3818 + if (yymsg != yymsgbuf)
3819 + YYSTACK_FREE (yymsg);
3821 + /* Make sure YYID is used. */
3822 + return YYID (yyresult);
3827 +/* Line 2067 of yacc.c */
3828 #line 967 "parser.y"
3831 @@ -2991,13 +3688,13 @@ int makeop(struct opcode * op, struct mode *m, int add)
3835 -#define indx(a) ( (a)/(sizeof(long)*8) )
3836 -#define bit(a) ( 1 << ((a)%(sizeof(long)*8)) )
3837 +#define indx(a) ( (a)/(32) )
3838 +#define bit(a) ( 1 << ((a)%(32)) )
3840 #define getloc(a) (regions[indx(a)] & bit(a))
3841 #define setloc(a) (regions[indx(a)] |= bit(a))
3843 -static unsigned long regions[ 0x10000/(sizeof(long)*8) ];
3844 +static unsigned long regions[ 0x10000/(32) ];
3848 @@ -3101,4 +3798,3 @@ void genword(unsigned long w)