diff --git a/TextConverters/RTF/rtfGrammer.tab.c b/TextConverters/RTF/rtfGrammer.tab.c index 3da430c94..06fe9343e 100644 --- a/TextConverters/RTF/rtfGrammer.tab.c +++ b/TextConverters/RTF/rtfGrammer.tab.c @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 1.875. */ +/* A Bison parser, made from rtfGrammer.y, by GNU bison 1.75. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -34,13 +34,10 @@ USER NAME SPACE" below. */ /* Identify Bison output. */ -#define YYBISON 1 - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" +#define YYBISON 1 /* Pure parsers. */ -#define YYPURE 1 +#define YYPURE 1 /* Using locations. */ #define YYLSP_NEEDED 0 @@ -118,21 +115,22 @@ RTFitalic = 311, RTFunderline = 312, RTFunderlineStop = 313, - RTFsubscript = 314, - RTFsuperscript = 315, - RTFtabstop = 316, - RTFfcharset = 317, - RTFfprq = 318, - RTFcpg = 319, - RTFOtherStatement = 320, - RTFfontListStart = 321, - RTFfamilyNil = 322, - RTFfamilyRoman = 323, - RTFfamilySwiss = 324, - RTFfamilyModern = 325, - RTFfamilyScript = 326, - RTFfamilyDecor = 327, - RTFfamilyTech = 328 + RTFunichar = 314, + RTFsubscript = 315, + RTFsuperscript = 316, + RTFtabstop = 317, + RTFfcharset = 318, + RTFfprq = 319, + RTFcpg = 320, + RTFOtherStatement = 321, + RTFfontListStart = 322, + RTFfamilyNil = 323, + RTFfamilyRoman = 324, + RTFfamilySwiss = 325, + RTFfamilyModern = 326, + RTFfamilyScript = 327, + RTFfamilyDecor = 328, + RTFfamilyTech = 329 }; #endif #define RTFtext 258 @@ -191,21 +189,22 @@ #define RTFitalic 311 #define RTFunderline 312 #define RTFunderlineStop 313 -#define RTFsubscript 314 -#define RTFsuperscript 315 -#define RTFtabstop 316 -#define RTFfcharset 317 -#define RTFfprq 318 -#define RTFcpg 319 -#define RTFOtherStatement 320 -#define RTFfontListStart 321 -#define RTFfamilyNil 322 -#define RTFfamilyRoman 323 -#define RTFfamilySwiss 324 -#define RTFfamilyModern 325 -#define RTFfamilyScript 326 -#define RTFfamilyDecor 327 -#define RTFfamilyTech 328 +#define RTFunichar 314 +#define RTFsubscript 315 +#define RTFsuperscript 316 +#define RTFtabstop 317 +#define RTFfcharset 318 +#define RTFfprq 319 +#define RTFcpg 320 +#define RTFOtherStatement 321 +#define RTFfontListStart 322 +#define RTFfamilyNil 323 +#define RTFfamilyRoman 324 +#define RTFfamilySwiss 325 +#define RTFfamilyModern 326 +#define RTFfamilyScript 327 +#define RTFfamilyDecor 328 +#define RTFfamilyTech 329 @@ -267,27 +266,36 @@ int GSRTFlex(void *lvalp, void *lctxt); # define YYERROR_VERBOSE 0 #endif -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +#ifndef YYSTYPE #line 77 "rtfGrammer.y" -typedef union YYSTYPE { +typedef union { int number; const char *text; RTFcmd cmd; -} YYSTYPE; -/* Line 191 of yacc.c. */ +} yystype; +/* Line 193 of /usr/share/bison/yacc.c. */ #line 278 "rtfGrammer.tab.c" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE yystype # define YYSTYPE_IS_TRIVIAL 1 #endif - +#ifndef YYLTYPE +typedef struct yyltype +{ + int first_line; + int first_column; + int last_line; + int last_column; +} yyltype; +# define YYLTYPE yyltype +# define YYLTYPE_IS_TRIVIAL 1 +#endif /* Copy the second part of user declarations. */ -/* Line 214 of yacc.c. */ -#line 290 "rtfGrammer.tab.c" +/* Line 213 of /usr/share/bison/yacc.c. */ +#line 299 "rtfGrammer.tab.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE @@ -323,7 +331,7 @@ typedef union YYSTYPE { #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ - || (YYSTYPE_IS_TRIVIAL))) + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc @@ -333,13 +341,13 @@ union yyalloc }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) + + YYSTACK_GAP_MAX) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ @@ -353,7 +361,7 @@ union yyalloc { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ + (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif @@ -370,7 +378,7 @@ union yyalloc YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) @@ -385,24 +393,23 @@ union yyalloc /* YYFINAL -- State number of the termination state. */ #define YYFINAL 4 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 690 +#define YYLAST 701 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 76 +#define YYNTOKENS 77 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 24 /* YYNRULES -- Number of rules. */ -#define YYNRULES 88 +#define YYNRULES 89 /* YYNRULES -- Number of states. */ -#define YYNSTATES 122 +#define YYNSTATES 123 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 328 +#define YYMAXUTOK 329 -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(X) \ + ((unsigned)(X) <= YYMAXUTOK ? yytranslate[X] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const unsigned char yytranslate[] = @@ -419,7 +426,7 @@ static const unsigned char yytranslate[] = 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 74, 2, 75, 2, 2, 2, 2, + 2, 2, 2, 75, 2, 76, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -439,7 +446,7 @@ static const unsigned char yytranslate[] = 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73 + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74 }; #if YYDEBUG @@ -453,52 +460,52 @@ static const unsigned char yyprhs[] = 84, 90, 91, 97, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, - 153, 155, 157, 159, 161, 163, 165, 170, 171, 174, - 179, 186, 191, 192, 195, 198, 201, 204, 206, 208, - 210, 212, 214, 216, 218, 223, 224, 227, 232 + 153, 155, 157, 159, 161, 163, 165, 167, 172, 173, + 176, 181, 188, 193, 194, 197, 200, 203, 206, 208, + 210, 212, 214, 216, 218, 220, 225, 226, 229, 234 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yysigned_char yyrhs[] = { - 77, 0, -1, -1, -1, 74, 78, 4, 80, 81, - 79, 75, -1, 5, -1, 6, -1, 7, -1, 8, - -1, 65, -1, -1, 81, 92, -1, 81, 97, -1, - 81, 91, -1, 81, 3, -1, 81, 82, -1, 81, - 1, -1, -1, 74, 83, 81, 75, -1, -1, 74, - 84, 9, 81, 75, -1, -1, 74, 85, 10, 81, - 75, -1, -1, 74, 86, 11, 81, 75, -1, -1, - 74, 87, 12, 81, 75, -1, -1, 74, 88, 13, - 81, 75, -1, -1, 74, 89, 14, 81, 75, -1, - -1, 74, 90, 15, 81, 75, -1, 74, 1, 75, + 78, 0, -1, -1, -1, 75, 79, 4, 81, 82, + 80, 76, -1, 5, -1, 6, -1, 7, -1, 8, + -1, 66, -1, -1, 82, 93, -1, 82, 98, -1, + 82, 92, -1, 82, 3, -1, 82, 83, -1, 82, + 1, -1, -1, 75, 84, 82, 76, -1, -1, 75, + 85, 9, 82, 76, -1, -1, 75, 86, 10, 82, + 76, -1, -1, 75, 87, 11, 82, 76, -1, -1, + 75, 88, 12, 82, 76, -1, -1, 75, 89, 13, + 82, 76, -1, -1, 75, 90, 14, 82, 76, -1, + -1, 75, 91, 15, 82, 76, -1, 75, 1, 76, -1, 37, -1, 38, -1, 39, -1, 40, -1, 41, -1, 42, -1, 43, -1, 44, -1, 45, -1, 46, - -1, 47, -1, 61, -1, 48, -1, 49, -1, 50, + -1, 47, -1, 62, -1, 48, -1, 49, -1, 50, -1, 51, -1, 53, -1, 52, -1, 18, -1, 54, - -1, 34, -1, 35, -1, 59, -1, 60, -1, 55, - -1, 56, -1, 57, -1, 58, -1, 16, -1, 17, - -1, 19, -1, 65, -1, 74, 66, 93, 75, -1, - -1, 93, 94, -1, 93, 74, 94, 75, -1, 93, - 74, 94, 82, 3, 75, -1, 37, 96, 95, 3, - -1, -1, 95, 62, -1, 95, 63, -1, 95, 64, - -1, 95, 82, -1, 67, -1, 68, -1, 69, -1, - 70, -1, 71, -1, 72, -1, 73, -1, 74, 36, - 98, 75, -1, -1, 98, 99, -1, 31, 32, 33, - 3, -1, 3, -1 + -1, 34, -1, 35, -1, 60, -1, 61, -1, 55, + -1, 56, -1, 57, -1, 58, -1, 59, -1, 16, + -1, 17, -1, 19, -1, 66, -1, 75, 67, 94, + 76, -1, -1, 94, 95, -1, 94, 75, 95, 76, + -1, 94, 75, 95, 83, 3, 76, -1, 37, 97, + 96, 3, -1, -1, 96, 63, -1, 96, 64, -1, + 96, 65, -1, 96, 83, -1, 68, -1, 69, -1, + 70, -1, 71, -1, 72, -1, 73, -1, 74, -1, + 75, 36, 99, 76, -1, -1, 99, 100, -1, 31, + 32, 33, 3, -1, 3, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned short yyrline[] = { - 0, 166, 166, 166, 166, 169, 170, 171, 172, 174, - 177, 178, 179, 180, 181, 182, 183, 186, 186, 187, - 187, 188, 188, 189, 189, 190, 190, 191, 191, 192, - 192, 193, 193, 194, 202, 209, 216, 223, 230, 237, - 244, 251, 258, 265, 272, 279, 286, 287, 288, 289, - 290, 297, 298, 299, 300, 307, 314, 321, 328, 335, - 342, 349, 350, 351, 352, 353, 360, 363, 364, 365, - 366, 372, 376, 377, 378, 379, 380, 385, 386, 387, - 388, 389, 390, 391, 399, 402, 403, 407, 412 + 0, 167, 167, 167, 167, 170, 171, 172, 173, 175, + 178, 179, 180, 181, 182, 183, 184, 187, 187, 188, + 188, 189, 189, 190, 190, 191, 191, 192, 192, 193, + 193, 194, 194, 195, 203, 210, 217, 224, 231, 238, + 245, 252, 259, 266, 273, 280, 287, 288, 289, 290, + 291, 298, 299, 300, 301, 308, 315, 322, 329, 336, + 343, 350, 351, 352, 353, 354, 355, 362, 365, 366, + 367, 368, 374, 378, 379, 380, 381, 382, 386, 388, + 389, 390, 391, 392, 393, 401, 404, 405, 409, 414 }; #endif @@ -519,10 +526,10 @@ static const char *const yytname[] = "RTFmarginButtom", "RTFfirstLineIndent", "RTFleftIndent", "RTFrightIndent", "RTFalignCenter", "RTFalignJustified", "RTFalignLeft", "RTFalignRight", "RTFlineSpace", "RTFspaceAbove", "RTFstyle", "RTFbold", - "RTFitalic", "RTFunderline", "RTFunderlineStop", "RTFsubscript", - "RTFsuperscript", "RTFtabstop", "RTFfcharset", "RTFfprq", "RTFcpg", - "RTFOtherStatement", "RTFfontListStart", "RTFfamilyNil", - "RTFfamilyRoman", "RTFfamilySwiss", "RTFfamilyModern", + "RTFitalic", "RTFunderline", "RTFunderlineStop", "RTFunichar", + "RTFsubscript", "RTFsuperscript", "RTFtabstop", "RTFfcharset", + "RTFfprq", "RTFcpg", "RTFOtherStatement", "RTFfontListStart", + "RTFfamilyNil", "RTFfamilyRoman", "RTFfamilySwiss", "RTFfamilyModern", "RTFfamilyScript", "RTFfamilyDecor", "RTFfamilyTech", "'{'", "'}'", "$accept", "rtfFile", "@1", "@2", "rtfCharset", "rtfIngredients", "rtfBlock", "@3", "@4", "@5", "@6", "@7", "@8", "@9", "@10", @@ -544,22 +551,22 @@ static const unsigned short yytoknum[] = 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, - 325, 326, 327, 328, 123, 125 + 325, 326, 327, 328, 329, 123, 125 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const unsigned char yyr1[] = { - 0, 76, 78, 79, 77, 80, 80, 80, 80, 80, - 81, 81, 81, 81, 81, 81, 81, 83, 82, 84, - 82, 85, 82, 86, 82, 87, 82, 88, 82, 89, - 82, 90, 82, 82, 91, 91, 91, 91, 91, 91, - 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, - 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, - 91, 91, 91, 91, 91, 91, 92, 93, 93, 93, - 93, 94, 95, 95, 95, 95, 95, 96, 96, 96, - 96, 96, 96, 96, 97, 98, 98, 99, 99 + 0, 77, 79, 80, 78, 81, 81, 81, 81, 81, + 82, 82, 82, 82, 82, 82, 82, 84, 83, 85, + 83, 86, 83, 87, 83, 88, 83, 89, 83, 90, + 83, 91, 83, 83, 92, 92, 92, 92, 92, 92, + 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, + 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, + 92, 92, 92, 92, 92, 92, 92, 93, 94, 94, + 94, 94, 95, 96, 96, 96, 96, 96, 97, 97, + 97, 97, 97, 97, 97, 98, 99, 99, 100, 100 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -571,9 +578,9 @@ static const unsigned char yyr2[] = 5, 0, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 4, 0, 2, 4, - 6, 4, 0, 2, 2, 2, 2, 1, 1, 1, - 1, 1, 1, 1, 4, 0, 2, 4, 1 + 1, 1, 1, 1, 1, 1, 1, 4, 0, 2, + 4, 6, 4, 0, 2, 2, 2, 2, 1, 1, + 1, 1, 1, 1, 1, 4, 0, 2, 4, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state @@ -582,226 +589,228 @@ static const unsigned char yyr2[] = static const unsigned char yydefact[] = { 0, 2, 0, 0, 1, 0, 5, 6, 7, 8, - 9, 10, 0, 16, 14, 62, 63, 52, 64, 54, + 9, 10, 0, 16, 14, 63, 64, 52, 65, 54, 55, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 51, 50, 53, 58, - 59, 60, 61, 56, 57, 45, 65, 0, 0, 15, - 13, 11, 12, 0, 85, 67, 10, 0, 0, 0, - 0, 0, 0, 0, 4, 33, 0, 0, 0, 10, - 10, 10, 10, 10, 10, 10, 88, 0, 84, 86, - 0, 0, 66, 68, 18, 0, 0, 0, 0, 0, - 0, 0, 0, 77, 78, 79, 80, 81, 82, 83, - 72, 0, 20, 22, 24, 26, 28, 30, 32, 0, - 0, 0, 69, 0, 87, 71, 73, 74, 75, 76, - 0, 70 + 59, 60, 61, 62, 56, 57, 45, 66, 0, 0, + 15, 13, 11, 12, 0, 86, 68, 10, 0, 0, + 0, 0, 0, 0, 0, 4, 33, 0, 0, 0, + 10, 10, 10, 10, 10, 10, 10, 89, 0, 85, + 87, 0, 0, 67, 69, 18, 0, 0, 0, 0, + 0, 0, 0, 0, 78, 79, 80, 81, 82, 83, + 84, 73, 0, 20, 22, 24, 26, 28, 30, 32, + 0, 0, 0, 70, 0, 88, 72, 74, 75, 76, + 77, 0, 71 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yysigned_char yydefgoto[] = { - -1, 2, 3, 48, 11, 12, 49, 56, 57, 58, - 59, 60, 61, 62, 63, 50, 51, 67, 83, 110, - 100, 52, 66, 79 + -1, 2, 3, 49, 11, 12, 50, 57, 58, 59, + 60, 61, 62, 63, 64, 51, 52, 68, 84, 111, + 101, 53, 67, 80 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -83 +#define YYPACT_NINF -84 static const short yypact[] = { - -73, -83, 31, 28, -83, -2, -83, -83, -83, -83, - -83, -83, 127, -83, -83, -83, -83, -83, -83, -83, - -83, -83, -83, -83, -83, -83, -83, -83, -83, -83, - -83, -83, -83, -83, -83, -83, -83, -83, -83, -83, - -83, -83, -83, -83, -83, -83, -83, -1, -13, -83, - -83, -83, -83, -9, -83, -83, -83, 59, 61, 88, - 90, 57, 115, 117, -83, -83, 58, 60, 188, -83, - -83, -83, -83, -83, -83, -83, -83, 40, -83, -83, - 23, 99, -83, -83, -83, 249, 310, 371, 432, 493, - 554, 615, 104, -83, -83, -83, -83, -83, -83, -83, - -83, -45, -83, -83, -83, -83, -83, -83, -83, 135, - 24, 66, -83, 136, -83, -83, -83, -83, -83, -83, - 67, -83 + -74, -84, 31, 28, -84, -2, -84, -84, -84, -84, + -84, -84, 129, -84, -84, -84, -84, -84, -84, -84, + -84, -84, -84, -84, -84, -84, -84, -84, -84, -84, + -84, -84, -84, -84, -84, -84, -84, -84, -84, -84, + -84, -84, -84, -84, -84, -84, -84, -84, -1, -13, + -84, -84, -84, -84, -9, -84, -84, -84, 60, 62, + 89, 91, 58, 117, 119, -84, -84, 59, 61, 191, + -84, -84, -84, -84, -84, -84, -84, -84, 41, -84, + -84, 23, 101, -84, -84, -84, 253, 315, 377, 439, + 501, 563, 625, 106, -84, -84, -84, -84, -84, -84, + -84, -84, -46, -84, -84, -84, -84, -84, -84, -84, + 137, 24, 67, -84, 138, -84, -84, -84, -84, -84, + -84, 68, -84 }; /* YYPGOTO[NTERM-NUM]. */ static const yysigned_char yypgoto[] = { - -83, -83, -83, -83, -83, -49, -82, -83, -83, -83, - -83, -83, -83, -83, -83, -83, -83, -83, 68, -83, - -83, -83, -83, -83 + -84, -84, -84, -84, -84, -50, -83, -84, -84, -84, + -84, -84, -84, -84, -84, -84, -84, -84, 69, -84, + -84, -84, -84, -84 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ + If YYTABLE_NINF, parse error. */ #define YYTABLE_NINF -32 static const yysigned_char yytable[] = { - 53, 1, -17, 6, 7, 8, 9, 68, -19, -21, - -23, -25, -27, -29, -31, -17, -17, -17, -17, 113, - 85, 86, 87, 88, 89, 90, 91, 115, 119, 111, - 112, 4, 5, -17, -17, 54, -17, -17, -17, -17, + 54, 1, -17, 6, 7, 8, 9, 69, -19, -21, + -23, -25, -27, -29, -31, -17, -17, -17, -17, 114, + 86, 87, 88, 89, 90, 91, 92, 116, 120, 112, + 113, 4, 5, -17, -17, 55, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, - -17, 76, 64, 10, -17, 55, 65, 53, 69, -17, - 73, 70, 92, -17, -17, -19, -21, -23, -25, -27, - -29, -31, -17, -17, -17, -17, 116, 117, 118, 77, - 93, 94, 95, 96, 97, 98, 99, 80, 111, 71, - -17, -17, 72, -17, -17, -17, -17, -17, -17, -17, + -17, -17, 77, 65, 10, -17, 56, 66, 54, 70, + -17, 74, 71, 93, -17, -17, -19, -21, -23, -25, + -27, -29, -31, -17, -17, -17, -17, 117, 118, 119, + 78, 94, 95, 96, 97, 98, 99, 100, 81, 112, + 72, -17, -17, 73, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, - -17, -17, -17, -17, -17, -17, -17, -17, 13, 74, - 14, -17, 75, 78, 81, 82, 80, 109, 114, 120, - -17, -17, 121, 15, 16, 17, 18, 0, 0, 101, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 13, - 0, 14, 46, 0, 0, 0, 0, 0, 0, 0, - 0, 47, -3, 0, 15, 16, 17, 18, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 19, 20, 0, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 13, 0, 14, 46, 0, 0, 0, 0, 0, 0, - 0, 0, 47, 84, 0, 15, 16, 17, 18, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, + 13, 75, 14, -17, 76, 79, 82, 83, 81, 110, + 115, 121, -17, -17, 122, 15, 16, 17, 18, 0, + 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 13, 0, 14, 46, 0, 0, 0, 0, 0, - 0, 0, 0, 47, 102, 0, 15, 16, 17, 18, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 19, 20, 0, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 13, 0, 14, 46, 0, 0, 0, 0, - 0, 0, 0, 0, 47, 103, 0, 15, 16, 17, + 45, 46, 13, 0, 14, 47, 0, 0, 0, 0, + 0, 0, 0, 0, 48, -3, 0, 15, 16, 17, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 13, 0, 14, 46, 0, 0, 0, - 0, 0, 0, 0, 0, 47, 104, 0, 15, 16, - 17, 18, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 19, 20, 0, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 13, 0, 14, 46, 0, 0, - 0, 0, 0, 0, 0, 0, 47, 105, 0, 15, + 43, 44, 45, 46, 13, 0, 14, 47, 0, 0, + 0, 0, 0, 0, 0, 0, 48, 85, 0, 15, 16, 17, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 13, 0, 14, 46, 0, - 0, 0, 0, 0, 0, 0, 0, 47, 106, 0, - 15, 16, 17, 18, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, - 0, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 13, 0, 14, 46, - 0, 0, 0, 0, 0, 0, 0, 0, 47, 107, + 41, 42, 43, 44, 45, 46, 13, 0, 14, 47, + 0, 0, 0, 0, 0, 0, 0, 0, 48, 103, 0, 15, 16, 17, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 0, 0, - 46, 0, 0, 0, 0, 0, 0, 0, 0, 47, - 108 + 39, 40, 41, 42, 43, 44, 45, 46, 13, 0, + 14, 47, 0, 0, 0, 0, 0, 0, 0, 0, + 48, 104, 0, 15, 16, 17, 18, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 19, 20, 0, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 13, 0, 14, 47, 0, 0, 0, 0, 0, 0, + 0, 0, 48, 105, 0, 15, 16, 17, 18, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 19, 20, 0, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 13, 0, 14, 47, 0, 0, 0, 0, + 0, 0, 0, 0, 48, 106, 0, 15, 16, 17, + 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 19, 20, 0, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 13, 0, 14, 47, 0, 0, + 0, 0, 0, 0, 0, 0, 48, 107, 0, 15, + 16, 17, 18, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 19, 20, 0, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 13, 0, 14, 47, + 0, 0, 0, 0, 0, 0, 0, 0, 48, 108, + 0, 15, 16, 17, 18, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, + 20, 0, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 0, 0, + 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, + 48, 109 }; static const yysigned_char yycheck[] = { - 1, 74, 3, 5, 6, 7, 8, 56, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 101, - 69, 70, 71, 72, 73, 74, 75, 3, 110, 74, - 75, 0, 4, 34, 35, 36, 37, 38, 39, 40, + 1, 75, 3, 5, 6, 7, 8, 57, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 102, + 70, 71, 72, 73, 74, 75, 76, 3, 111, 75, + 76, 0, 4, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, - 61, 3, 75, 65, 65, 66, 75, 1, 9, 3, - 13, 10, 32, 74, 75, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 62, 63, 64, 31, - 67, 68, 69, 70, 71, 72, 73, 37, 74, 11, - 34, 35, 12, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 1, 14, - 3, 65, 15, 75, 74, 75, 37, 33, 3, 3, - 74, 75, 75, 16, 17, 18, 19, -1, -1, 81, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, + 61, 62, 3, 76, 66, 66, 67, 76, 1, 9, + 3, 13, 10, 32, 75, 76, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 63, 64, 65, + 31, 68, 69, 70, 71, 72, 73, 74, 37, 75, + 11, 34, 35, 12, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 1, - -1, 3, 65, -1, -1, -1, -1, -1, -1, -1, - -1, 74, 75, -1, 16, 17, 18, 19, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 34, 35, -1, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 1, -1, 3, 65, -1, -1, -1, -1, -1, -1, - -1, -1, 74, 75, -1, 16, 17, 18, 19, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 1, 14, 3, 66, 15, 76, 75, 76, 37, 33, + 3, 3, 75, 76, 76, 16, 17, 18, 19, -1, + -1, 82, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, - 61, 1, -1, 3, 65, -1, -1, -1, -1, -1, - -1, -1, -1, 74, 75, -1, 16, 17, 18, 19, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 34, 35, -1, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 1, -1, 3, 65, -1, -1, -1, -1, - -1, -1, -1, -1, 74, 75, -1, 16, 17, 18, + 61, 62, 1, -1, 3, 66, -1, -1, -1, -1, + -1, -1, -1, -1, 75, 76, -1, 16, 17, 18, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, - 59, 60, 61, 1, -1, 3, 65, -1, -1, -1, - -1, -1, -1, -1, -1, 74, 75, -1, 16, 17, - 18, 19, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 34, 35, -1, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 1, -1, 3, 65, -1, -1, - -1, -1, -1, -1, -1, -1, 74, 75, -1, 16, + 59, 60, 61, 62, 1, -1, 3, 66, -1, -1, + -1, -1, -1, -1, -1, -1, 75, 76, -1, 16, 17, 18, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 1, -1, 3, 65, -1, - -1, -1, -1, -1, -1, -1, -1, 74, 75, -1, - 16, 17, 18, 19, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, - -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 1, -1, 3, 65, - -1, -1, -1, -1, -1, -1, -1, -1, 74, 75, + 57, 58, 59, 60, 61, 62, 1, -1, 3, 66, + -1, -1, -1, -1, -1, -1, -1, -1, 75, 76, -1, 16, 17, 18, 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, - 65, -1, -1, -1, -1, -1, -1, -1, -1, 74, - 75 + 55, 56, 57, 58, 59, 60, 61, 62, 1, -1, + 3, 66, -1, -1, -1, -1, -1, -1, -1, -1, + 75, 76, -1, 16, 17, 18, 19, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 34, 35, -1, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, + 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 1, -1, 3, 66, -1, -1, -1, -1, -1, -1, + -1, -1, 75, 76, -1, 16, 17, 18, 19, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 34, 35, -1, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, + 61, 62, 1, -1, 3, 66, -1, -1, -1, -1, + -1, -1, -1, -1, 75, 76, -1, 16, 17, 18, + 19, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 34, 35, -1, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, + 59, 60, 61, 62, 1, -1, 3, 66, -1, -1, + -1, -1, -1, -1, -1, -1, 75, 76, -1, 16, + 17, 18, 19, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, + 57, 58, 59, 60, 61, 62, 1, -1, 3, 66, + -1, -1, -1, -1, -1, -1, -1, -1, 75, 76, + -1, 16, 17, 18, 19, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, + 35, -1, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, -1, -1, + -1, 66, -1, -1, -1, -1, -1, -1, -1, -1, + 75, 76 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const unsigned char yystos[] = { - 0, 74, 77, 78, 0, 4, 5, 6, 7, 8, - 65, 80, 81, 1, 3, 16, 17, 18, 19, 34, + 0, 75, 78, 79, 0, 4, 5, 6, 7, 8, + 66, 81, 82, 1, 3, 16, 17, 18, 19, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 65, 74, 79, 82, - 91, 92, 97, 1, 36, 66, 83, 84, 85, 86, - 87, 88, 89, 90, 75, 75, 98, 93, 81, 9, - 10, 11, 12, 13, 14, 15, 3, 31, 75, 99, - 37, 74, 75, 94, 75, 81, 81, 81, 81, 81, - 81, 81, 32, 67, 68, 69, 70, 71, 72, 73, - 96, 94, 75, 75, 75, 75, 75, 75, 75, 33, - 95, 74, 75, 82, 3, 3, 62, 63, 64, 82, - 3, 75 + 56, 57, 58, 59, 60, 61, 62, 66, 75, 80, + 83, 92, 93, 98, 1, 36, 67, 84, 85, 86, + 87, 88, 89, 90, 91, 76, 76, 99, 94, 82, + 9, 10, 11, 12, 13, 14, 15, 3, 31, 76, + 100, 37, 75, 76, 95, 76, 82, 82, 82, 82, + 82, 82, 82, 32, 68, 69, 70, 71, 72, 73, + 74, 97, 95, 76, 76, 76, 76, 76, 76, 76, + 33, 96, 75, 76, 83, 3, 3, 63, 64, 65, + 83, 3, 76 }; #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) @@ -822,7 +831,7 @@ static const unsigned char yystos[] = #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) +#define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT goto yyacceptlab @@ -843,13 +852,13 @@ do \ { \ yychar = (Token); \ yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ + yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ - yyerror ("syntax error: cannot back up");\ + yyerror ("syntax error: cannot back up"); \ YYERROR; \ } \ while (0) @@ -861,7 +870,7 @@ while (0) are run). */ #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ +# define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ @@ -871,9 +880,9 @@ while (0) /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM -# define YYLEX yylex (&yylval, YYLEX_PARAM) +# define YYLEX yylex (&yylval, YYLEX_PARAM) #else -# define YYLEX yylex (&yylval) +# define YYLEX yylex (&yylval) #endif /* Enable debugging if requested. */ @@ -889,93 +898,19 @@ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) - # define YYDSYMPRINT(Args) \ do { \ if (yydebug) \ yysymprint Args; \ } while (0) - -# define YYDSYMPRINTF(Title, Token, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yysymprint (stderr, \ - Token, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) - -/*------------------------------------------------------------------. -| yy_stack_print -- Print the state stack from its BOTTOM up to its | -| TOP (cinluded). | -`------------------------------------------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yy_stack_print (short *bottom, short *top) -#else -static void -yy_stack_print (bottom, top) - short *bottom; - short *top; -#endif -{ - YYFPRINTF (stderr, "Stack now"); - for (/* Nothing. */; bottom <= top; ++bottom) - YYFPRINTF (stderr, " %d", *bottom); - YYFPRINTF (stderr, "\n"); -} - -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) - - -/*------------------------------------------------. -| Report that the YYRULE is going to be reduced. | -`------------------------------------------------*/ - -#if defined (__STDC__) || defined (__cplusplus) -static void -yy_reduce_print (int yyrule) -#else -static void -yy_reduce_print (yyrule) - int yyrule; -#endif -{ - int yyi; - unsigned int yylineno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", - yyrule - 1, yylineno); - /* Print the symbols being reduced, and their result. */ - for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) - YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); - YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); -} - -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (Rule); \ -} while (0) - /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YYDSYMPRINT(Args) -# define YYDSYMPRINTF(Title, Token, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ - /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 @@ -1054,111 +989,102 @@ yystpcpy (yydest, yysrc) #if YYDEBUG -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ +/*-----------------------------. +| Print this symbol on YYOUT. | +`-----------------------------*/ +static void #if defined (__STDC__) || defined (__cplusplus) -static void -yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) +yysymprint (FILE* yyout, int yytype, YYSTYPE yyvalue) #else -static void -yysymprint (yyoutput, yytype, yyvaluep) - FILE *yyoutput; +yysymprint (yyout, yytype, yyvalue) + FILE* yyout; int yytype; - YYSTYPE *yyvaluep; + YYSTYPE yyvalue; #endif { /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + (void) yyvalue; if (yytype < YYNTOKENS) { - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); + YYFPRINTF (yyout, "token %s (", yytname[yytype]); # ifdef YYPRINT - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); + YYPRINT (yyout, yytoknum[yytype], yyvalue); # endif } else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + YYFPRINTF (yyout, "nterm %s (", yytname[yytype]); switch (yytype) { default: break; } - YYFPRINTF (yyoutput, ")"); + YYFPRINTF (yyout, ")"); } +#endif /* YYDEBUG. */ + -#endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ +static void #if defined (__STDC__) || defined (__cplusplus) -static void -yydestruct (int yytype, YYSTYPE *yyvaluep) +yydestruct (int yytype, YYSTYPE yyvalue) #else -static void -yydestruct (yytype, yyvaluep) +yydestruct (yytype, yyvalue) int yytype; - YYSTYPE *yyvaluep; + YYSTYPE yyvalue; #endif { /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + (void) yyvalue; switch (yytype) { - default: break; } } + -/* Prevent warnings from -Wmissing-prototypes. */ +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ + +/* Prevent warning if -Wstrict-prototypes. */ +#ifdef __GNUC__ +# ifdef YYPARSE_PARAM int yyparse (void *YYPARSE_PARAM); # else -int yyparse (); -# endif -#else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ - - - - - - -/*----------. -| yyparse. | -`----------*/ - -#ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) -int yyparse (void *YYPARSE_PARAM) -# else -int yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; # endif -#else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) -int -yyparse (void) -#else -int -yyparse () +#endif -#endif -#endif + + + +int +yyparse (YYPARSE_PARAM_ARG) + YYPARSE_PARAM_DECL { /* The lookahead symbol. */ int yychar; @@ -1166,7 +1092,7 @@ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; -/* Number of syntax errors so far. */ +/* Number of parse errors so far. */ int yynerrs; register int yystate; @@ -1175,7 +1101,7 @@ int yynerrs; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + int yychar1 = 0; /* Three stacks and their tools: `yyss': related to states, @@ -1239,7 +1165,7 @@ int yynerrs; yysetstate: *yyssp = yystate; - if (yyss + yystacksize - 1 <= yyssp) + if (yyssp >= yyss + yystacksize - 1) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; @@ -1271,10 +1197,10 @@ int yynerrs; goto yyoverflowlab; # else /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) + if (yystacksize >= YYMAXDEPTH) goto yyoverflowlab; yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) + if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; { @@ -1300,7 +1226,7 @@ int yynerrs; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); - if (yyss + yystacksize - 1 <= yyssp) + if (yyssp >= yyss + yystacksize - 1) YYABORT; } @@ -1325,28 +1251,39 @@ yybackup: /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* yychar is either YYEMPTY or YYEOF + or a valid token in external form. */ + if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } - if (yychar <= YYEOF) + /* Convert token to internal form (in yychar1) for indexing tables with. */ + + if (yychar <= 0) /* This means end of input. */ { - yychar = yytoken = YYEOF; + yychar1 = 0; + yychar = YYEOF; /* Don't call YYLEX any more. */ + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { - yytoken = YYTRANSLATE (yychar); - YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); + yychar1 = YYTRANSLATE (yychar); + + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ + YYDPRINTF ((stderr, "Next token is ")); + YYDSYMPRINT ((stderr, yychar1, yylval)); + YYDPRINTF ((stderr, "\n")); } - /* If the proper action on seeing token YYTOKEN is to reduce or to + /* If the proper action on seeing token YYCHAR1 is to reduce or to detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + yyn += yychar1; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) @@ -1361,7 +1298,8 @@ yybackup: YYACCEPT; /* Shift the lookahead token. */ - YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) @@ -1407,482 +1345,512 @@ yyreduce: yyval = yyvsp[1-yylen]; - YY_REDUCE_PRINT (yyn); + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn - 1, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] >= 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif switch (yyn) { case 2: -#line 166 "rtfGrammer.y" - { GSRTFstart(CTXT); ;} +#line 167 "rtfGrammer.y" + { GSRTFstart(CTXT); } break; case 3: -#line 166 "rtfGrammer.y" - { GSRTFstop(CTXT); ;} +#line 167 "rtfGrammer.y" + { GSRTFstop(CTXT); } break; case 5: -#line 169 "rtfGrammer.y" - { yyval.number = 1; ;} +#line 170 "rtfGrammer.y" + { yyval.number = 1; } break; case 6: -#line 170 "rtfGrammer.y" - { yyval.number = 2; ;} +#line 171 "rtfGrammer.y" + { yyval.number = 2; } break; case 7: -#line 171 "rtfGrammer.y" - { yyval.number = 3; ;} +#line 172 "rtfGrammer.y" + { yyval.number = 3; } break; case 8: -#line 172 "rtfGrammer.y" - { yyval.number = 4; ;} +#line 173 "rtfGrammer.y" + { yyval.number = 4; } break; case 9: -#line 174 "rtfGrammer.y" - { yyval.number = 1; ;} +#line 175 "rtfGrammer.y" + { yyval.number = 1; } break; case 14: -#line 181 "rtfGrammer.y" - { GSRTFmangleText(CTXT, yyvsp[0].text); free((void *)yyvsp[0].text); ;} +#line 182 "rtfGrammer.y" + { GSRTFmangleText(CTXT, yyvsp[0].text); free((void *)yyvsp[0].text); } break; case 17: -#line 186 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, NO); ;} +#line 187 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, NO); } break; case 18: -#line 186 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, NO); ;} +#line 187 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, NO); } break; case 19: -#line 187 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 188 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 20: -#line 187 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 188 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 21: -#line 188 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 189 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 22: -#line 188 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 189 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 23: -#line 189 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 190 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 24: -#line 189 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 190 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 25: -#line 190 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 191 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 26: -#line 190 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 191 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 27: -#line 191 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 192 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 28: -#line 191 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 192 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 29: -#line 192 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 193 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 30: -#line 192 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 193 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 31: -#line 193 "rtfGrammer.y" - { GSRTFopenBlock(CTXT, YES); ;} +#line 194 "rtfGrammer.y" + { GSRTFopenBlock(CTXT, YES); } break; case 32: -#line 193 "rtfGrammer.y" - { GSRTFcloseBlock(CTXT, YES); ;} +#line 194 "rtfGrammer.y" + { GSRTFcloseBlock(CTXT, YES); } break; case 34: -#line 202 "rtfGrammer.y" +#line 203 "rtfGrammer.y" { int font; if (yyvsp[0].cmd.isEmpty) font = 0; else font = yyvsp[0].cmd.parameter; - GSRTFfontNumber(CTXT, font); ;} + GSRTFfontNumber(CTXT, font); } break; case 35: -#line 209 "rtfGrammer.y" +#line 210 "rtfGrammer.y" { int size; if (yyvsp[0].cmd.isEmpty) size = 24; else size = yyvsp[0].cmd.parameter; - GSRTFfontSize(CTXT, size); ;} + GSRTFfontSize(CTXT, size); } break; case 36: -#line 216 "rtfGrammer.y" +#line 217 "rtfGrammer.y" { int width; if (yyvsp[0].cmd.isEmpty) width = 12240; else width = yyvsp[0].cmd.parameter; - GSRTFpaperWidth(CTXT, width);;} + GSRTFpaperWidth(CTXT, width);} break; case 37: -#line 223 "rtfGrammer.y" +#line 224 "rtfGrammer.y" { int height; if (yyvsp[0].cmd.isEmpty) height = 15840; else height = yyvsp[0].cmd.parameter; - GSRTFpaperHeight(CTXT, height);;} + GSRTFpaperHeight(CTXT, height);} break; case 38: -#line 230 "rtfGrammer.y" +#line 231 "rtfGrammer.y" { int margin; if (yyvsp[0].cmd.isEmpty) margin = 1800; else margin = yyvsp[0].cmd.parameter; - GSRTFmarginLeft(CTXT, margin);;} + GSRTFmarginLeft(CTXT, margin);} break; case 39: -#line 237 "rtfGrammer.y" +#line 238 "rtfGrammer.y" { int margin; if (yyvsp[0].cmd.isEmpty) margin = 1800; else margin = yyvsp[0].cmd.parameter; - GSRTFmarginRight(CTXT, margin); ;} + GSRTFmarginRight(CTXT, margin); } break; case 40: -#line 244 "rtfGrammer.y" +#line 245 "rtfGrammer.y" { int margin; if (yyvsp[0].cmd.isEmpty) margin = 1440; else margin = yyvsp[0].cmd.parameter; - GSRTFmarginTop(CTXT, margin); ;} + GSRTFmarginTop(CTXT, margin); } break; case 41: -#line 251 "rtfGrammer.y" +#line 252 "rtfGrammer.y" { int margin; if (yyvsp[0].cmd.isEmpty) margin = 1440; else margin = yyvsp[0].cmd.parameter; - GSRTFmarginButtom(CTXT, margin); ;} + GSRTFmarginButtom(CTXT, margin); } break; case 42: -#line 258 "rtfGrammer.y" +#line 259 "rtfGrammer.y" { int indent; if (yyvsp[0].cmd.isEmpty) indent = 0; else indent = yyvsp[0].cmd.parameter; - GSRTFfirstLineIndent(CTXT, indent); ;} + GSRTFfirstLineIndent(CTXT, indent); } break; case 43: -#line 265 "rtfGrammer.y" +#line 266 "rtfGrammer.y" { int indent; if (yyvsp[0].cmd.isEmpty) indent = 0; else indent = yyvsp[0].cmd.parameter; - GSRTFleftIndent(CTXT, indent);;} + GSRTFleftIndent(CTXT, indent);} break; case 44: -#line 272 "rtfGrammer.y" +#line 273 "rtfGrammer.y" { int indent; if (yyvsp[0].cmd.isEmpty) indent = 0; else indent = yyvsp[0].cmd.parameter; - GSRTFrightIndent(CTXT, indent);;} + GSRTFrightIndent(CTXT, indent);} break; case 45: -#line 279 "rtfGrammer.y" +#line 280 "rtfGrammer.y" { int location; if (yyvsp[0].cmd.isEmpty) location = 0; else location = yyvsp[0].cmd.parameter; - GSRTFtabstop(CTXT, location);;} + GSRTFtabstop(CTXT, location);} break; case 46: -#line 286 "rtfGrammer.y" - { GSRTFalignCenter(CTXT); ;} +#line 287 "rtfGrammer.y" + { GSRTFalignCenter(CTXT); } break; case 47: -#line 287 "rtfGrammer.y" - { GSRTFalignJustified(CTXT); ;} +#line 288 "rtfGrammer.y" + { GSRTFalignJustified(CTXT); } break; case 48: -#line 288 "rtfGrammer.y" - { GSRTFalignLeft(CTXT); ;} +#line 289 "rtfGrammer.y" + { GSRTFalignLeft(CTXT); } break; case 49: -#line 289 "rtfGrammer.y" - { GSRTFalignRight(CTXT); ;} +#line 290 "rtfGrammer.y" + { GSRTFalignRight(CTXT); } break; case 50: -#line 290 "rtfGrammer.y" +#line 291 "rtfGrammer.y" { int space; if (yyvsp[0].cmd.isEmpty) space = 0; else space = yyvsp[0].cmd.parameter; - GSRTFspaceAbove(CTXT, space); ;} + GSRTFspaceAbove(CTXT, space); } break; case 51: -#line 297 "rtfGrammer.y" - { GSRTFlineSpace(CTXT, yyvsp[0].cmd.parameter); ;} +#line 298 "rtfGrammer.y" + { GSRTFlineSpace(CTXT, yyvsp[0].cmd.parameter); } break; case 52: -#line 298 "rtfGrammer.y" - { GSRTFdefaultParagraph(CTXT); ;} +#line 299 "rtfGrammer.y" + { GSRTFdefaultParagraph(CTXT); } break; case 53: -#line 299 "rtfGrammer.y" - { GSRTFstyle(CTXT, yyvsp[0].cmd.parameter); ;} +#line 300 "rtfGrammer.y" + { GSRTFstyle(CTXT, yyvsp[0].cmd.parameter); } break; case 54: -#line 300 "rtfGrammer.y" +#line 301 "rtfGrammer.y" { int color; if (yyvsp[0].cmd.isEmpty) color = 0; else color = yyvsp[0].cmd.parameter; - GSRTFcolorbg(CTXT, color); ;} + GSRTFcolorbg(CTXT, color); } break; case 55: -#line 307 "rtfGrammer.y" +#line 308 "rtfGrammer.y" { int color; if (yyvsp[0].cmd.isEmpty) color = 0; else color = yyvsp[0].cmd.parameter; - GSRTFcolorfg(CTXT, color); ;} + GSRTFcolorfg(CTXT, color); } break; case 56: -#line 314 "rtfGrammer.y" +#line 315 "rtfGrammer.y" { int script; if (yyvsp[0].cmd.isEmpty) script = 6; else script = yyvsp[0].cmd.parameter; - GSRTFsubscript(CTXT, script); ;} + GSRTFsubscript(CTXT, script); } break; case 57: -#line 321 "rtfGrammer.y" +#line 322 "rtfGrammer.y" { int script; if (yyvsp[0].cmd.isEmpty) script = 6; else script = yyvsp[0].cmd.parameter; - GSRTFsuperscript(CTXT, script); ;} + GSRTFsuperscript(CTXT, script); } break; case 58: -#line 328 "rtfGrammer.y" +#line 329 "rtfGrammer.y" { BOOL on; if (yyvsp[0].cmd.isEmpty || yyvsp[0].cmd.parameter) on = YES; else on = NO; - GSRTFbold(CTXT, on); ;} + GSRTFbold(CTXT, on); } break; case 59: -#line 335 "rtfGrammer.y" +#line 336 "rtfGrammer.y" { BOOL on; if (yyvsp[0].cmd.isEmpty || yyvsp[0].cmd.parameter) on = YES; else on = NO; - GSRTFitalic(CTXT, on); ;} + GSRTFitalic(CTXT, on); } break; case 60: -#line 342 "rtfGrammer.y" +#line 343 "rtfGrammer.y" { BOOL on; if (yyvsp[0].cmd.isEmpty || yyvsp[0].cmd.parameter) on = YES; else on = NO; - GSRTFunderline(CTXT, on); ;} + GSRTFunderline(CTXT, on); } break; case 61: -#line 349 "rtfGrammer.y" - { GSRTFunderline(CTXT, NO); ;} +#line 350 "rtfGrammer.y" + { GSRTFunderline(CTXT, NO); } break; case 62: -#line 350 "rtfGrammer.y" - { GSRTFdefaultCharacterStyle(CTXT); ;} +#line 351 "rtfGrammer.y" + { GSRTFunicode(CTXT, yyvsp[0].cmd.parameter); } break; case 63: -#line 351 "rtfGrammer.y" - { GSRTFparagraph(CTXT); ;} +#line 352 "rtfGrammer.y" + { GSRTFdefaultCharacterStyle(CTXT); } break; case 64: -#line 352 "rtfGrammer.y" - { GSRTFparagraph(CTXT); ;} +#line 353 "rtfGrammer.y" + { GSRTFparagraph(CTXT); } break; case 65: -#line 353 "rtfGrammer.y" - { GSRTFgenericRTFcommand(CTXT, yyvsp[0].cmd); ;} +#line 354 "rtfGrammer.y" + { GSRTFparagraph(CTXT); } break; - case 70: -#line 367 "rtfGrammer.y" - { free((void *)yyvsp[-1].text);;} + case 66: +#line 355 "rtfGrammer.y" + { GSRTFgenericRTFcommand(CTXT, yyvsp[0].cmd); } break; case 71: -#line 372 "rtfGrammer.y" - { GSRTFregisterFont(CTXT, yyvsp[0].text, yyvsp[-2].number, yyvsp[-3].cmd.parameter); - free((void *)yyvsp[0].text); ;} +#line 369 "rtfGrammer.y" + { free((void *)yyvsp[-1].text);} break; - case 77: -#line 385 "rtfGrammer.y" - { yyval.number = RTFfamilyNil - RTFfamilyNil; ;} + case 72: +#line 374 "rtfGrammer.y" + { GSRTFregisterFont(CTXT, yyvsp[0].text, yyvsp[-2].number, yyvsp[-3].cmd.parameter); + free((void *)yyvsp[0].text); } break; case 78: -#line 386 "rtfGrammer.y" - { yyval.number = RTFfamilyRoman - RTFfamilyNil; ;} +#line 387 "rtfGrammer.y" + { yyval.number = RTFfamilyNil - RTFfamilyNil; } break; case 79: -#line 387 "rtfGrammer.y" - { yyval.number = RTFfamilySwiss - RTFfamilyNil; ;} +#line 388 "rtfGrammer.y" + { yyval.number = RTFfamilyRoman - RTFfamilyNil; } break; case 80: -#line 388 "rtfGrammer.y" - { yyval.number = RTFfamilyModern - RTFfamilyNil; ;} +#line 389 "rtfGrammer.y" + { yyval.number = RTFfamilySwiss - RTFfamilyNil; } break; case 81: -#line 389 "rtfGrammer.y" - { yyval.number = RTFfamilyScript - RTFfamilyNil; ;} +#line 390 "rtfGrammer.y" + { yyval.number = RTFfamilyModern - RTFfamilyNil; } break; case 82: -#line 390 "rtfGrammer.y" - { yyval.number = RTFfamilyDecor - RTFfamilyNil; ;} +#line 391 "rtfGrammer.y" + { yyval.number = RTFfamilyScript - RTFfamilyNil; } break; case 83: -#line 391 "rtfGrammer.y" - { yyval.number = RTFfamilyTech - RTFfamilyNil; ;} +#line 392 "rtfGrammer.y" + { yyval.number = RTFfamilyDecor - RTFfamilyNil; } break; - case 87: -#line 408 "rtfGrammer.y" - { - GSRTFaddColor(CTXT, yyvsp[-3].cmd.parameter, yyvsp[-2].cmd.parameter, yyvsp[-1].cmd.parameter); - free((void *)yyvsp[0].text); - ;} + case 84: +#line 393 "rtfGrammer.y" + { yyval.number = RTFfamilyTech - RTFfamilyNil; } break; case 88: -#line 413 "rtfGrammer.y" +#line 410 "rtfGrammer.y" + { + GSRTFaddColor(CTXT, yyvsp[-3].cmd.parameter, yyvsp[-2].cmd.parameter, yyvsp[-1].cmd.parameter); + free((void *)yyvsp[0].text); + } + break; + + case 89: +#line 415 "rtfGrammer.y" { GSRTFaddDefaultColor(CTXT); free((void *)yyvsp[0].text); - ;} + } break; } -/* Line 991 of yacc.c. */ -#line 1879 "rtfGrammer.tab.c" +/* Line 1016 of /usr/share/bison/yacc.c. */ +#line 1839 "rtfGrammer.tab.c" yyvsp -= yylen; yyssp -= yylen; - YY_STACK_PRINT (yyss, yyssp); +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif *++yyvsp = yyval; @@ -1927,12 +1895,12 @@ yyerrlab: yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) yysize += yystrlen (yytname[yyx]) + 15, yycount++; - yysize += yystrlen ("syntax error, unexpected ") + 1; + yysize += yystrlen ("parse error, unexpected ") + 1; yysize += yystrlen (yytname[yytype]); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { - char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); yyp = yystpcpy (yyp, yytname[yytype]); if (yycount < 5) @@ -1953,15 +1921,19 @@ yyerrlab: YYSTACK_FREE (yymsg); } else - yyerror ("syntax error; also virtual memory exhausted"); + yyerror ("parse error; also virtual memory exhausted"); } else #endif /* YYERROR_VERBOSE */ - yyerror ("syntax error"); + yyerror ("parse error"); } + goto yyerrlab1; - +/*----------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action. | +`----------------------------------------------------*/ +yyerrlab1: if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an @@ -1973,45 +1945,28 @@ yyerrlab: /* Pop the error token. */ YYPOPSTACK; /* Pop the rest of the stack. */ - while (yyss < yyssp) + while (yyssp > yyss) { - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[*yyssp], yyvsp); + YYDPRINTF ((stderr, "Error: popping ")); + YYDSYMPRINT ((stderr, + yystos[*yyssp], + *yyvsp)); + YYDPRINTF ((stderr, "\n")); + yydestruct (yystos[*yyssp], *yyvsp); YYPOPSTACK; } YYABORT; } - YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); - yydestruct (yytoken, &yylval); + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); + yydestruct (yychar1, yylval); yychar = YYEMPTY; - } /* Else will try to reuse lookahead token after shifting the error token. */ - goto yyerrlab2; - -/*----------------------------------------------------. -| yyerrlab1 -- error raised explicitly by an action. | -`----------------------------------------------------*/ -yyerrlab1: - - /* Suppress GCC warning that yyerrlab1 is unused when no action - invokes YYERROR. */ -#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) - __attribute__ ((__unused__)) -#endif - - - goto yyerrlab2; - - -/*---------------------------------------------------------------. -| yyerrlab2 -- pop states until the error token can be shifted. | -`---------------------------------------------------------------*/ -yyerrlab2: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) @@ -2032,12 +1987,26 @@ yyerrlab2: if (yyssp == yyss) YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[yystate], yyvsp); + YYDPRINTF ((stderr, "Error: popping ")); + YYDSYMPRINT ((stderr, + yystos[*yyssp], *yyvsp)); + YYDPRINTF ((stderr, "\n")); + + yydestruct (yystos[yystate], *yyvsp); yyvsp--; yystate = *--yyssp; - YY_STACK_PRINT (yyss, yyssp); + +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif } if (yyn == YYFINAL) @@ -2085,7 +2054,7 @@ yyreturn: } -#line 425 "rtfGrammer.y" +#line 427 "rtfGrammer.y" /* some C code here */ diff --git a/TextConverters/RTF/rtfGrammer.tab.h b/TextConverters/RTF/rtfGrammer.tab.h index 8ab56ff2e..a60aef4e4 100644 --- a/TextConverters/RTF/rtfGrammer.tab.h +++ b/TextConverters/RTF/rtfGrammer.tab.h @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 1.875. */ +/* A Bison parser, made from rtfGrammer.y, by GNU bison 1.75. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -23,6 +23,9 @@ This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ +#ifndef BISON_RTFGRAMMER_TAB_H +# define BISON_RTFGRAMMER_TAB_H + /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE @@ -85,21 +88,22 @@ RTFitalic = 311, RTFunderline = 312, RTFunderlineStop = 313, - RTFsubscript = 314, - RTFsuperscript = 315, - RTFtabstop = 316, - RTFfcharset = 317, - RTFfprq = 318, - RTFcpg = 319, - RTFOtherStatement = 320, - RTFfontListStart = 321, - RTFfamilyNil = 322, - RTFfamilyRoman = 323, - RTFfamilySwiss = 324, - RTFfamilyModern = 325, - RTFfamilyScript = 326, - RTFfamilyDecor = 327, - RTFfamilyTech = 328 + RTFunichar = 314, + RTFsubscript = 315, + RTFsuperscript = 316, + RTFtabstop = 317, + RTFfcharset = 318, + RTFfprq = 319, + RTFcpg = 320, + RTFOtherStatement = 321, + RTFfontListStart = 322, + RTFfamilyNil = 323, + RTFfamilyRoman = 324, + RTFfamilySwiss = 325, + RTFfamilyModern = 326, + RTFfamilyScript = 327, + RTFfamilyDecor = 328, + RTFfamilyTech = 329 }; #endif #define RTFtext 258 @@ -158,40 +162,40 @@ #define RTFitalic 311 #define RTFunderline 312 #define RTFunderlineStop 313 -#define RTFsubscript 314 -#define RTFsuperscript 315 -#define RTFtabstop 316 -#define RTFfcharset 317 -#define RTFfprq 318 -#define RTFcpg 319 -#define RTFOtherStatement 320 -#define RTFfontListStart 321 -#define RTFfamilyNil 322 -#define RTFfamilyRoman 323 -#define RTFfamilySwiss 324 -#define RTFfamilyModern 325 -#define RTFfamilyScript 326 -#define RTFfamilyDecor 327 -#define RTFfamilyTech 328 +#define RTFunichar 314 +#define RTFsubscript 315 +#define RTFsuperscript 316 +#define RTFtabstop 317 +#define RTFfcharset 318 +#define RTFfprq 319 +#define RTFcpg 320 +#define RTFOtherStatement 321 +#define RTFfontListStart 322 +#define RTFfamilyNil 323 +#define RTFfamilyRoman 324 +#define RTFfamilySwiss 325 +#define RTFfamilyModern 326 +#define RTFfamilyScript 327 +#define RTFfamilyDecor 328 +#define RTFfamilyTech 329 -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +#ifndef YYSTYPE #line 77 "rtfGrammer.y" -typedef union YYSTYPE { +typedef union { int number; const char *text; RTFcmd cmd; -} YYSTYPE; -/* Line 1248 of yacc.c. */ -#line 188 "rtfGrammer.tab.h" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 +} yystype; +/* Line 1281 of /usr/share/bison/yacc.c. */ +#line 194 "rtfGrammer.tab.h" +# define YYSTYPE yystype #endif +#endif /* not BISON_RTFGRAMMER_TAB_H */