3197 lines
110 KiB
C
3197 lines
110 KiB
C
/* A Bison parser, made by GNU Bison 3.8.2. */
|
|
|
|
/* Bison implementation for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
|
|
Inc.
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
|
|
/* As a special exception, you may create a larger work that contains
|
|
part or all of the Bison parser skeleton and distribute that work
|
|
under terms of your choice, so long as that work isn't itself a
|
|
parser generator using the skeleton or a modified version thereof
|
|
as a parser skeleton. Alternatively, if you modify or redistribute
|
|
the parser skeleton itself, you may (at your option) remove this
|
|
special exception, which will cause the skeleton and the resulting
|
|
Bison output files to be licensed under the GNU General Public
|
|
License without this special exception.
|
|
|
|
This special exception was added by the Free Software Foundation in
|
|
version 2.2 of Bison. */
|
|
|
|
/* C LALR(1) parser skeleton written by Richard Stallman, by
|
|
simplifying the original so-called "semantic" parser. */
|
|
|
|
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
|
especially those whose name start with YY_ or yy_. They are
|
|
private implementation details that can be changed or removed. */
|
|
|
|
/* All symbols defined below should begin with yy or YY, to avoid
|
|
infringing on user name space. This should be done even for local
|
|
variables, as they might otherwise be expanded by user macros.
|
|
There are some unavoidable exceptions within include files to
|
|
define necessary library symbols; they are noted "INFRINGES ON
|
|
USER NAME SPACE" below. */
|
|
|
|
/* Identify Bison output, and Bison version. */
|
|
#define YYBISON 30802
|
|
|
|
/* Bison version string. */
|
|
#define YYBISON_VERSION "3.8.2"
|
|
|
|
/* Skeleton name. */
|
|
#define YYSKELETON_NAME "yacc.c"
|
|
|
|
/* Pure parsers. */
|
|
#define YYPURE 0
|
|
|
|
/* Push parsers. */
|
|
#define YYPUSH 0
|
|
|
|
/* Pull parsers. */
|
|
#define YYPULL 1
|
|
|
|
|
|
|
|
|
|
/* First part of user prologue. */
|
|
#line 61 "PDParser.y"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "PDNestedText.h"
|
|
#include "PDParserDS.c"
|
|
|
|
extern char* startProgram;
|
|
extern char* endProgram;
|
|
extern char* startVerbatim;
|
|
extern char* endVerbatim;
|
|
|
|
#define YYERROR_VERBOSE
|
|
#define YYDEBUG 1
|
|
|
|
extern void yyerror(const char *msg);
|
|
extern int yylex();
|
|
|
|
|
|
#line 90 "PDParser.tab.c"
|
|
|
|
# ifndef YY_CAST
|
|
# ifdef __cplusplus
|
|
# define YY_CAST(Type, Val) static_cast<Type> (Val)
|
|
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
|
|
# else
|
|
# define YY_CAST(Type, Val) ((Type) (Val))
|
|
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
|
|
# endif
|
|
# endif
|
|
# ifndef YY_NULLPTR
|
|
# if defined __cplusplus
|
|
# if 201103L <= __cplusplus
|
|
# define YY_NULLPTR nullptr
|
|
# else
|
|
# define YY_NULLPTR 0
|
|
# endif
|
|
# else
|
|
# define YY_NULLPTR ((void*)0)
|
|
# endif
|
|
# endif
|
|
|
|
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 0
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token kinds. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
YYEMPTY = -2,
|
|
YYEOF = 0, /* "end of file" */
|
|
YYerror = 256, /* error */
|
|
YYUNDEF = 257, /* "invalid token" */
|
|
OPEN = 258, /* OPEN */
|
|
CLOSE = 259, /* CLOSE */
|
|
EPAR = 260, /* EPAR */
|
|
DEFLINE = 261, /* DEFLINE */
|
|
LETTER = 262, /* LETTER */
|
|
DIGIT = 263, /* DIGIT */
|
|
OTHER = 264, /* OTHER */
|
|
TILDE = 265, /* TILDE */
|
|
STAR = 266, /* STAR */
|
|
QUOTE = 267, /* QUOTE */
|
|
BLANKTILDE = 268, /* BLANKTILDE */
|
|
BLANKSTAR = 269, /* BLANKSTAR */
|
|
BLANKQUOTE = 270, /* BLANKQUOTE */
|
|
DUS = 271, /* DUS */
|
|
BLANKDUS = 272, /* BLANKDUS */
|
|
HEAD1 = 273, /* HEAD1 */
|
|
HEAD2 = 274, /* HEAD2 */
|
|
HEAD3 = 275, /* HEAD3 */
|
|
HEAD4 = 276, /* HEAD4 */
|
|
HEAD5 = 277, /* HEAD5 */
|
|
ENUM1 = 278, /* ENUM1 */
|
|
ENUM2 = 279, /* ENUM2 */
|
|
BULLET1 = 280, /* BULLET1 */
|
|
BULLET2 = 281, /* BULLET2 */
|
|
FOLLOW1 = 282, /* FOLLOW1 */
|
|
FOLLOW2 = 283, /* FOLLOW2 */
|
|
DISPLAY = 284, /* DISPLAY */
|
|
FIGURE = 285, /* FIGURE */
|
|
STARTREF = 286, /* STARTREF */
|
|
REF = 287, /* REF */
|
|
VCHAR = 288, /* VCHAR */
|
|
VERBATIM = 289, /* VERBATIM */
|
|
ENDVERBATIM = 290, /* ENDVERBATIM */
|
|
PARFORMAT = 291, /* PARFORMAT */
|
|
CHARFORMAT = 292, /* CHARFORMAT */
|
|
TTFORMAT = 293 /* TTFORMAT */
|
|
};
|
|
typedef enum yytokentype yytoken_kind_t;
|
|
#endif
|
|
/* Token kinds. */
|
|
#define YYEMPTY -2
|
|
#define YYEOF 0
|
|
#define YYerror 256
|
|
#define YYUNDEF 257
|
|
#define OPEN 258
|
|
#define CLOSE 259
|
|
#define EPAR 260
|
|
#define DEFLINE 261
|
|
#define LETTER 262
|
|
#define DIGIT 263
|
|
#define OTHER 264
|
|
#define TILDE 265
|
|
#define STAR 266
|
|
#define QUOTE 267
|
|
#define BLANKTILDE 268
|
|
#define BLANKSTAR 269
|
|
#define BLANKQUOTE 270
|
|
#define DUS 271
|
|
#define BLANKDUS 272
|
|
#define HEAD1 273
|
|
#define HEAD2 274
|
|
#define HEAD3 275
|
|
#define HEAD4 276
|
|
#define HEAD5 277
|
|
#define ENUM1 278
|
|
#define ENUM2 279
|
|
#define BULLET1 280
|
|
#define BULLET2 281
|
|
#define FOLLOW1 282
|
|
#define FOLLOW2 283
|
|
#define DISPLAY 284
|
|
#define FIGURE 285
|
|
#define STARTREF 286
|
|
#define REF 287
|
|
#define VCHAR 288
|
|
#define VERBATIM 289
|
|
#define ENDVERBATIM 290
|
|
#define PARFORMAT 291
|
|
#define CHARFORMAT 292
|
|
#define TTFORMAT 293
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
typedef int YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
|
|
int yyparse (void);
|
|
|
|
|
|
|
|
/* Symbol kind. */
|
|
enum yysymbol_kind_t
|
|
{
|
|
YYSYMBOL_YYEMPTY = -2,
|
|
YYSYMBOL_YYEOF = 0, /* "end of file" */
|
|
YYSYMBOL_YYerror = 1, /* error */
|
|
YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
|
|
YYSYMBOL_OPEN = 3, /* OPEN */
|
|
YYSYMBOL_CLOSE = 4, /* CLOSE */
|
|
YYSYMBOL_EPAR = 5, /* EPAR */
|
|
YYSYMBOL_DEFLINE = 6, /* DEFLINE */
|
|
YYSYMBOL_LETTER = 7, /* LETTER */
|
|
YYSYMBOL_DIGIT = 8, /* DIGIT */
|
|
YYSYMBOL_OTHER = 9, /* OTHER */
|
|
YYSYMBOL_TILDE = 10, /* TILDE */
|
|
YYSYMBOL_STAR = 11, /* STAR */
|
|
YYSYMBOL_QUOTE = 12, /* QUOTE */
|
|
YYSYMBOL_BLANKTILDE = 13, /* BLANKTILDE */
|
|
YYSYMBOL_BLANKSTAR = 14, /* BLANKSTAR */
|
|
YYSYMBOL_BLANKQUOTE = 15, /* BLANKQUOTE */
|
|
YYSYMBOL_DUS = 16, /* DUS */
|
|
YYSYMBOL_BLANKDUS = 17, /* BLANKDUS */
|
|
YYSYMBOL_HEAD1 = 18, /* HEAD1 */
|
|
YYSYMBOL_HEAD2 = 19, /* HEAD2 */
|
|
YYSYMBOL_HEAD3 = 20, /* HEAD3 */
|
|
YYSYMBOL_HEAD4 = 21, /* HEAD4 */
|
|
YYSYMBOL_HEAD5 = 22, /* HEAD5 */
|
|
YYSYMBOL_ENUM1 = 23, /* ENUM1 */
|
|
YYSYMBOL_ENUM2 = 24, /* ENUM2 */
|
|
YYSYMBOL_BULLET1 = 25, /* BULLET1 */
|
|
YYSYMBOL_BULLET2 = 26, /* BULLET2 */
|
|
YYSYMBOL_FOLLOW1 = 27, /* FOLLOW1 */
|
|
YYSYMBOL_FOLLOW2 = 28, /* FOLLOW2 */
|
|
YYSYMBOL_DISPLAY = 29, /* DISPLAY */
|
|
YYSYMBOL_FIGURE = 30, /* FIGURE */
|
|
YYSYMBOL_STARTREF = 31, /* STARTREF */
|
|
YYSYMBOL_REF = 32, /* REF */
|
|
YYSYMBOL_VCHAR = 33, /* VCHAR */
|
|
YYSYMBOL_VERBATIM = 34, /* VERBATIM */
|
|
YYSYMBOL_ENDVERBATIM = 35, /* ENDVERBATIM */
|
|
YYSYMBOL_PARFORMAT = 36, /* PARFORMAT */
|
|
YYSYMBOL_CHARFORMAT = 37, /* CHARFORMAT */
|
|
YYSYMBOL_TTFORMAT = 38, /* TTFORMAT */
|
|
YYSYMBOL_39_ = 39, /* '"' */
|
|
YYSYMBOL_40_ = 40, /* '*' */
|
|
YYSYMBOL_41_ = 41, /* '~' */
|
|
YYSYMBOL_42_ = 42, /* '[' */
|
|
YYSYMBOL_43_ = 43, /* ']' */
|
|
YYSYMBOL_44_ = 44, /* ':' */
|
|
YYSYMBOL_45_ = 45, /* ' ' */
|
|
YYSYMBOL_46_ = 46, /* '\\' */
|
|
YYSYMBOL_47_ = 47, /* '.' */
|
|
YYSYMBOL_YYACCEPT = 48, /* $accept */
|
|
YYSYMBOL_document = 49, /* document */
|
|
YYSYMBOL_doc = 50, /* doc */
|
|
YYSYMBOL_doc_section = 51, /* doc_section */
|
|
YYSYMBOL_program_section = 52, /* program_section */
|
|
YYSYMBOL_53_1 = 53, /* $@1 */
|
|
YYSYMBOL_chars = 54, /* chars */
|
|
YYSYMBOL_elements = 55, /* elements */
|
|
YYSYMBOL_definitions = 56, /* definitions */
|
|
YYSYMBOL_defs = 57, /* defs */
|
|
YYSYMBOL_defline = 58, /* defline */
|
|
YYSYMBOL_par_format = 59, /* par_format */
|
|
YYSYMBOL_char_format = 60, /* char_format */
|
|
YYSYMBOL_special_char_def = 61, /* special_char_def */
|
|
YYSYMBOL_space = 62, /* space */
|
|
YYSYMBOL_ident = 63, /* ident */
|
|
YYSYMBOL_element = 64, /* element */
|
|
YYSYMBOL_standard_paragraph = 65, /* standard_paragraph */
|
|
YYSYMBOL_heading = 66, /* heading */
|
|
YYSYMBOL_heading1 = 67, /* heading1 */
|
|
YYSYMBOL_heading2 = 68, /* heading2 */
|
|
YYSYMBOL_heading3 = 69, /* heading3 */
|
|
YYSYMBOL_heading4 = 70, /* heading4 */
|
|
YYSYMBOL_heading5 = 71, /* heading5 */
|
|
YYSYMBOL_verb = 72, /* verb */
|
|
YYSYMBOL_verb_start = 73, /* verb_start */
|
|
YYSYMBOL_verb_end = 74, /* verb_end */
|
|
YYSYMBOL_vchars = 75, /* vchars */
|
|
YYSYMBOL_display = 76, /* display */
|
|
YYSYMBOL_figure = 77, /* figure */
|
|
YYSYMBOL_optional_caption = 78, /* optional_caption */
|
|
YYSYMBOL_figure_text = 79, /* figure_text */
|
|
YYSYMBOL_special_paragraph = 80, /* special_paragraph */
|
|
YYSYMBOL_list = 81, /* list */
|
|
YYSYMBOL_itemized1 = 82, /* itemized1 */
|
|
YYSYMBOL_bulletitem1 = 83, /* bulletitem1 */
|
|
YYSYMBOL_bulletpar1 = 84, /* bulletpar1 */
|
|
YYSYMBOL_followup1 = 85, /* followup1 */
|
|
YYSYMBOL_enum1 = 86, /* enum1 */
|
|
YYSYMBOL_enumitem1 = 87, /* enumitem1 */
|
|
YYSYMBOL_enumpar1 = 88, /* enumpar1 */
|
|
YYSYMBOL_list2 = 89, /* list2 */
|
|
YYSYMBOL_itemized2 = 90, /* itemized2 */
|
|
YYSYMBOL_bulletitem2 = 91, /* bulletitem2 */
|
|
YYSYMBOL_bulletpar2 = 92, /* bulletpar2 */
|
|
YYSYMBOL_followup2 = 93, /* followup2 */
|
|
YYSYMBOL_enum2 = 94, /* enum2 */
|
|
YYSYMBOL_enumitem2 = 95, /* enumitem2 */
|
|
YYSYMBOL_enumpar2 = 96, /* enumpar2 */
|
|
YYSYMBOL_paragraph_rest = 97, /* paragraph_rest */
|
|
YYSYMBOL_text = 98, /* text */
|
|
YYSYMBOL_netext = 99, /* netext */
|
|
YYSYMBOL_start_elem = 100, /* start_elem */
|
|
YYSYMBOL_follow_elem = 101, /* follow_elem */
|
|
YYSYMBOL_text_char = 102, /* text_char */
|
|
YYSYMBOL_ftext_char = 103, /* ftext_char */
|
|
YYSYMBOL_emphasized = 104, /* emphasized */
|
|
YYSYMBOL_bold_face = 105, /* bold_face */
|
|
YYSYMBOL_typewriter = 106, /* typewriter */
|
|
YYSYMBOL_unemph_list = 107, /* unemph_list */
|
|
YYSYMBOL_untt_list = 108, /* untt_list */
|
|
YYSYMBOL_unemph = 109, /* unemph */
|
|
YYSYMBOL_untt = 110, /* untt */
|
|
YYSYMBOL_unbold_list = 111, /* unbold_list */
|
|
YYSYMBOL_unbold = 112, /* unbold */
|
|
YYSYMBOL_unboldemph_list = 113, /* unboldemph_list */
|
|
YYSYMBOL_unboldemph = 114, /* unboldemph */
|
|
YYSYMBOL_plain_list = 115, /* plain_list */
|
|
YYSYMBOL_plain = 116, /* plain */
|
|
YYSYMBOL_special_char_format = 117, /* special_char_format */
|
|
YYSYMBOL_bracketed = 118, /* bracketed */
|
|
YYSYMBOL_btext = 119, /* btext */
|
|
YYSYMBOL_bracketed2 = 120, /* bracketed2 */
|
|
YYSYMBOL_btext2 = 121, /* btext2 */
|
|
YYSYMBOL_annotations = 122 /* annotations */
|
|
};
|
|
typedef enum yysymbol_kind_t yysymbol_kind_t;
|
|
|
|
|
|
|
|
|
|
#ifdef short
|
|
# undef short
|
|
#endif
|
|
|
|
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
|
|
<limits.h> and (if available) <stdint.h> are included
|
|
so that the code can choose integer types of a good width. */
|
|
|
|
#ifndef __PTRDIFF_MAX__
|
|
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
|
|
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
|
|
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define YY_STDINT_H
|
|
# endif
|
|
#endif
|
|
|
|
/* Narrow types that promote to a signed type and that can represent a
|
|
signed or unsigned integer of at least N bits. In tables they can
|
|
save space and decrease cache pressure. Promoting to a signed type
|
|
helps avoid bugs in integer arithmetic. */
|
|
|
|
#ifdef __INT_LEAST8_MAX__
|
|
typedef __INT_LEAST8_TYPE__ yytype_int8;
|
|
#elif defined YY_STDINT_H
|
|
typedef int_least8_t yytype_int8;
|
|
#else
|
|
typedef signed char yytype_int8;
|
|
#endif
|
|
|
|
#ifdef __INT_LEAST16_MAX__
|
|
typedef __INT_LEAST16_TYPE__ yytype_int16;
|
|
#elif defined YY_STDINT_H
|
|
typedef int_least16_t yytype_int16;
|
|
#else
|
|
typedef short yytype_int16;
|
|
#endif
|
|
|
|
/* Work around bug in HP-UX 11.23, which defines these macros
|
|
incorrectly for preprocessor constants. This workaround can likely
|
|
be removed in 2023, as HPE has promised support for HP-UX 11.23
|
|
(aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
|
|
<https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
|
|
#ifdef __hpux
|
|
# undef UINT_LEAST8_MAX
|
|
# undef UINT_LEAST16_MAX
|
|
# define UINT_LEAST8_MAX 255
|
|
# define UINT_LEAST16_MAX 65535
|
|
#endif
|
|
|
|
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
|
|
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
|
|
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
|
|
&& UINT_LEAST8_MAX <= INT_MAX)
|
|
typedef uint_least8_t yytype_uint8;
|
|
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
|
|
typedef unsigned char yytype_uint8;
|
|
#else
|
|
typedef short yytype_uint8;
|
|
#endif
|
|
|
|
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
|
|
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
|
|
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
|
|
&& UINT_LEAST16_MAX <= INT_MAX)
|
|
typedef uint_least16_t yytype_uint16;
|
|
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
|
|
typedef unsigned short yytype_uint16;
|
|
#else
|
|
typedef int yytype_uint16;
|
|
#endif
|
|
|
|
#ifndef YYPTRDIFF_T
|
|
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
|
|
# define YYPTRDIFF_T __PTRDIFF_TYPE__
|
|
# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
|
|
# elif defined PTRDIFF_MAX
|
|
# ifndef ptrdiff_t
|
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
|
# endif
|
|
# define YYPTRDIFF_T ptrdiff_t
|
|
# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
|
|
# else
|
|
# define YYPTRDIFF_T long
|
|
# define YYPTRDIFF_MAXIMUM LONG_MAX
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef YYSIZE_T
|
|
# ifdef __SIZE_TYPE__
|
|
# define YYSIZE_T __SIZE_TYPE__
|
|
# elif defined size_t
|
|
# define YYSIZE_T size_t
|
|
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
|
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define YYSIZE_T size_t
|
|
# else
|
|
# define YYSIZE_T unsigned
|
|
# endif
|
|
#endif
|
|
|
|
#define YYSIZE_MAXIMUM \
|
|
YY_CAST (YYPTRDIFF_T, \
|
|
(YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
|
|
? YYPTRDIFF_MAXIMUM \
|
|
: YY_CAST (YYSIZE_T, -1)))
|
|
|
|
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
|
|
|
|
|
|
/* Stored state numbers (used for stacks). */
|
|
typedef yytype_int16 yy_state_t;
|
|
|
|
/* State numbers in computations. */
|
|
typedef int yy_state_fast_t;
|
|
|
|
#ifndef YY_
|
|
# if defined YYENABLE_NLS && YYENABLE_NLS
|
|
# if ENABLE_NLS
|
|
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
|
|
# endif
|
|
# endif
|
|
# ifndef YY_
|
|
# define YY_(Msgid) Msgid
|
|
# endif
|
|
#endif
|
|
|
|
|
|
#ifndef YY_ATTRIBUTE_PURE
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
|
|
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
|
# else
|
|
# define YY_ATTRIBUTE_PURE
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef YY_ATTRIBUTE_UNUSED
|
|
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
|
|
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define YY_ATTRIBUTE_UNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* Suppress unused-variable warnings by "using" E. */
|
|
#if ! defined lint || defined __GNUC__
|
|
# define YY_USE(E) ((void) (E))
|
|
#else
|
|
# define YY_USE(E) /* empty */
|
|
#endif
|
|
|
|
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
|
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
|
|
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
|
_Pragma ("GCC diagnostic push") \
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
|
|
# else
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
|
_Pragma ("GCC diagnostic push") \
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
|
|
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
|
|
# endif
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
|
|
_Pragma ("GCC diagnostic pop")
|
|
#else
|
|
# define YY_INITIAL_VALUE(Value) Value
|
|
#endif
|
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
#endif
|
|
#ifndef YY_INITIAL_VALUE
|
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */
|
|
#endif
|
|
|
|
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN \
|
|
_Pragma ("GCC diagnostic push") \
|
|
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
|
|
# define YY_IGNORE_USELESS_CAST_END \
|
|
_Pragma ("GCC diagnostic pop")
|
|
#endif
|
|
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
|
|
# define YY_IGNORE_USELESS_CAST_BEGIN
|
|
# define YY_IGNORE_USELESS_CAST_END
|
|
#endif
|
|
|
|
|
|
#define YY_ASSERT(E) ((void) (0 && (E)))
|
|
|
|
#if !defined yyoverflow
|
|
|
|
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
|
|
|
# ifdef YYSTACK_USE_ALLOCA
|
|
# if YYSTACK_USE_ALLOCA
|
|
# ifdef __GNUC__
|
|
# define YYSTACK_ALLOC __builtin_alloca
|
|
# elif defined __BUILTIN_VA_ARG_INCR
|
|
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
|
|
# elif defined _AIX
|
|
# define YYSTACK_ALLOC __alloca
|
|
# elif defined _MSC_VER
|
|
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define alloca _alloca
|
|
# else
|
|
# define YYSTACK_ALLOC alloca
|
|
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
|
|
# ifndef EXIT_SUCCESS
|
|
# define EXIT_SUCCESS 0
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
|
|
# ifdef YYSTACK_ALLOC
|
|
/* Pacify GCC's 'empty if-body' warning. */
|
|
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
|
# ifndef YYSTACK_ALLOC_MAXIMUM
|
|
/* The OS might guarantee only one guard page at the bottom of the stack,
|
|
and a page size can be as small as 4096 bytes. So we cannot safely
|
|
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
|
|
to allow for a few compiler-allocated temporary stack slots. */
|
|
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
|
|
# endif
|
|
# else
|
|
# define YYSTACK_ALLOC YYMALLOC
|
|
# define YYSTACK_FREE YYFREE
|
|
# ifndef YYSTACK_ALLOC_MAXIMUM
|
|
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
|
|
# endif
|
|
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
|
|
&& ! ((defined YYMALLOC || defined malloc) \
|
|
&& (defined YYFREE || defined free)))
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
# ifndef EXIT_SUCCESS
|
|
# define EXIT_SUCCESS 0
|
|
# endif
|
|
# endif
|
|
# ifndef YYMALLOC
|
|
# define YYMALLOC malloc
|
|
# if ! defined malloc && ! defined EXIT_SUCCESS
|
|
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
|
|
# endif
|
|
# endif
|
|
# ifndef YYFREE
|
|
# define YYFREE free
|
|
# if ! defined free && ! defined EXIT_SUCCESS
|
|
void free (void *); /* INFRINGES ON USER NAME SPACE */
|
|
# endif
|
|
# endif
|
|
# endif
|
|
#endif /* !defined yyoverflow */
|
|
|
|
#if (! defined yyoverflow \
|
|
&& (! defined __cplusplus \
|
|
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
|
|
|
|
/* A type that is properly aligned for any stack member. */
|
|
union yyalloc
|
|
{
|
|
yy_state_t yyss_alloc;
|
|
YYSTYPE yyvs_alloc;
|
|
};
|
|
|
|
/* The size of the maximum gap between one aligned stack and the next. */
|
|
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
|
|
|
|
/* The size of an array large to enough to hold all stacks, each with
|
|
N elements. */
|
|
# define YYSTACK_BYTES(N) \
|
|
((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
|
|
+ YYSTACK_GAP_MAXIMUM)
|
|
|
|
# define YYCOPY_NEEDED 1
|
|
|
|
/* Relocate STACK from its old location to the new one. The
|
|
local variables YYSIZE and YYSTACKSIZE give the old and new number of
|
|
elements in the stack, and YYPTR gives the new location of the
|
|
stack. Advance YYPTR to a properly aligned location for the next
|
|
stack. */
|
|
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
|
|
do \
|
|
{ \
|
|
YYPTRDIFF_T yynewbytes; \
|
|
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
|
|
Stack = &yyptr->Stack_alloc; \
|
|
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
|
|
yyptr += yynewbytes / YYSIZEOF (*yyptr); \
|
|
} \
|
|
while (0)
|
|
|
|
#endif
|
|
|
|
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
|
|
/* Copy COUNT objects from SRC to DST. The source and destination do
|
|
not overlap. */
|
|
# ifndef YYCOPY
|
|
# if defined __GNUC__ && 1 < __GNUC__
|
|
# define YYCOPY(Dst, Src, Count) \
|
|
__builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
|
|
# else
|
|
# define YYCOPY(Dst, Src, Count) \
|
|
do \
|
|
{ \
|
|
YYPTRDIFF_T yyi; \
|
|
for (yyi = 0; yyi < (Count); yyi++) \
|
|
(Dst)[yyi] = (Src)[yyi]; \
|
|
} \
|
|
while (0)
|
|
# endif
|
|
# endif
|
|
#endif /* !YYCOPY_NEEDED */
|
|
|
|
/* YYFINAL -- State number of the termination state. */
|
|
#define YYFINAL 4
|
|
/* YYLAST -- Last index in YYTABLE. */
|
|
#define YYLAST 828
|
|
|
|
/* YYNTOKENS -- Number of terminals. */
|
|
#define YYNTOKENS 48
|
|
/* YYNNTS -- Number of nonterminals. */
|
|
#define YYNNTS 75
|
|
/* YYNRULES -- Number of rules. */
|
|
#define YYNRULES 236
|
|
/* YYNSTATES -- Number of states. */
|
|
#define YYNSTATES 293
|
|
|
|
/* YYMAXUTOK -- Last valid token kind. */
|
|
#define YYMAXUTOK 293
|
|
|
|
|
|
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
|
|
as returned by yylex, with out-of-bounds checking. */
|
|
#define YYTRANSLATE(YYX) \
|
|
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
|
|
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
|
|
: YYSYMBOL_YYUNDEF)
|
|
|
|
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
|
|
as returned by yylex. */
|
|
static const yytype_int8 yytranslate[] =
|
|
{
|
|
0, 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, 45, 2, 39, 2, 2, 2, 2, 2,
|
|
2, 2, 40, 2, 2, 2, 47, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 44, 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, 42, 46, 43, 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, 41, 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, 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, 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, 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, 1, 2, 3, 4,
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
35, 36, 37, 38
|
|
};
|
|
|
|
#if YYDEBUG
|
|
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
|
|
static const yytype_int16 yyrline[] =
|
|
{
|
|
0, 93, 93, 94, 97, 98, 101, 104, 104, 108,
|
|
109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
|
|
119, 120, 121, 122, 125, 126, 127, 128, 138, 141,
|
|
142, 145, 146, 147, 150, 164, 178, 182, 183, 184,
|
|
185, 186, 187, 190, 191, 192, 202, 203, 204, 205,
|
|
206, 207, 210, 213, 214, 215, 216, 217, 220, 225,
|
|
230, 235, 240, 245, 248, 251, 254, 255, 259, 270,
|
|
286, 287, 290, 291, 292, 293, 294, 295, 296, 297,
|
|
298, 299, 300, 308, 332, 335, 340, 341, 344, 345,
|
|
346, 349, 354, 359, 360, 363, 364, 365, 368, 373,
|
|
376, 381, 382, 385, 386, 389, 394, 398, 399, 402,
|
|
403, 406, 427, 430, 431, 434, 435, 436, 439, 440,
|
|
441, 442, 443, 444, 445, 446, 447, 448, 451, 452,
|
|
453, 454, 455, 456, 457, 458, 459, 460, 461, 462,
|
|
463, 464, 465, 468, 469, 472, 473, 474, 475, 476,
|
|
477, 478, 479, 480, 481, 482, 483, 486, 492, 498,
|
|
504, 505, 508, 509, 512, 513, 514, 515, 516, 517,
|
|
518, 519, 522, 523, 524, 525, 526, 527, 528, 531,
|
|
532, 535, 536, 539, 540, 541, 542, 543, 544, 545,
|
|
548, 549, 552, 553, 556, 557, 558, 559, 560, 561,
|
|
562, 563, 566, 567, 570, 571, 572, 573, 574, 575,
|
|
583, 599, 618, 640, 641, 642, 643, 644, 645, 646,
|
|
647, 648, 649, 650, 680, 683, 684, 685, 686, 687,
|
|
688, 689, 690, 691, 692, 693, 698
|
|
};
|
|
#endif
|
|
|
|
/** Accessing symbol of state STATE. */
|
|
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
|
|
|
|
#if YYDEBUG || 0
|
|
/* The user-facing name of the symbol whose (internal) number is
|
|
YYSYMBOL. No bounds checking. */
|
|
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
|
|
|
|
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
|
|
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
|
|
static const char *const yytname[] =
|
|
{
|
|
"\"end of file\"", "error", "\"invalid token\"", "OPEN", "CLOSE",
|
|
"EPAR", "DEFLINE", "LETTER", "DIGIT", "OTHER", "TILDE", "STAR", "QUOTE",
|
|
"BLANKTILDE", "BLANKSTAR", "BLANKQUOTE", "DUS", "BLANKDUS", "HEAD1",
|
|
"HEAD2", "HEAD3", "HEAD4", "HEAD5", "ENUM1", "ENUM2", "BULLET1",
|
|
"BULLET2", "FOLLOW1", "FOLLOW2", "DISPLAY", "FIGURE", "STARTREF", "REF",
|
|
"VCHAR", "VERBATIM", "ENDVERBATIM", "PARFORMAT", "CHARFORMAT",
|
|
"TTFORMAT", "'\"'", "'*'", "'~'", "'['", "']'", "':'", "' '", "'\\\\'",
|
|
"'.'", "$accept", "document", "doc", "doc_section", "program_section",
|
|
"$@1", "chars", "elements", "definitions", "defs", "defline",
|
|
"par_format", "char_format", "special_char_def", "space", "ident",
|
|
"element", "standard_paragraph", "heading", "heading1", "heading2",
|
|
"heading3", "heading4", "heading5", "verb", "verb_start", "verb_end",
|
|
"vchars", "display", "figure", "optional_caption", "figure_text",
|
|
"special_paragraph", "list", "itemized1", "bulletitem1", "bulletpar1",
|
|
"followup1", "enum1", "enumitem1", "enumpar1", "list2", "itemized2",
|
|
"bulletitem2", "bulletpar2", "followup2", "enum2", "enumitem2",
|
|
"enumpar2", "paragraph_rest", "text", "netext", "start_elem",
|
|
"follow_elem", "text_char", "ftext_char", "emphasized", "bold_face",
|
|
"typewriter", "unemph_list", "untt_list", "unemph", "untt",
|
|
"unbold_list", "unbold", "unboldemph_list", "unboldemph", "plain_list",
|
|
"plain", "special_char_format", "bracketed", "btext", "bracketed2",
|
|
"btext2", "annotations", YY_NULLPTR
|
|
};
|
|
|
|
static const char *
|
|
yysymbol_name (yysymbol_kind_t yysymbol)
|
|
{
|
|
return yytname[yysymbol];
|
|
}
|
|
#endif
|
|
|
|
#define YYPACT_NINF (-152)
|
|
|
|
#define yypact_value_is_default(Yyn) \
|
|
((Yyn) == YYPACT_NINF)
|
|
|
|
#define YYTABLE_NINF (-3)
|
|
|
|
#define yytable_value_is_error(Yyn) \
|
|
0
|
|
|
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
STATE-NUM. */
|
|
static const yytype_int16 yypact[] =
|
|
{
|
|
-152, 4, 9, 2, -152, 30, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, 248, 178, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, 73, -152, -152, -152, -152, 60, 60, 60, 60,
|
|
60, 60, 60, 60, -152, 60, -152, -152, -152, -152,
|
|
-152, -152, -152, 77, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, 6, -152, -152, -152, -152, 20,
|
|
31, -152, 29, 31, -152, -152, -152, 289, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
494, -152, 535, 781, 576, 617, 330, -152, -152, -152,
|
|
-152, 46, 31, 60, 60, 60, -152, -152, 38, 28,
|
|
-152, 56, 28, -152, 31, -152, -152, 86, -152, -152,
|
|
14, 58, 371, 136, -152, -152, -152, -152, -152, 47,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, 76, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, 28, 60, -152, 28, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, 658, -152, 699, -152, 740, 412, -152, 33,
|
|
33, 453, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, 130, 130, -152, -152,
|
|
-152, 21, 84, -152, -152, 136, 136, -152, -152, 136,
|
|
136, -152, -152
|
|
};
|
|
|
|
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
|
|
Performed when YYTABLE does not specify something else to do. Zero
|
|
means the default is an error. */
|
|
static const yytype_uint8 yydefact[] =
|
|
{
|
|
37, 0, 7, 0, 1, 3, 9, 24, 39, 40,
|
|
41, 42, 38, 4, 5, 8, 113, 21, 22, 145,
|
|
146, 147, 11, 12, 14, 148, 149, 151, 13, 150,
|
|
128, 129, 130, 131, 132, 133, 134, 137, 138, 135,
|
|
136, 139, 140, 141, 142, 155, 156, 23, 15, 16,
|
|
17, 18, 19, 144, 153, 152, 154, 20, 10, 143,
|
|
6, 0, 119, 120, 122, 121, 113, 113, 113, 113,
|
|
113, 113, 113, 113, 72, 113, 64, 162, 202, 181,
|
|
160, 213, 25, 0, 29, 26, 46, 47, 53, 54,
|
|
55, 56, 57, 48, 0, 49, 50, 51, 27, 84,
|
|
86, 88, 85, 93, 95, 52, 236, 114, 115, 118,
|
|
123, 124, 125, 126, 127, 37, 37, 225, 31, 32,
|
|
33, 37, 58, 59, 60, 61, 62, 98, 91, 68,
|
|
70, 83, 0, 0, 0, 0, 0, 28, 30, 67,
|
|
63, 0, 87, 113, 113, 113, 89, 90, 99, 101,
|
|
103, 100, 107, 109, 94, 96, 97, 0, 116, 117,
|
|
0, 0, 0, 0, 74, 75, 77, 76, 72, 0,
|
|
82, 73, 78, 80, 79, 81, 173, 174, 176, 175,
|
|
159, 192, 177, 172, 163, 179, 180, 205, 206, 208,
|
|
207, 211, 204, 203, 209, 184, 185, 187, 186, 158,
|
|
192, 188, 183, 182, 190, 191, 165, 166, 168, 167,
|
|
157, 169, 164, 161, 170, 171, 215, 216, 218, 217,
|
|
220, 221, 222, 213, 212, 219, 214, 66, 65, 111,
|
|
105, 92, 102, 113, 104, 108, 110, 112, 37, 37,
|
|
227, 228, 230, 229, 232, 233, 234, 225, 224, 231,
|
|
226, 36, 71, 236, 0, 210, 0, 0, 106, 0,
|
|
0, 0, 69, 195, 196, 198, 197, 178, 199, 194,
|
|
193, 200, 201, 189, 223, 43, 37, 37, 235, 44,
|
|
45, 0, 0, 37, 37, 0, 0, 37, 37, 0,
|
|
0, 34, 35
|
|
};
|
|
|
|
/* YYPGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yypgoto[] =
|
|
{
|
|
-152, -152, -152, 111, -152, -152, -152, -152, -152, -152,
|
|
35, -152, -152, -152, -108, -138, -152, -152, -152, -152,
|
|
-152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
|
|
-152, -33, -152, -152, -152, 40, -152, -101, -152, 39,
|
|
-152, -100, -152, -8, -152, -151, -152, -7, -152, -50,
|
|
-152, -152, 36, -15, -9, -119, -106, -104, -103, -152,
|
|
-152, -152, -152, -152, -152, -58, -152, -152, -152, -120,
|
|
-97, -78, -135, -95, -93
|
|
};
|
|
|
|
/* YYDEFGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yydefgoto[] =
|
|
{
|
|
0, 1, 2, 13, 5, 6, 15, 16, 82, 83,
|
|
84, 118, 119, 120, 3, 276, 85, 86, 87, 88,
|
|
89, 90, 91, 92, 93, 94, 140, 141, 95, 96,
|
|
169, 130, 97, 98, 99, 100, 101, 146, 102, 103,
|
|
104, 147, 148, 149, 150, 234, 151, 152, 153, 105,
|
|
106, 107, 108, 170, 109, 59, 110, 111, 112, 135,
|
|
132, 213, 184, 134, 203, 254, 270, 133, 193, 113,
|
|
114, 136, 121, 162, 157
|
|
};
|
|
|
|
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
|
|
positive, shift that token. If negative, reduce the rule whose
|
|
number is the opposite. If YYTABLE_NINF, syntax error. */
|
|
static const yytype_int16 yytable[] =
|
|
{
|
|
57, 236, 155, 156, 4, 7, 58, 160, 161, -2,
|
|
175, 171, 185, 163, 204, 214, 122, 123, 124, 125,
|
|
126, 127, 128, 129, 172, 131, 173, 174, 251, 8,
|
|
9, 10, 11, 7, 253, 186, 194, 205, 215, 139,
|
|
275, 8, 9, 10, 11, 72, 238, 12, 8, 9,
|
|
10, 11, 71, 155, 156, 143, 233, 144, 145, 12,
|
|
8, 9, 10, 11, 144, 283, 12, 19, 20, 21,
|
|
62, 63, 64, 25, 26, 27, 65, 29, 12, 227,
|
|
143, 228, 137, 61, 236, 8, 9, 10, 11, 117,
|
|
239, 237, 159, 229, 230, 231, 45, 46, 77, 78,
|
|
79, 80, 81, 12, 53, 54, 55, 56, 255, 115,
|
|
116, 8, 9, 10, 11, 117, 14, 182, 138, 201,
|
|
211, 225, 277, 183, 192, 202, 212, 226, 284, 12,
|
|
259, 260, 175, 171, 271, 252, 271, 279, 280, 142,
|
|
232, 154, 256, 158, 235, 257, 172, 249, 173, 174,
|
|
287, 288, 261, 250, 291, 292, 0, 272, 0, 272,
|
|
262, 0, 0, 8, 9, 10, 11, 0, 281, 282,
|
|
0, 0, 0, 0, 0, 285, 286, 0, 117, 289,
|
|
290, 12, 60, 258, 61, 19, 20, 21, 62, 63,
|
|
64, 25, 26, 27, 65, 29, 66, 67, 68, 69,
|
|
70, 71, 0, 72, 0, 0, 0, 73, 74, 75,
|
|
0, 0, 76, 0, 45, 46, 77, 78, 79, 80,
|
|
81, 0, 53, 54, 55, 56, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 268,
|
|
0, 268, 225, 0, 0, 269, 249, 269, 226, 0,
|
|
0, 0, 250, 17, 18, 19, 20, 21, 22, 23,
|
|
24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
|
|
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
|
44, 0, 0, 0, 45, 46, 47, 48, 49, 50,
|
|
51, 52, 53, 54, 55, 56, 19, 20, 21, 62,
|
|
63, 64, 25, 26, 27, 65, 29, 30, 31, 32,
|
|
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
|
43, 44, 0, 0, 0, 45, 46, 77, 78, 79,
|
|
80, 81, 0, 53, 54, 55, 56, 19, 20, 21,
|
|
216, 217, 218, 25, 26, 27, 219, 29, 30, 31,
|
|
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
|
42, 43, 44, 0, 0, 0, 45, 46, 0, 220,
|
|
221, 222, 223, 224, 53, 54, 55, 56, 19, 20,
|
|
21, 240, 241, 242, 25, 26, 27, 243, 29, 30,
|
|
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
|
|
41, 42, 43, 44, 0, 0, 0, 45, 46, 0,
|
|
244, 245, 246, 247, 248, 53, 54, 55, 56, 19,
|
|
20, 21, 216, 217, 218, 25, 26, 27, 219, 29,
|
|
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
|
|
40, 41, 42, 43, 44, 0, 0, 0, 45, 46,
|
|
0, 220, 221, 222, 223, 274, 53, 54, 55, 56,
|
|
19, 20, 21, 240, 241, 242, 25, 26, 27, 243,
|
|
29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
39, 40, 41, 42, 43, 44, 0, 0, 0, 45,
|
|
46, 0, 244, 245, 246, 247, 278, 53, 54, 55,
|
|
56, 19, 20, 21, 164, 165, 166, 25, 26, 27,
|
|
167, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
|
38, 39, 40, 41, 42, 43, 44, 0, 0, 0,
|
|
45, 46, 77, 78, 79, 80, 0, 0, 168, 54,
|
|
55, 56, 19, 20, 21, 176, 177, 178, 25, 26,
|
|
27, 179, 29, 30, 31, 32, 33, 34, 35, 36,
|
|
37, 38, 39, 40, 41, 42, 43, 44, 0, 0,
|
|
0, 45, 46, 180, 78, 181, 0, 81, 0, 53,
|
|
54, 55, 56, 19, 20, 21, 195, 196, 197, 25,
|
|
26, 27, 198, 29, 30, 31, 32, 33, 34, 35,
|
|
36, 37, 38, 39, 40, 41, 42, 43, 44, 0,
|
|
0, 0, 45, 46, 0, 78, 199, 200, 81, 0,
|
|
53, 54, 55, 56, 19, 20, 21, 206, 207, 208,
|
|
25, 26, 27, 209, 29, 30, 31, 32, 33, 34,
|
|
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
|
0, 0, 0, 45, 46, 0, 78, 0, 210, 81,
|
|
0, 53, 54, 55, 56, 19, 20, 21, 164, 165,
|
|
166, 25, 26, 27, 167, 29, 30, 31, 32, 33,
|
|
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
|
44, 0, 0, 0, 45, 46, 77, 78, 79, 80,
|
|
0, 0, 0, 54, 55, 56, 19, 20, 21, 263,
|
|
264, 265, 25, 26, 27, 266, 29, 30, 31, 32,
|
|
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
|
43, 44, 0, 0, 0, 45, 46, 0, 78, 267,
|
|
0, 81, 0, 53, 54, 55, 56, 19, 20, 21,
|
|
263, 264, 265, 25, 26, 27, 266, 29, 30, 31,
|
|
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
|
42, 43, 44, 0, 0, 0, 45, 46, 0, 78,
|
|
0, 273, 81, 0, 53, 54, 55, 56, 19, 20,
|
|
21, 187, 188, 189, 25, 26, 27, 190, 29, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 45, 46, 0,
|
|
191, 0, 0, 81, 0, 53, 54, 55, 56
|
|
};
|
|
|
|
static const yytype_int16 yycheck[] =
|
|
{
|
|
15, 152, 103, 103, 0, 3, 15, 115, 116, 0,
|
|
130, 130, 132, 121, 134, 135, 66, 67, 68, 69,
|
|
70, 71, 72, 73, 130, 75, 130, 130, 163, 27,
|
|
28, 29, 30, 3, 169, 132, 133, 134, 135, 33,
|
|
7, 27, 28, 29, 30, 25, 32, 45, 27, 28,
|
|
29, 30, 23, 154, 154, 24, 28, 26, 27, 45,
|
|
27, 28, 29, 30, 26, 44, 45, 7, 8, 9,
|
|
10, 11, 12, 13, 14, 15, 16, 17, 45, 33,
|
|
24, 35, 5, 6, 235, 27, 28, 29, 30, 42,
|
|
32, 5, 107, 143, 144, 145, 36, 37, 38, 39,
|
|
40, 41, 42, 45, 44, 45, 46, 47, 32, 36,
|
|
37, 27, 28, 29, 30, 42, 5, 132, 83, 134,
|
|
135, 136, 260, 132, 133, 134, 135, 136, 44, 45,
|
|
238, 239, 252, 252, 254, 168, 256, 7, 8, 99,
|
|
148, 102, 200, 107, 151, 223, 252, 162, 252, 252,
|
|
285, 286, 247, 162, 289, 290, -1, 254, -1, 256,
|
|
253, -1, -1, 27, 28, 29, 30, -1, 276, 277,
|
|
-1, -1, -1, -1, -1, 283, 284, -1, 42, 287,
|
|
288, 45, 4, 233, 6, 7, 8, 9, 10, 11,
|
|
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
|
22, 23, -1, 25, -1, -1, -1, 29, 30, 31,
|
|
-1, -1, 34, -1, 36, 37, 38, 39, 40, 41,
|
|
42, -1, 44, 45, 46, 47, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 254,
|
|
-1, 256, 257, -1, -1, 254, 261, 256, 257, -1,
|
|
-1, -1, 261, 5, 6, 7, 8, 9, 10, 11,
|
|
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
32, -1, -1, -1, 36, 37, 38, 39, 40, 41,
|
|
42, 43, 44, 45, 46, 47, 7, 8, 9, 10,
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
31, 32, -1, -1, -1, 36, 37, 38, 39, 40,
|
|
41, 42, -1, 44, 45, 46, 47, 7, 8, 9,
|
|
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
|
30, 31, 32, -1, -1, -1, 36, 37, -1, 39,
|
|
40, 41, 42, 43, 44, 45, 46, 47, 7, 8,
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
|
29, 30, 31, 32, -1, -1, -1, 36, 37, -1,
|
|
39, 40, 41, 42, 43, 44, 45, 46, 47, 7,
|
|
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
28, 29, 30, 31, 32, -1, -1, -1, 36, 37,
|
|
-1, 39, 40, 41, 42, 43, 44, 45, 46, 47,
|
|
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
|
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
|
27, 28, 29, 30, 31, 32, -1, -1, -1, 36,
|
|
37, -1, 39, 40, 41, 42, 43, 44, 45, 46,
|
|
47, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
|
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
26, 27, 28, 29, 30, 31, 32, -1, -1, -1,
|
|
36, 37, 38, 39, 40, 41, -1, -1, 44, 45,
|
|
46, 47, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
25, 26, 27, 28, 29, 30, 31, 32, -1, -1,
|
|
-1, 36, 37, 38, 39, 40, -1, 42, -1, 44,
|
|
45, 46, 47, 7, 8, 9, 10, 11, 12, 13,
|
|
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
|
|
24, 25, 26, 27, 28, 29, 30, 31, 32, -1,
|
|
-1, -1, 36, 37, -1, 39, 40, 41, 42, -1,
|
|
44, 45, 46, 47, 7, 8, 9, 10, 11, 12,
|
|
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
-1, -1, -1, 36, 37, -1, 39, -1, 41, 42,
|
|
-1, 44, 45, 46, 47, 7, 8, 9, 10, 11,
|
|
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
32, -1, -1, -1, 36, 37, 38, 39, 40, 41,
|
|
-1, -1, -1, 45, 46, 47, 7, 8, 9, 10,
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
31, 32, -1, -1, -1, 36, 37, -1, 39, 40,
|
|
-1, 42, -1, 44, 45, 46, 47, 7, 8, 9,
|
|
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
|
30, 31, 32, -1, -1, -1, 36, 37, -1, 39,
|
|
-1, 41, 42, -1, 44, 45, 46, 47, 7, 8,
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 36, 37, -1,
|
|
39, -1, -1, 42, -1, 44, 45, 46, 47
|
|
};
|
|
|
|
/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
|
|
state STATE-NUM. */
|
|
static const yytype_int8 yystos[] =
|
|
{
|
|
0, 49, 50, 62, 0, 52, 53, 3, 27, 28,
|
|
29, 30, 45, 51, 51, 54, 55, 5, 6, 7,
|
|
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
28, 29, 30, 31, 32, 36, 37, 38, 39, 40,
|
|
41, 42, 43, 44, 45, 46, 47, 101, 102, 103,
|
|
4, 6, 10, 11, 12, 16, 18, 19, 20, 21,
|
|
22, 23, 25, 29, 30, 31, 34, 38, 39, 40,
|
|
41, 42, 56, 57, 58, 64, 65, 66, 67, 68,
|
|
69, 70, 71, 72, 73, 76, 77, 80, 81, 82,
|
|
83, 84, 86, 87, 88, 97, 98, 99, 100, 102,
|
|
104, 105, 106, 117, 118, 36, 37, 42, 59, 60,
|
|
61, 120, 97, 97, 97, 97, 97, 97, 97, 97,
|
|
79, 97, 108, 115, 111, 107, 119, 5, 58, 33,
|
|
74, 75, 83, 24, 26, 27, 85, 89, 90, 91,
|
|
92, 94, 95, 96, 87, 85, 89, 122, 100, 101,
|
|
62, 62, 121, 62, 10, 11, 12, 16, 44, 78,
|
|
101, 103, 104, 105, 106, 117, 10, 11, 12, 16,
|
|
38, 40, 101, 102, 110, 117, 118, 10, 11, 12,
|
|
16, 39, 102, 116, 118, 10, 11, 12, 16, 40,
|
|
41, 101, 102, 112, 117, 118, 10, 11, 12, 16,
|
|
41, 101, 102, 109, 117, 118, 10, 11, 12, 16,
|
|
39, 40, 41, 42, 43, 101, 102, 33, 35, 97,
|
|
97, 97, 91, 28, 93, 95, 93, 5, 32, 32,
|
|
10, 11, 12, 16, 39, 40, 41, 42, 43, 101,
|
|
102, 120, 79, 120, 113, 32, 113, 119, 97, 62,
|
|
62, 121, 122, 10, 11, 12, 16, 40, 101, 102,
|
|
114, 117, 118, 41, 43, 7, 63, 63, 43, 7,
|
|
8, 62, 62, 44, 44, 62, 62, 120, 120, 62,
|
|
62, 120, 120
|
|
};
|
|
|
|
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
|
|
static const yytype_int8 yyr1[] =
|
|
{
|
|
0, 48, 49, 49, 50, 50, 51, 53, 52, 54,
|
|
54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
|
|
54, 54, 54, 54, 55, 55, 55, 55, 56, 57,
|
|
57, 58, 58, 58, 59, 60, 61, 62, 62, 62,
|
|
62, 62, 62, 63, 63, 63, 64, 64, 64, 64,
|
|
64, 64, 65, 66, 66, 66, 66, 66, 67, 68,
|
|
69, 70, 71, 72, 73, 74, 75, 75, 76, 77,
|
|
78, 78, 79, 79, 79, 79, 79, 79, 79, 79,
|
|
79, 79, 79, 80, 81, 81, 82, 82, 83, 83,
|
|
83, 84, 85, 86, 86, 87, 87, 87, 88, 89,
|
|
89, 90, 90, 91, 91, 92, 93, 94, 94, 95,
|
|
95, 96, 97, 98, 98, 99, 99, 99, 100, 100,
|
|
100, 100, 100, 100, 100, 100, 100, 100, 101, 101,
|
|
101, 101, 101, 101, 101, 101, 101, 101, 101, 101,
|
|
101, 101, 101, 102, 102, 103, 103, 103, 103, 103,
|
|
103, 103, 103, 103, 103, 103, 103, 104, 105, 106,
|
|
107, 107, 108, 108, 109, 109, 109, 109, 109, 109,
|
|
109, 109, 110, 110, 110, 110, 110, 110, 110, 110,
|
|
110, 111, 111, 112, 112, 112, 112, 112, 112, 112,
|
|
112, 112, 113, 113, 114, 114, 114, 114, 114, 114,
|
|
114, 114, 115, 115, 116, 116, 116, 116, 116, 116,
|
|
117, 117, 118, 119, 119, 119, 119, 119, 119, 119,
|
|
119, 119, 119, 119, 120, 121, 121, 121, 121, 121,
|
|
121, 121, 121, 121, 121, 121, 122
|
|
};
|
|
|
|
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
|
|
static const yytype_int8 yyr2[] =
|
|
{
|
|
0, 2, 1, 2, 2, 3, 3, 0, 2, 0,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 0, 2, 2, 2, 2, 1,
|
|
2, 2, 2, 2, 11, 11, 3, 0, 2, 2,
|
|
2, 2, 2, 1, 2, 2, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
|
|
2, 2, 2, 2, 1, 2, 2, 1, 2, 5,
|
|
0, 2, 0, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 1, 1, 1, 2, 1, 2,
|
|
2, 2, 2, 1, 2, 1, 2, 2, 2, 1,
|
|
1, 1, 2, 1, 2, 2, 2, 1, 2, 1,
|
|
2, 2, 3, 0, 1, 1, 2, 2, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 3, 3, 3,
|
|
0, 2, 0, 2, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 3, 1,
|
|
1, 0, 2, 1, 1, 1, 1, 1, 1, 3,
|
|
1, 1, 0, 2, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 0, 2, 1, 1, 1, 1, 1, 1,
|
|
4, 3, 3, 0, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 4, 3, 0, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 4, 0
|
|
};
|
|
|
|
|
|
enum { YYENOMEM = -2 };
|
|
|
|
#define yyerrok (yyerrstatus = 0)
|
|
#define yyclearin (yychar = YYEMPTY)
|
|
|
|
#define YYACCEPT goto yyacceptlab
|
|
#define YYABORT goto yyabortlab
|
|
#define YYERROR goto yyerrorlab
|
|
#define YYNOMEM goto yyexhaustedlab
|
|
|
|
|
|
#define YYRECOVERING() (!!yyerrstatus)
|
|
|
|
#define YYBACKUP(Token, Value) \
|
|
do \
|
|
if (yychar == YYEMPTY) \
|
|
{ \
|
|
yychar = (Token); \
|
|
yylval = (Value); \
|
|
YYPOPSTACK (yylen); \
|
|
yystate = *yyssp; \
|
|
goto yybackup; \
|
|
} \
|
|
else \
|
|
{ \
|
|
yyerror (YY_("syntax error: cannot back up")); \
|
|
YYERROR; \
|
|
} \
|
|
while (0)
|
|
|
|
/* Backward compatibility with an undocumented macro.
|
|
Use YYerror or YYUNDEF. */
|
|
#define YYERRCODE YYUNDEF
|
|
|
|
|
|
/* Enable debugging if requested. */
|
|
#if YYDEBUG
|
|
|
|
# ifndef YYFPRINTF
|
|
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define YYFPRINTF fprintf
|
|
# endif
|
|
|
|
# define YYDPRINTF(Args) \
|
|
do { \
|
|
if (yydebug) \
|
|
YYFPRINTF Args; \
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
|
|
do { \
|
|
if (yydebug) \
|
|
{ \
|
|
YYFPRINTF (stderr, "%s ", Title); \
|
|
yy_symbol_print (stderr, \
|
|
Kind, Value); \
|
|
YYFPRINTF (stderr, "\n"); \
|
|
} \
|
|
} while (0)
|
|
|
|
|
|
/*-----------------------------------.
|
|
| Print this symbol's value on YYO. |
|
|
`-----------------------------------*/
|
|
|
|
static void
|
|
yy_symbol_value_print (FILE *yyo,
|
|
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
|
|
{
|
|
FILE *yyoutput = yyo;
|
|
YY_USE (yyoutput);
|
|
if (!yyvaluep)
|
|
return;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
YY_USE (yykind);
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
}
|
|
|
|
|
|
/*---------------------------.
|
|
| Print this symbol on YYO. |
|
|
`---------------------------*/
|
|
|
|
static void
|
|
yy_symbol_print (FILE *yyo,
|
|
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
|
|
{
|
|
YYFPRINTF (yyo, "%s %s (",
|
|
yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
|
|
|
|
yy_symbol_value_print (yyo, yykind, yyvaluep);
|
|
YYFPRINTF (yyo, ")");
|
|
}
|
|
|
|
/*------------------------------------------------------------------.
|
|
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
|
|
| TOP (included). |
|
|
`------------------------------------------------------------------*/
|
|
|
|
static void
|
|
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
|
|
{
|
|
YYFPRINTF (stderr, "Stack now");
|
|
for (; yybottom <= yytop; yybottom++)
|
|
{
|
|
int yybot = *yybottom;
|
|
YYFPRINTF (stderr, " %d", yybot);
|
|
}
|
|
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. |
|
|
`------------------------------------------------*/
|
|
|
|
static void
|
|
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
|
|
int yyrule)
|
|
{
|
|
int yylno = yyrline[yyrule];
|
|
int yynrhs = yyr2[yyrule];
|
|
int yyi;
|
|
YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
|
|
yyrule - 1, yylno);
|
|
/* The symbols being reduced. */
|
|
for (yyi = 0; yyi < yynrhs; yyi++)
|
|
{
|
|
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
|
yy_symbol_print (stderr,
|
|
YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
|
|
&yyvsp[(yyi + 1) - (yynrhs)]);
|
|
YYFPRINTF (stderr, "\n");
|
|
}
|
|
}
|
|
|
|
# define YY_REDUCE_PRINT(Rule) \
|
|
do { \
|
|
if (yydebug) \
|
|
yy_reduce_print (yyssp, yyvsp, 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) ((void) 0)
|
|
# define YY_SYMBOL_PRINT(Title, Kind, 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
|
|
#endif
|
|
|
|
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
|
|
if the built-in stack extension method is used).
|
|
|
|
Do not make this value too large; the results are undefined if
|
|
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
|
|
evaluated with infinite-precision integer arithmetic. */
|
|
|
|
#ifndef YYMAXDEPTH
|
|
# define YYMAXDEPTH 10000
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*-----------------------------------------------.
|
|
| Release the memory associated to this symbol. |
|
|
`-----------------------------------------------*/
|
|
|
|
static void
|
|
yydestruct (const char *yymsg,
|
|
yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
|
|
{
|
|
YY_USE (yyvaluep);
|
|
if (!yymsg)
|
|
yymsg = "Deleting";
|
|
YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
|
|
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
YY_USE (yykind);
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
}
|
|
|
|
|
|
/* Lookahead token kind. */
|
|
int yychar;
|
|
|
|
/* The semantic value of the lookahead symbol. */
|
|
YYSTYPE yylval;
|
|
/* Number of syntax errors so far. */
|
|
int yynerrs;
|
|
|
|
|
|
|
|
|
|
/*----------.
|
|
| yyparse. |
|
|
`----------*/
|
|
|
|
int
|
|
yyparse (void)
|
|
{
|
|
yy_state_fast_t yystate = 0;
|
|
/* Number of tokens to shift before error messages enabled. */
|
|
int yyerrstatus = 0;
|
|
|
|
/* Refer to the stacks through separate pointers, to allow yyoverflow
|
|
to reallocate them elsewhere. */
|
|
|
|
/* Their size. */
|
|
YYPTRDIFF_T yystacksize = YYINITDEPTH;
|
|
|
|
/* The state stack: array, bottom, top. */
|
|
yy_state_t yyssa[YYINITDEPTH];
|
|
yy_state_t *yyss = yyssa;
|
|
yy_state_t *yyssp = yyss;
|
|
|
|
/* The semantic value stack: array, bottom, top. */
|
|
YYSTYPE yyvsa[YYINITDEPTH];
|
|
YYSTYPE *yyvs = yyvsa;
|
|
YYSTYPE *yyvsp = yyvs;
|
|
|
|
int yyn;
|
|
/* The return value of yyparse. */
|
|
int yyresult;
|
|
/* Lookahead symbol kind. */
|
|
yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
|
|
/* The variables used to return semantic value and location from the
|
|
action routines. */
|
|
YYSTYPE yyval;
|
|
|
|
|
|
|
|
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
|
|
|
|
/* The number of symbols on the RHS of the reduced rule.
|
|
Keep to zero when no symbol should be popped. */
|
|
int yylen = 0;
|
|
|
|
YYDPRINTF ((stderr, "Starting parse\n"));
|
|
|
|
yychar = YYEMPTY; /* Cause a token to be read. */
|
|
|
|
goto yysetstate;
|
|
|
|
|
|
/*------------------------------------------------------------.
|
|
| yynewstate -- push a new state, which is found in yystate. |
|
|
`------------------------------------------------------------*/
|
|
yynewstate:
|
|
/* In all cases, when you get here, the value and location stacks
|
|
have just been pushed. So pushing a state here evens the stacks. */
|
|
yyssp++;
|
|
|
|
|
|
/*--------------------------------------------------------------------.
|
|
| yysetstate -- set current state (the top of the stack) to yystate. |
|
|
`--------------------------------------------------------------------*/
|
|
yysetstate:
|
|
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
|
|
YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
|
|
YY_IGNORE_USELESS_CAST_BEGIN
|
|
*yyssp = YY_CAST (yy_state_t, yystate);
|
|
YY_IGNORE_USELESS_CAST_END
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
|
|
if (yyss + yystacksize - 1 <= yyssp)
|
|
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
|
|
YYNOMEM;
|
|
#else
|
|
{
|
|
/* Get the current used size of the three stacks, in elements. */
|
|
YYPTRDIFF_T yysize = yyssp - yyss + 1;
|
|
|
|
# if defined yyoverflow
|
|
{
|
|
/* Give user a chance to reallocate the stack. Use copies of
|
|
these so that the &'s don't force the real ones into
|
|
memory. */
|
|
yy_state_t *yyss1 = yyss;
|
|
YYSTYPE *yyvs1 = yyvs;
|
|
|
|
/* Each stack pointer address is followed by the size of the
|
|
data in use in that stack, in bytes. This used to be a
|
|
conditional around just the two extra args, but that might
|
|
be undefined if yyoverflow is a macro. */
|
|
yyoverflow (YY_("memory exhausted"),
|
|
&yyss1, yysize * YYSIZEOF (*yyssp),
|
|
&yyvs1, yysize * YYSIZEOF (*yyvsp),
|
|
&yystacksize);
|
|
yyss = yyss1;
|
|
yyvs = yyvs1;
|
|
}
|
|
# else /* defined YYSTACK_RELOCATE */
|
|
/* Extend the stack our own way. */
|
|
if (YYMAXDEPTH <= yystacksize)
|
|
YYNOMEM;
|
|
yystacksize *= 2;
|
|
if (YYMAXDEPTH < yystacksize)
|
|
yystacksize = YYMAXDEPTH;
|
|
|
|
{
|
|
yy_state_t *yyss1 = yyss;
|
|
union yyalloc *yyptr =
|
|
YY_CAST (union yyalloc *,
|
|
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
|
|
if (! yyptr)
|
|
YYNOMEM;
|
|
YYSTACK_RELOCATE (yyss_alloc, yyss);
|
|
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
|
|
# undef YYSTACK_RELOCATE
|
|
if (yyss1 != yyssa)
|
|
YYSTACK_FREE (yyss1);
|
|
}
|
|
# endif
|
|
|
|
yyssp = yyss + yysize - 1;
|
|
yyvsp = yyvs + yysize - 1;
|
|
|
|
YY_IGNORE_USELESS_CAST_BEGIN
|
|
YYDPRINTF ((stderr, "Stack size increased to %ld\n",
|
|
YY_CAST (long, yystacksize)));
|
|
YY_IGNORE_USELESS_CAST_END
|
|
|
|
if (yyss + yystacksize - 1 <= yyssp)
|
|
YYABORT;
|
|
}
|
|
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
|
|
|
|
|
|
if (yystate == YYFINAL)
|
|
YYACCEPT;
|
|
|
|
goto yybackup;
|
|
|
|
|
|
/*-----------.
|
|
| yybackup. |
|
|
`-----------*/
|
|
yybackup:
|
|
/* Do appropriate processing given the current state. Read a
|
|
lookahead token if we need one and don't already have one. */
|
|
|
|
/* First try to decide what to do without reference to lookahead token. */
|
|
yyn = yypact[yystate];
|
|
if (yypact_value_is_default (yyn))
|
|
goto yydefault;
|
|
|
|
/* Not known => get a lookahead token if don't already have one. */
|
|
|
|
/* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
|
|
if (yychar == YYEMPTY)
|
|
{
|
|
YYDPRINTF ((stderr, "Reading a token\n"));
|
|
yychar = yylex ();
|
|
}
|
|
|
|
if (yychar <= YYEOF)
|
|
{
|
|
yychar = YYEOF;
|
|
yytoken = YYSYMBOL_YYEOF;
|
|
YYDPRINTF ((stderr, "Now at end of input.\n"));
|
|
}
|
|
else if (yychar == YYerror)
|
|
{
|
|
/* The scanner already issued an error message, process directly
|
|
to error recovery. But do not keep the error token as
|
|
lookahead, it is too special and may lead us to an endless
|
|
loop in error recovery. */
|
|
yychar = YYUNDEF;
|
|
yytoken = YYSYMBOL_YYerror;
|
|
goto yyerrlab1;
|
|
}
|
|
else
|
|
{
|
|
yytoken = YYTRANSLATE (yychar);
|
|
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
|
|
}
|
|
|
|
/* If the proper action on seeing token YYTOKEN is to reduce or to
|
|
detect an error, take that action. */
|
|
yyn += yytoken;
|
|
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
|
|
goto yydefault;
|
|
yyn = yytable[yyn];
|
|
if (yyn <= 0)
|
|
{
|
|
if (yytable_value_is_error (yyn))
|
|
goto yyerrlab;
|
|
yyn = -yyn;
|
|
goto yyreduce;
|
|
}
|
|
|
|
/* Count tokens shifted since error; after three, turn off error
|
|
status. */
|
|
if (yyerrstatus)
|
|
yyerrstatus--;
|
|
|
|
/* Shift the lookahead token. */
|
|
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
|
|
yystate = yyn;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
*++yyvsp = yylval;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
/* Discard the shifted token. */
|
|
yychar = YYEMPTY;
|
|
goto yynewstate;
|
|
|
|
|
|
/*-----------------------------------------------------------.
|
|
| yydefault -- do the default action for the current state. |
|
|
`-----------------------------------------------------------*/
|
|
yydefault:
|
|
yyn = yydefact[yystate];
|
|
if (yyn == 0)
|
|
goto yyerrlab;
|
|
goto yyreduce;
|
|
|
|
|
|
/*-----------------------------.
|
|
| yyreduce -- do a reduction. |
|
|
`-----------------------------*/
|
|
yyreduce:
|
|
/* yyn is the number of a rule to reduce with. */
|
|
yylen = yyr2[yyn];
|
|
|
|
/* If YYLEN is nonzero, implement the default value of the action:
|
|
'$$ = $1'.
|
|
|
|
Otherwise, the following line sets YYVAL to garbage.
|
|
This behavior is undocumented and Bison
|
|
users should not rely upon it. Assigning to YYVAL
|
|
unconditionally makes the parser a bit smaller, and it avoids a
|
|
GCC warning that YYVAL may be used uninitialized. */
|
|
yyval = yyvsp[1-yylen];
|
|
|
|
|
|
YY_REDUCE_PRINT (yyn);
|
|
switch (yyn)
|
|
{
|
|
case 7: /* $@1: %empty */
|
|
#line 104 "PDParser.y"
|
|
{ printf("%s", startProgram); }
|
|
#line 1656 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 8: /* program_section: $@1 chars */
|
|
#line 105 "PDParser.y"
|
|
{ printf("%s", endProgram); }
|
|
#line 1662 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 10: /* chars: chars text_char */
|
|
#line 109 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1668 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 11: /* chars: chars TILDE */
|
|
#line 110 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1674 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 12: /* chars: chars STAR */
|
|
#line 111 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1680 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 13: /* chars: chars DUS */
|
|
#line 112 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1686 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 14: /* chars: chars QUOTE */
|
|
#line 113 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1692 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 15: /* chars: chars '"' */
|
|
#line 114 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1698 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 16: /* chars: chars '*' */
|
|
#line 115 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1704 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 17: /* chars: chars '~' */
|
|
#line 116 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1710 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 18: /* chars: chars '[' */
|
|
#line 117 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1716 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 19: /* chars: chars ']' */
|
|
#line 118 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1722 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 20: /* chars: chars follow_elem */
|
|
#line 119 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1728 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 21: /* chars: chars EPAR */
|
|
#line 120 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1734 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 22: /* chars: chars DEFLINE */
|
|
#line 121 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1740 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 23: /* chars: chars TTFORMAT */
|
|
#line 122 "PDParser.y"
|
|
{print(yyvsp[0]);}
|
|
#line 1746 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 26: /* elements: elements element */
|
|
#line 127 "PDParser.y"
|
|
{release_storage();}
|
|
#line 1752 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 34: /* par_format: PARFORMAT space REF space ident space ':' space bracketed2 space bracketed2 */
|
|
#line 152 "PDParser.y"
|
|
{
|
|
/* test only:
|
|
print($3);
|
|
printf("paragraph definition: %d ",
|
|
get_ref_index($3));
|
|
print($5);
|
|
print($9);
|
|
print($11);
|
|
*/
|
|
enter_def(get_ref_index(yyvsp[-8]), yyvsp[-6], yyvsp[-2], yyvsp[0]);}
|
|
#line 1767 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 35: /* char_format: CHARFORMAT space REF space ident space ':' space bracketed2 space bracketed2 */
|
|
#line 166 "PDParser.y"
|
|
{
|
|
/*
|
|
printf("characters definition: %d ",
|
|
get_ref_index($3));
|
|
print($5);
|
|
print($9);
|
|
print($11);
|
|
*/
|
|
|
|
enter_def(get_ref_index(yyvsp[-8]), yyvsp[-6], yyvsp[-2], yyvsp[0]);}
|
|
#line 1782 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 36: /* special_char_def: bracketed2 space bracketed2 */
|
|
#line 179 "PDParser.y"
|
|
{enter_schar(yyvsp[-2], yyvsp[0]);}
|
|
#line 1788 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 43: /* ident: LETTER */
|
|
#line 190 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 1794 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 44: /* ident: ident LETTER */
|
|
#line 191 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1800 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 45: /* ident: ident DIGIT */
|
|
#line 192 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1806 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 52: /* standard_paragraph: paragraph_rest */
|
|
#line 210 "PDParser.y"
|
|
{print(yyvsp[0]); printf("\n\n");}
|
|
#line 1812 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 58: /* heading1: HEAD1 paragraph_rest */
|
|
#line 220 "PDParser.y"
|
|
{printf("\\section {");
|
|
print(yyvsp[0]);
|
|
printf("}\n\n");}
|
|
#line 1820 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 59: /* heading2: HEAD2 paragraph_rest */
|
|
#line 225 "PDParser.y"
|
|
{printf("\\subsection {");
|
|
print(yyvsp[0]);
|
|
printf("}\n\n");}
|
|
#line 1828 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 60: /* heading3: HEAD3 paragraph_rest */
|
|
#line 230 "PDParser.y"
|
|
{printf("\\subsubsection {");
|
|
print(yyvsp[0]);
|
|
printf("}\n\n");}
|
|
#line 1836 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 61: /* heading4: HEAD4 paragraph_rest */
|
|
#line 235 "PDParser.y"
|
|
{printf("\\paragraph {");
|
|
print(yyvsp[0]);
|
|
printf("}\n\n");}
|
|
#line 1844 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 62: /* heading5: HEAD5 paragraph_rest */
|
|
#line 240 "PDParser.y"
|
|
{printf("\\subparagraph {");
|
|
print(yyvsp[0]);
|
|
printf("}\n\n");}
|
|
#line 1852 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 64: /* verb_start: VERBATIM */
|
|
#line 248 "PDParser.y"
|
|
{ printf("%s", startVerbatim); }
|
|
#line 1858 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 65: /* verb_end: vchars ENDVERBATIM */
|
|
#line 251 "PDParser.y"
|
|
{ printf("%s", endVerbatim); }
|
|
#line 1864 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 66: /* vchars: vchars VCHAR */
|
|
#line 254 "PDParser.y"
|
|
{ print(yyvsp[0]); }
|
|
#line 1870 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 67: /* vchars: VCHAR */
|
|
#line 255 "PDParser.y"
|
|
{ print(yyvsp[0]); }
|
|
#line 1876 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 68: /* display: DISPLAY paragraph_rest */
|
|
#line 259 "PDParser.y"
|
|
{printf("\\begin{quote}\n");
|
|
printf(" ");
|
|
print(yyvsp[0]);
|
|
printf("\n\\end{quote}\n\n");}
|
|
#line 1885 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 69: /* figure: FIGURE figure_text optional_caption bracketed2 annotations */
|
|
#line 272 "PDParser.y"
|
|
{printf("\\begin{figure}[htb]\n");
|
|
printf("\\begin{center}\n");
|
|
printf("\\leavevmode\n");
|
|
printf(" \\epsfbox{Figures/");
|
|
print(yyvsp[-1]);
|
|
printf("}\n");
|
|
printf("\\end{center}\n");
|
|
printf(" \\caption{");
|
|
print(yyvsp[-2]);
|
|
printf("}\n\\label{fig:");
|
|
print(yyvsp[-1]);
|
|
printf("}\n\\end{figure}\n");}
|
|
#line 1902 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 70: /* optional_caption: %empty */
|
|
#line 286 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 1908 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 71: /* optional_caption: ':' figure_text */
|
|
#line 287 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 1914 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 72: /* figure_text: %empty */
|
|
#line 290 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 1920 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 73: /* figure_text: figure_text ftext_char */
|
|
#line 291 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1926 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 74: /* figure_text: figure_text TILDE */
|
|
#line 292 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("~"));}
|
|
#line 1932 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 75: /* figure_text: figure_text STAR */
|
|
#line 293 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("*"));}
|
|
#line 1938 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 76: /* figure_text: figure_text DUS */
|
|
#line 294 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("__"));}
|
|
#line 1944 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 77: /* figure_text: figure_text QUOTE */
|
|
#line 295 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("\""));}
|
|
#line 1950 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 78: /* figure_text: figure_text emphasized */
|
|
#line 296 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1956 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 79: /* figure_text: figure_text typewriter */
|
|
#line 297 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1962 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 80: /* figure_text: figure_text bold_face */
|
|
#line 298 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1968 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 81: /* figure_text: figure_text special_char_format */
|
|
#line 299 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1974 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 82: /* figure_text: figure_text follow_elem */
|
|
#line 300 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 1980 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 83: /* special_paragraph: STARTREF paragraph_rest */
|
|
#line 310 "PDParser.y"
|
|
{int i;
|
|
|
|
i = get_startref_index(yyvsp[-1]);
|
|
if (i > 0) /* not an empty start ref */
|
|
pindex = lookup_def(i);
|
|
/* otherwise use previous
|
|
pindex value */
|
|
if (pindex >= 0) /* def was found */
|
|
{printf("%s ", definitions[pindex].open);
|
|
print(yyvsp[0]);
|
|
printf("%s \n\n", definitions[pindex].close);
|
|
}
|
|
else print(yyvsp[0]); /* make it a standard paragraph */
|
|
}
|
|
#line 1999 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 84: /* list: itemized1 */
|
|
#line 332 "PDParser.y"
|
|
{printf("\\begin{itemize}\n");
|
|
print(yyvsp[0]);
|
|
printf("\n\n\\end{itemize}\n\n");}
|
|
#line 2007 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 85: /* list: enum1 */
|
|
#line 335 "PDParser.y"
|
|
{printf("\\begin{enumerate}\n");
|
|
print(yyvsp[0]);
|
|
printf("\n\n\\end{enumerate}\n\n");}
|
|
#line 2015 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 86: /* itemized1: bulletitem1 */
|
|
#line 340 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2021 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 87: /* itemized1: itemized1 bulletitem1 */
|
|
#line 341 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2027 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 88: /* bulletitem1: bulletpar1 */
|
|
#line 344 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2033 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 89: /* bulletitem1: bulletitem1 followup1 */
|
|
#line 345 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2039 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 90: /* bulletitem1: bulletitem1 list2 */
|
|
#line 346 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2045 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 91: /* bulletpar1: BULLET1 paragraph_rest */
|
|
#line 350 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\item "),
|
|
concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2052 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 92: /* followup1: FOLLOW1 paragraph_rest */
|
|
#line 355 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1],
|
|
concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2059 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 93: /* enum1: enumitem1 */
|
|
#line 359 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2065 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 94: /* enum1: enum1 enumitem1 */
|
|
#line 360 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2071 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 95: /* enumitem1: enumpar1 */
|
|
#line 363 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2077 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 96: /* enumitem1: enumitem1 followup1 */
|
|
#line 364 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2083 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 97: /* enumitem1: enumitem1 list2 */
|
|
#line 365 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2089 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 98: /* enumpar1: ENUM1 paragraph_rest */
|
|
#line 369 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\item "),
|
|
concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2096 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 99: /* list2: itemized2 */
|
|
#line 373 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\begin{itemize}\n"),
|
|
concat(yyvsp[0],
|
|
atomc("\n \\end{itemize}\n\n")));}
|
|
#line 2104 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 100: /* list2: enum2 */
|
|
#line 376 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\begin{enumerate}\n"),
|
|
concat(yyvsp[0],
|
|
atomc("\n \\end{enumerate}\n\n")));}
|
|
#line 2112 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 101: /* itemized2: bulletitem2 */
|
|
#line 381 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2118 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 102: /* itemized2: itemized2 bulletitem2 */
|
|
#line 382 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2124 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 103: /* bulletitem2: bulletpar2 */
|
|
#line 385 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2130 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 104: /* bulletitem2: bulletitem2 followup2 */
|
|
#line 386 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2136 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 105: /* bulletpar2: BULLET2 paragraph_rest */
|
|
#line 390 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\item "),
|
|
concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2143 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 106: /* followup2: FOLLOW2 paragraph_rest */
|
|
#line 395 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2149 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 107: /* enum2: enumitem2 */
|
|
#line 398 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2155 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 108: /* enum2: enum2 enumitem2 */
|
|
#line 399 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2161 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 109: /* enumitem2: enumpar2 */
|
|
#line 402 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2167 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 110: /* enumitem2: enumitem2 followup2 */
|
|
#line 403 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2173 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 111: /* enumpar2: ENUM2 paragraph_rest */
|
|
#line 407 "PDParser.y"
|
|
{yyval = concat(atomc("\n \\item "),
|
|
concat(yyvsp[0], atomc("\n\n")));}
|
|
#line 2180 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 112: /* paragraph_rest: text annotations EPAR */
|
|
#line 427 "PDParser.y"
|
|
{yyval = yyvsp[-2];}
|
|
#line 2186 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 113: /* text: %empty */
|
|
#line 430 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2192 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 114: /* text: netext */
|
|
#line 431 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2198 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 115: /* netext: start_elem */
|
|
#line 434 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2204 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 116: /* netext: netext start_elem */
|
|
#line 435 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2210 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 117: /* netext: netext follow_elem */
|
|
#line 436 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2216 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 118: /* start_elem: text_char */
|
|
#line 439 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2222 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 119: /* start_elem: TILDE */
|
|
#line 440 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2228 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 120: /* start_elem: STAR */
|
|
#line 441 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2234 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 121: /* start_elem: DUS */
|
|
#line 442 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2240 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 122: /* start_elem: QUOTE */
|
|
#line 443 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2246 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 123: /* start_elem: emphasized */
|
|
#line 444 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2252 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 124: /* start_elem: bold_face */
|
|
#line 445 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2258 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 125: /* start_elem: typewriter */
|
|
#line 446 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2264 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 126: /* start_elem: special_char_format */
|
|
#line 447 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2270 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 127: /* start_elem: bracketed */
|
|
#line 448 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2276 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 128: /* follow_elem: HEAD1 */
|
|
#line 451 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2282 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 129: /* follow_elem: HEAD2 */
|
|
#line 452 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2288 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 130: /* follow_elem: HEAD3 */
|
|
#line 453 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2294 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 131: /* follow_elem: HEAD4 */
|
|
#line 454 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2300 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 132: /* follow_elem: HEAD5 */
|
|
#line 455 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2306 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 133: /* follow_elem: ENUM1 */
|
|
#line 456 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2312 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 134: /* follow_elem: ENUM2 */
|
|
#line 457 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2318 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 135: /* follow_elem: FOLLOW1 */
|
|
#line 458 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2324 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 136: /* follow_elem: FOLLOW2 */
|
|
#line 459 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2330 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 137: /* follow_elem: BULLET1 */
|
|
#line 460 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2336 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 138: /* follow_elem: BULLET2 */
|
|
#line 461 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2342 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 139: /* follow_elem: DISPLAY */
|
|
#line 462 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2348 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 140: /* follow_elem: FIGURE */
|
|
#line 463 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2354 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 141: /* follow_elem: STARTREF */
|
|
#line 464 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2360 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 142: /* follow_elem: REF */
|
|
#line 465 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2366 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 143: /* text_char: ftext_char */
|
|
#line 468 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2372 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 144: /* text_char: ':' */
|
|
#line 469 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2378 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 145: /* ftext_char: LETTER */
|
|
#line 472 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2384 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 146: /* ftext_char: DIGIT */
|
|
#line 473 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2390 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 147: /* ftext_char: OTHER */
|
|
#line 474 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2396 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 148: /* ftext_char: BLANKTILDE */
|
|
#line 475 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2402 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 149: /* ftext_char: BLANKSTAR */
|
|
#line 476 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2408 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 150: /* ftext_char: BLANKDUS */
|
|
#line 477 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2414 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 151: /* ftext_char: BLANKQUOTE */
|
|
#line 478 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2420 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 152: /* ftext_char: '\\' */
|
|
#line 479 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2426 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 153: /* ftext_char: ' ' */
|
|
#line 480 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2432 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 154: /* ftext_char: '.' */
|
|
#line 481 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2438 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 155: /* ftext_char: PARFORMAT */
|
|
#line 482 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2444 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 156: /* ftext_char: CHARFORMAT */
|
|
#line 483 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2450 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 157: /* emphasized: '~' unemph_list '~' */
|
|
#line 486 "PDParser.y"
|
|
{yyval = concat(atomc("{\\em "),
|
|
concat(yyvsp[-1],
|
|
atomc("\\/}")));
|
|
}
|
|
#line 2459 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 158: /* bold_face: '*' unbold_list '*' */
|
|
#line 492 "PDParser.y"
|
|
{yyval = concat(atomc("{\\bf "),
|
|
concat(yyvsp[-1],
|
|
atomc("}")));
|
|
}
|
|
#line 2468 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 159: /* typewriter: TTFORMAT untt_list TTFORMAT */
|
|
#line 498 "PDParser.y"
|
|
{yyval = concat(atomc("{\\tt "),
|
|
concat(yyvsp[-1],
|
|
atomc("}")));
|
|
}
|
|
#line 2477 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 160: /* unemph_list: %empty */
|
|
#line 504 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2483 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 161: /* unemph_list: unemph_list unemph */
|
|
#line 505 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2489 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 162: /* untt_list: %empty */
|
|
#line 508 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2495 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 163: /* untt_list: untt_list untt */
|
|
#line 509 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2501 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 164: /* unemph: text_char */
|
|
#line 512 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2507 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 165: /* unemph: TILDE */
|
|
#line 513 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2513 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 166: /* unemph: STAR */
|
|
#line 514 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2519 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 167: /* unemph: DUS */
|
|
#line 515 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2525 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 168: /* unemph: QUOTE */
|
|
#line 516 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2531 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 169: /* unemph: follow_elem */
|
|
#line 517 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2537 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 170: /* unemph: special_char_format */
|
|
#line 518 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2543 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 171: /* unemph: bracketed */
|
|
#line 519 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2549 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 172: /* untt: text_char */
|
|
#line 522 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2555 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 173: /* untt: TILDE */
|
|
#line 523 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2561 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 174: /* untt: STAR */
|
|
#line 524 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2567 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 175: /* untt: DUS */
|
|
#line 525 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2573 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 176: /* untt: QUOTE */
|
|
#line 526 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2579 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 177: /* untt: follow_elem */
|
|
#line 527 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2585 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 178: /* untt: '*' unboldemph_list '*' */
|
|
#line 528 "PDParser.y"
|
|
{yyval = concat(atomc("{\\bf "),
|
|
concat(yyvsp[-1],
|
|
atomc("}")));}
|
|
#line 2593 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 179: /* untt: special_char_format */
|
|
#line 531 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2599 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 180: /* untt: bracketed */
|
|
#line 532 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2605 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 181: /* unbold_list: %empty */
|
|
#line 535 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2611 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 182: /* unbold_list: unbold_list unbold */
|
|
#line 536 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2617 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 183: /* unbold: text_char */
|
|
#line 539 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2623 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 184: /* unbold: TILDE */
|
|
#line 540 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2629 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 185: /* unbold: STAR */
|
|
#line 541 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2635 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 186: /* unbold: DUS */
|
|
#line 542 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2641 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 187: /* unbold: QUOTE */
|
|
#line 543 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2647 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 188: /* unbold: follow_elem */
|
|
#line 544 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2653 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 189: /* unbold: '~' unboldemph_list '~' */
|
|
#line 545 "PDParser.y"
|
|
{yyval = concat(atomc("{\\em "),
|
|
concat(yyvsp[-1],
|
|
atomc("\\/}")));}
|
|
#line 2661 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 190: /* unbold: special_char_format */
|
|
#line 548 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2667 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 191: /* unbold: bracketed */
|
|
#line 549 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2673 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 192: /* unboldemph_list: %empty */
|
|
#line 552 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2679 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 193: /* unboldemph_list: unboldemph_list unboldemph */
|
|
#line 553 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2685 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 194: /* unboldemph: text_char */
|
|
#line 556 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2691 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 195: /* unboldemph: TILDE */
|
|
#line 557 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2697 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 196: /* unboldemph: STAR */
|
|
#line 558 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2703 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 197: /* unboldemph: DUS */
|
|
#line 559 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2709 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 198: /* unboldemph: QUOTE */
|
|
#line 560 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2715 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 199: /* unboldemph: follow_elem */
|
|
#line 561 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2721 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 200: /* unboldemph: special_char_format */
|
|
#line 562 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2727 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 201: /* unboldemph: bracketed */
|
|
#line 563 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2733 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 202: /* plain_list: %empty */
|
|
#line 566 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2739 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 203: /* plain_list: plain_list plain */
|
|
#line 567 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2745 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 204: /* plain: text_char */
|
|
#line 570 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2751 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 205: /* plain: TILDE */
|
|
#line 571 "PDParser.y"
|
|
{yyval = atomc("~");}
|
|
#line 2757 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 206: /* plain: STAR */
|
|
#line 572 "PDParser.y"
|
|
{yyval = atomc("*");}
|
|
#line 2763 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 207: /* plain: DUS */
|
|
#line 573 "PDParser.y"
|
|
{yyval = atomc("__");}
|
|
#line 2769 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 208: /* plain: QUOTE */
|
|
#line 574 "PDParser.y"
|
|
{yyval = atomc("\"");}
|
|
#line 2775 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 209: /* plain: bracketed */
|
|
#line 575 "PDParser.y"
|
|
{yyval = yyvsp[0];}
|
|
#line 2781 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 210: /* special_char_format: '"' plain_list '"' REF */
|
|
#line 585 "PDParser.y"
|
|
{int i;
|
|
|
|
i = get_ref_index(yyvsp[0]);
|
|
cindex = lookup_def(i);
|
|
if (cindex >= 0) /* def was found */
|
|
{yyval = concat(
|
|
atomc(definitions[cindex].open),
|
|
concat(yyvsp[-2],
|
|
atomc(definitions[cindex].close) ));
|
|
}
|
|
else /* ignore special format */
|
|
yyval = yyvsp[-2];
|
|
}
|
|
#line 2799 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 211: /* special_char_format: '"' plain_list '"' */
|
|
#line 601 "PDParser.y"
|
|
{if (cindex >= 0) /* def exists */
|
|
{yyval = concat(
|
|
atomc(definitions[cindex].open),
|
|
concat(yyvsp[-1],
|
|
atomc(definitions[cindex].close) ));
|
|
}
|
|
else /* ignore special format */
|
|
yyval = yyvsp[-1];
|
|
}
|
|
#line 2813 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 212: /* bracketed: '[' btext ']' */
|
|
#line 620 "PDParser.y"
|
|
{char bracketstring[BRACKETLENGTH];
|
|
int i;
|
|
int length;
|
|
|
|
copyout(yyvsp[-1], bracketstring, BRACKETLENGTH);
|
|
length = strlen(bracketstring);
|
|
|
|
if (length <= CODELENGTH - 1)
|
|
{i = lookup_schar(bracketstring);
|
|
if (i >= 0) /* found */
|
|
yyval = atomc(schars[i].command);
|
|
else
|
|
yyval = concat(yyvsp[-2],
|
|
concat(yyvsp[-1], yyvsp[0]));
|
|
}
|
|
else
|
|
yyval = concat(yyvsp[-2], concat(yyvsp[-1], yyvsp[0]));
|
|
}
|
|
#line 2836 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 213: /* btext: %empty */
|
|
#line 640 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2842 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 214: /* btext: btext text_char */
|
|
#line 641 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2848 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 215: /* btext: btext TILDE */
|
|
#line 642 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("~"));}
|
|
#line 2854 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 216: /* btext: btext STAR */
|
|
#line 643 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("*"));}
|
|
#line 2860 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 217: /* btext: btext DUS */
|
|
#line 644 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("__"));}
|
|
#line 2866 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 218: /* btext: btext QUOTE */
|
|
#line 645 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], atomc("\""));}
|
|
#line 2872 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 219: /* btext: btext follow_elem */
|
|
#line 646 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2878 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 220: /* btext: btext '"' */
|
|
#line 647 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2884 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 221: /* btext: btext '*' */
|
|
#line 648 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2890 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 222: /* btext: btext '~' */
|
|
#line 649 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2896 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 223: /* btext: btext '[' btext ']' */
|
|
#line 652 "PDParser.y"
|
|
{char bracketstring[BRACKETLENGTH];
|
|
int i;
|
|
int length;
|
|
|
|
copyout(yyvsp[-1], bracketstring, BRACKETLENGTH);
|
|
length = strlen(bracketstring);
|
|
|
|
if (length <= CODELENGTH - 1)
|
|
{i = lookup_schar(bracketstring);
|
|
if (i >= 0) /* found */
|
|
yyval = concat(yyvsp[-3], atomc(schars[i].command));
|
|
else
|
|
{yyval = concat(yyvsp[-3],
|
|
concat(yyvsp[-2],
|
|
concat(yyvsp[-1], yyvsp[0])));}
|
|
}
|
|
else
|
|
{yyval = concat(yyvsp[-3],
|
|
concat(yyvsp[-2],
|
|
concat(yyvsp[-1], yyvsp[0])));}
|
|
}
|
|
#line 2922 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 224: /* bracketed2: '[' btext2 ']' */
|
|
#line 680 "PDParser.y"
|
|
{yyval = yyvsp[-1];}
|
|
#line 2928 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 225: /* btext2: %empty */
|
|
#line 683 "PDParser.y"
|
|
{yyval = atomc("");}
|
|
#line 2934 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 226: /* btext2: btext2 text_char */
|
|
#line 684 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2940 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 227: /* btext2: btext2 TILDE */
|
|
#line 685 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2946 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 228: /* btext2: btext2 STAR */
|
|
#line 686 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2952 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 229: /* btext2: btext2 DUS */
|
|
#line 687 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2958 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 230: /* btext2: btext2 QUOTE */
|
|
#line 688 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2964 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 231: /* btext2: btext2 follow_elem */
|
|
#line 689 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2970 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 232: /* btext2: btext2 '"' */
|
|
#line 690 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2976 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 233: /* btext2: btext2 '*' */
|
|
#line 691 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2982 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 234: /* btext2: btext2 '~' */
|
|
#line 692 "PDParser.y"
|
|
{yyval = concat(yyvsp[-1], yyvsp[0]);}
|
|
#line 2988 "PDParser.tab.c"
|
|
break;
|
|
|
|
case 235: /* btext2: btext2 '[' btext2 ']' */
|
|
#line 693 "PDParser.y"
|
|
{yyval = concat(yyvsp[-3],
|
|
concat(yyvsp[-2],
|
|
concat(yyvsp[-1], yyvsp[0])));}
|
|
#line 2996 "PDParser.tab.c"
|
|
break;
|
|
|
|
|
|
#line 3000 "PDParser.tab.c"
|
|
|
|
default: break;
|
|
}
|
|
/* User semantic actions sometimes alter yychar, and that requires
|
|
that yytoken be updated with the new translation. We take the
|
|
approach of translating immediately before every use of yytoken.
|
|
One alternative is translating here after every semantic action,
|
|
but that translation would be missed if the semantic action invokes
|
|
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
|
|
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
|
|
incorrect destructor might then be invoked immediately. In the
|
|
case of YYERROR or YYBACKUP, subsequent parser actions might lead
|
|
to an incorrect destructor call or verbose syntax error message
|
|
before the lookahead is translated. */
|
|
YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
|
|
|
|
YYPOPSTACK (yylen);
|
|
yylen = 0;
|
|
|
|
*++yyvsp = yyval;
|
|
|
|
/* Now 'shift' the result of the reduction. Determine what state
|
|
that goes to, based on the state we popped back to and the rule
|
|
number reduced by. */
|
|
{
|
|
const int yylhs = yyr1[yyn] - YYNTOKENS;
|
|
const int yyi = yypgoto[yylhs] + *yyssp;
|
|
yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
|
|
? yytable[yyi]
|
|
: yydefgoto[yylhs]);
|
|
}
|
|
|
|
goto yynewstate;
|
|
|
|
|
|
/*--------------------------------------.
|
|
| yyerrlab -- here on detecting error. |
|
|
`--------------------------------------*/
|
|
yyerrlab:
|
|
/* Make sure we have latest lookahead translation. See comments at
|
|
user semantic actions for why this is necessary. */
|
|
yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
|
|
/* If not already recovering from an error, report this error. */
|
|
if (!yyerrstatus)
|
|
{
|
|
++yynerrs;
|
|
yyerror (YY_("syntax error"));
|
|
}
|
|
|
|
if (yyerrstatus == 3)
|
|
{
|
|
/* If just tried and failed to reuse lookahead token after an
|
|
error, discard it. */
|
|
|
|
if (yychar <= YYEOF)
|
|
{
|
|
/* Return failure if at end of input. */
|
|
if (yychar == YYEOF)
|
|
YYABORT;
|
|
}
|
|
else
|
|
{
|
|
yydestruct ("Error: discarding",
|
|
yytoken, &yylval);
|
|
yychar = YYEMPTY;
|
|
}
|
|
}
|
|
|
|
/* Else will try to reuse lookahead token after shifting the error
|
|
token. */
|
|
goto yyerrlab1;
|
|
|
|
|
|
/*---------------------------------------------------.
|
|
| yyerrorlab -- error raised explicitly by YYERROR. |
|
|
`---------------------------------------------------*/
|
|
yyerrorlab:
|
|
/* Pacify compilers when the user code never invokes YYERROR and the
|
|
label yyerrorlab therefore never appears in user code. */
|
|
if (0)
|
|
YYERROR;
|
|
++yynerrs;
|
|
|
|
/* Do not reclaim the symbols of the rule whose action triggered
|
|
this YYERROR. */
|
|
YYPOPSTACK (yylen);
|
|
yylen = 0;
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
yystate = *yyssp;
|
|
goto yyerrlab1;
|
|
|
|
|
|
/*-------------------------------------------------------------.
|
|
| yyerrlab1 -- common code for both syntax error and YYERROR. |
|
|
`-------------------------------------------------------------*/
|
|
yyerrlab1:
|
|
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
|
|
|
/* Pop stack until we find a state that shifts the error token. */
|
|
for (;;)
|
|
{
|
|
yyn = yypact[yystate];
|
|
if (!yypact_value_is_default (yyn))
|
|
{
|
|
yyn += YYSYMBOL_YYerror;
|
|
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
|
|
{
|
|
yyn = yytable[yyn];
|
|
if (0 < yyn)
|
|
break;
|
|
}
|
|
}
|
|
|
|
/* Pop the current state because it cannot handle the error token. */
|
|
if (yyssp == yyss)
|
|
YYABORT;
|
|
|
|
|
|
yydestruct ("Error: popping",
|
|
YY_ACCESSING_SYMBOL (yystate), yyvsp);
|
|
YYPOPSTACK (1);
|
|
yystate = *yyssp;
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
}
|
|
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
*++yyvsp = yylval;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
|
|
/* Shift the error token. */
|
|
YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
|
|
|
|
yystate = yyn;
|
|
goto yynewstate;
|
|
|
|
|
|
/*-------------------------------------.
|
|
| yyacceptlab -- YYACCEPT comes here. |
|
|
`-------------------------------------*/
|
|
yyacceptlab:
|
|
yyresult = 0;
|
|
goto yyreturnlab;
|
|
|
|
|
|
/*-----------------------------------.
|
|
| yyabortlab -- YYABORT comes here. |
|
|
`-----------------------------------*/
|
|
yyabortlab:
|
|
yyresult = 1;
|
|
goto yyreturnlab;
|
|
|
|
|
|
/*-----------------------------------------------------------.
|
|
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
|
|
`-----------------------------------------------------------*/
|
|
yyexhaustedlab:
|
|
yyerror (YY_("memory exhausted"));
|
|
yyresult = 2;
|
|
goto yyreturnlab;
|
|
|
|
|
|
/*----------------------------------------------------------.
|
|
| yyreturnlab -- parsing is finished, clean up and return. |
|
|
`----------------------------------------------------------*/
|
|
yyreturnlab:
|
|
if (yychar != YYEMPTY)
|
|
{
|
|
/* Make sure we have latest lookahead translation. See comments at
|
|
user semantic actions for why this is necessary. */
|
|
yytoken = YYTRANSLATE (yychar);
|
|
yydestruct ("Cleanup: discarding lookahead",
|
|
yytoken, &yylval);
|
|
}
|
|
/* Do not reclaim the symbols of the rule whose action triggered
|
|
this YYABORT or YYACCEPT. */
|
|
YYPOPSTACK (yylen);
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
while (yyssp != yyss)
|
|
{
|
|
yydestruct ("Cleanup: popping",
|
|
YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
|
|
YYPOPSTACK (1);
|
|
}
|
|
#ifndef yyoverflow
|
|
if (yyss != yyssa)
|
|
YYSTACK_FREE (yyss);
|
|
#endif
|
|
|
|
return yyresult;
|
|
}
|
|
|
|
#line 702 "PDParser.y"
|
|
|
|
|
|
#include "PDLex.c"
|
|
|