| 1 |
/* A Bison parser, made by GNU Bison 3.8.2. */ |
| 2 |
|
| 3 |
/* Bison interface for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
| 6 |
Inc. |
| 7 |
|
| 8 |
This program is free software: you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation, either version 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* As a special exception, you may create a larger work that contains |
| 22 |
part or all of the Bison parser skeleton and distribute that work |
| 23 |
under terms of your choice, so long as that work isn't itself a |
| 24 |
parser generator using the skeleton or a modified version thereof |
| 25 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 26 |
the parser skeleton itself, you may (at your option) remove this |
| 27 |
special exception, which will cause the skeleton and the resulting |
| 28 |
Bison output files to be licensed under the GNU General Public |
| 29 |
License without this special exception. |
| 30 |
|
| 31 |
This special exception was added by the Free Software Foundation in |
| 32 |
version 2.2 of Bison. */ |
| 33 |
|
| 34 |
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, |
| 35 |
especially those whose name start with YY_ or yy_. They are |
| 36 |
private implementation details that can be changed or removed. */ |
| 37 |
|
| 38 |
#ifndef YY_YY_PARSER_H_INCLUDED |
| 39 |
# define YY_YY_PARSER_H_INCLUDED |
| 40 |
/* Debug traces. */ |
| 41 |
#ifndef YYDEBUG |
| 42 |
# define YYDEBUG 0 |
| 43 |
#endif |
| 44 |
#if YYDEBUG |
| 45 |
extern int yydebug; |
| 46 |
#endif |
| 47 |
|
| 48 |
/* Token kinds. */ |
| 49 |
#ifndef YYTOKENTYPE |
| 50 |
# define YYTOKENTYPE |
| 51 |
enum yytokentype |
| 52 |
{ |
| 53 |
YYEMPTY = -2, |
| 54 |
YYEOF = 0, /* "end of file" */ |
| 55 |
YYerror = 256, /* error */ |
| 56 |
YYUNDEF = 257, /* "invalid token" */ |
| 57 |
START = 258, /* "<" */ |
| 58 |
END = 259, /* ">" */ |
| 59 |
GLYPH = 260, /* "glyph" */ |
| 60 |
UNSIGNED = 261, /* UNSIGNED */ |
| 61 |
REFERENCE = 262, /* REFERENCE */ |
| 62 |
SIGNED = 263, /* SIGNED */ |
| 63 |
STRING = 264, /* STRING */ |
| 64 |
CHARCODE = 265, /* CHARCODE */ |
| 65 |
FPNUM = 266, /* FPNUM */ |
| 66 |
DIMEN = 267, /* "dimen" */ |
| 67 |
PT = 268, /* "pt" */ |
| 68 |
MM = 269, /* "mm" */ |
| 69 |
INCH = 270, /* "in" */ |
| 70 |
XDIMEN = 271, /* "xdimen" */ |
| 71 |
H = 272, /* "h" */ |
| 72 |
V = 273, /* "v" */ |
| 73 |
FIL = 274, /* "fil" */ |
| 74 |
FILL = 275, /* "fill" */ |
| 75 |
FILLL = 276, /* "filll" */ |
| 76 |
PENALTY = 277, /* "penalty" */ |
| 77 |
INTEGER = 278, /* "int" */ |
| 78 |
LANGUAGE = 279, /* "language" */ |
| 79 |
RULE = 280, /* "rule" */ |
| 80 |
RUNNING = 281, /* "|" */ |
| 81 |
KERN = 282, /* "kern" */ |
| 82 |
EXPLICIT = 283, /* "!" */ |
| 83 |
GLUE = 284, /* "glue" */ |
| 84 |
PLUS = 285, /* "plus" */ |
| 85 |
MINUS = 286, /* "minus" */ |
| 86 |
TXT_START = 287, /* TXT_START */ |
| 87 |
TXT_END = 288, /* TXT_END */ |
| 88 |
TXT_IGNORE = 289, /* TXT_IGNORE */ |
| 89 |
TXT_FONT_GLUE = 290, /* TXT_FONT_GLUE */ |
| 90 |
TXT_FONT_HYPHEN = 291, /* TXT_FONT_HYPHEN */ |
| 91 |
TXT_FONT = 292, /* TXT_FONT */ |
| 92 |
TXT_LOCAL = 293, /* TXT_LOCAL */ |
| 93 |
TXT_GLOBAL = 294, /* TXT_GLOBAL */ |
| 94 |
TXT_CC = 295, /* TXT_CC */ |
| 95 |
HBOX = 296, /* "hbox" */ |
| 96 |
VBOX = 297, /* "vbox" */ |
| 97 |
SHIFTED = 298, /* "shifted" */ |
| 98 |
HPACK = 299, /* "hpack" */ |
| 99 |
HSET = 300, /* "hset" */ |
| 100 |
VPACK = 301, /* "vpack" */ |
| 101 |
VSET = 302, /* "vset" */ |
| 102 |
DEPTH = 303, /* "depth" */ |
| 103 |
ADD = 304, /* "add" */ |
| 104 |
TO = 305, /* "to" */ |
| 105 |
LEADERS = 306, /* "leaders" */ |
| 106 |
ALIGN = 307, /* "align" */ |
| 107 |
CENTER = 308, /* "center" */ |
| 108 |
EXPAND = 309, /* "expand" */ |
| 109 |
BASELINE = 310, /* "baseline" */ |
| 110 |
LIGATURE = 311, /* "ligature" */ |
| 111 |
DISC = 312, /* "disc" */ |
| 112 |
PAR = 313, /* "par" */ |
| 113 |
MATH = 314, /* "math" */ |
| 114 |
ON = 315, /* "on" */ |
| 115 |
OFF = 316, /* "off" */ |
| 116 |
ADJUST = 317, /* "adjust" */ |
| 117 |
TABLE = 318, /* "table" */ |
| 118 |
ITEM = 319, /* "item" */ |
| 119 |
IMAGE = 320, /* "image" */ |
| 120 |
WIDTH = 321, /* "width" */ |
| 121 |
HEIGHT = 322, /* "height" */ |
| 122 |
LABEL = 323, /* "label" */ |
| 123 |
BOT = 324, /* "bot" */ |
| 124 |
MID = 325, /* "mid" */ |
| 125 |
LINK = 326, /* "link" */ |
| 126 |
OUTLINE = 327, /* "outline" */ |
| 127 |
COLOR = 328, /* "color" */ |
| 128 |
UNKNOWN = 329, /* "unknown" */ |
| 129 |
STREAM = 330, /* "stream" */ |
| 130 |
STREAMDEF = 331, /* "stream (definition)" */ |
| 131 |
FIRST = 332, /* "first" */ |
| 132 |
LAST = 333, /* "last" */ |
| 133 |
TOP = 334, /* "top" */ |
| 134 |
NOREFERENCE = 335, /* "*" */ |
| 135 |
PAGE = 336, /* "page" */ |
| 136 |
RANGE = 337, /* "range" */ |
| 137 |
DIRECTORY = 338, /* "directory" */ |
| 138 |
SECTION = 339, /* "entry" */ |
| 139 |
DEFINITIONS = 340, /* "definitions" */ |
| 140 |
MAX = 341, /* "max" */ |
| 141 |
PARAM = 342, /* "param" */ |
| 142 |
FONT = 343, /* "font" */ |
| 143 |
CONTENT = 344 /* "content" */ |
| 144 |
}; |
| 145 |
typedef enum yytokentype yytoken_kind_t; |
| 146 |
#endif |
| 147 |
|
| 148 |
/* Value type. */ |
| 149 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 150 |
union YYSTYPE |
| 151 |
{ |
| 152 |
#line 79 "parser.y" |
| 153 |
|
| 154 |
#line 11706 "format.w" |
| 155 |
uint32_t u; int32_t i; char *s; float64_t f; Glyph c; |
| 156 |
Dimen d;Stretch st;Xdimen xd;Kern kt; |
| 157 |
Rule r;Glue g;Image x; |
| 158 |
List l;Box h;Disc dc;Lig lg; |
| 159 |
Ref rf;Info info;Order o;bool b; |
| 160 |
|
| 161 |
|
| 162 |
#line 163 "hiparser.h" |
| 163 |
|
| 164 |
}; |
| 165 |
typedef union YYSTYPE YYSTYPE; |
| 166 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 167 |
# define YYSTYPE_IS_DECLARED 1 |
| 168 |
#endif |
| 169 |
|
| 170 |
|
| 171 |
extern YYSTYPE yylval; |
| 172 |
|
| 173 |
|
| 174 |
int yyparse (void); |
| 175 |
|
| 176 |
|
| 177 |
#endif /* !YY_YY_PARSER_H_INCLUDED */ |