Debian Codegraph @

texk/web2c/hitexdir/hiparser.c

raw
1 /* A Bison parser, made by GNU Bison 3.8.2. */
2
3 /* Bison implementation 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 /* C LALR(1) parser skeleton written by Richard Stallman, by
35 simplifying the original so-called "semantic" parser. */
36
37 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
38 especially those whose name start with YY_ or yy_. They are
39 private implementation details that can be changed or removed. */
40
41 /* All symbols defined below should begin with yy or YY, to avoid
42 infringing on user name space. This should be done even for local
43 variables, as they might otherwise be expanded by user macros.
44 There are some unavoidable exceptions within include files to
45 define necessary library symbols; they are noted "INFRINGES ON
46 USER NAME SPACE" below. */
47
48 /* Identify Bison output, and Bison version. */
49 #define YYBISON 30802
50
51 /* Bison version string. */
52 #define YYBISON_VERSION "3.8.2"
53
54 /* Skeleton name. */
55 #define YYSKELETON_NAME "yacc.c"
56
57 /* Pure parsers. */
58 #define YYPURE 0
59
60 /* Push parsers. */
61 #define YYPUSH 0
62
63 /* Pull parsers. */
64 #define YYPULL 1
65
66
67
68
69 /* First part of user prologue. */
70 #line 2 "parser.y"
71
72 #line 11681 "format.w"
73
74 #include "hibasetypes.h"
75 #include <string.h>
76 #include <math.h>
77 #include "hierror.h"
78 #include "hiformat.h"
79 #include "hiput.h"
80 extern char**hfont_name;
81
82 /*392:*/
83 uint32_t definition_bits[0x100/32][32]= {
84 #line 8790 "format.w"
85 {0}};
86
87 #define SET_DBIT(N,K) ((N)>0xFF?1:(definition_bits[N/32][K] |= (1<<((N)&(32-1)))))
88 #define GET_DBIT(N,K) ((N)>0xFF?1:((definition_bits[N/32][K]>>((N)&(32-1)))&1))
89 #define DEF(D,K,N) (D).k= K; (D).n= (N);SET_DBIT((D).n,(D).k);\
90 DBG(DBGDEF,"Defining %s %d\n",definition_name[(D).k],(D).n);\
91 RNG("Definition",(D).n,max_fixed[(D).k]+1,max_ref[(D).k]);
92 #define REF(K,N) REF_RNG(K,N);if(!GET_DBIT(N,K)) \
93 QUIT("Reference %d to %s before definition",(N),definition_name[K])
94 /*:392*/ /*396:*/
95 #define DEF_REF(D,K,M,N) DEF(D,K,M);\
96 if ((int)(M)>max_default[K]) QUIT("Defining non default reference %d for %s",M,definition_name[K]); \
97 if ((int)(N)>max_fixed[K]) QUIT("Defining reference %d for %s by non fixed reference %d",M,definition_name[K],N);
98 /*:396*/
99
100 extern void hset_entry(Entry*e,uint16_t i,uint32_t size,
101 uint32_t xsize,char*file_name);
102
103 /*464:*/
104 #ifdef DEBUG
105 #define YYDEBUG 1
106 extern int yydebug;
107 #else
108 #define YYDEBUG 0
109 #endif
110 /*:464*/
111 extern int yylex(void);
112
113 /*388:*/
114 void hset_max(Kind k,int n)
115 {
116 #line 8631 "format.w"
117 DBG(DBGDEF,"Setting max %s to %d\n",definition_name[k],n);
118 RNG("Maximum",n,max_fixed[k]+1,MAX_REF(k));
119 if(n>max_ref[k])
120 max_ref[k]= n;
121 }
122 /*:388*/ /*399:*/
123 void check_param_def(Ref*df)
124 {
125 #line 8951 "format.w"
126 if(df->k!=int_kind&&df->k!=dimen_kind&&df->k!=glue_kind)
127 QUIT("Kind %s not allowed in parameter list",definition_name[df->k]);
128 if(df->n<=max_fixed[df->k]||max_default[df->k]<df->n)
129 QUIT("Parameter %d for %s not allowed in parameter list",df->n,definition_name[df->k]);
130 }
131 /*:399*/ /*463:*/
132 extern int yylineno;
133 int yyerror(const char*msg)
134 {
135 #line 10147 "format.w"
136 QUIT(" in line %d %s",yylineno,msg);
137 return 0;
138 }
139 /*:463*/
140
141
142
143 #line 144 "parser.c"
144
145 # ifndef YY_CAST
146 # ifdef __cplusplus
147 # define YY_CAST(Type, Val) static_cast<Type> (Val)
148 # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
149 # else
150 # define YY_CAST(Type, Val) ((Type) (Val))
151 # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
152 # endif
153 # endif
154 # ifndef YY_NULLPTR
155 # if defined __cplusplus
156 # if 201103L <= __cplusplus
157 # define YY_NULLPTR nullptr
158 # else
159 # define YY_NULLPTR 0
160 # endif
161 # else
162 # define YY_NULLPTR ((void*)0)
163 # endif
164 # endif
165
166 #include "hiparser.h"
167 /* Symbol kind. */
168 enum yysymbol_kind_t
169 {
170 YYSYMBOL_YYEMPTY = -2,
171 YYSYMBOL_YYEOF = 0, /* "end of file" */
172 YYSYMBOL_YYerror = 1, /* error */
173 YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
174 YYSYMBOL_START = 3, /* "<" */
175 YYSYMBOL_END = 4, /* ">" */
176 YYSYMBOL_GLYPH = 5, /* "glyph" */
177 YYSYMBOL_UNSIGNED = 6, /* UNSIGNED */
178 YYSYMBOL_REFERENCE = 7, /* REFERENCE */
179 YYSYMBOL_SIGNED = 8, /* SIGNED */
180 YYSYMBOL_STRING = 9, /* STRING */
181 YYSYMBOL_CHARCODE = 10, /* CHARCODE */
182 YYSYMBOL_FPNUM = 11, /* FPNUM */
183 YYSYMBOL_DIMEN = 12, /* "dimen" */
184 YYSYMBOL_PT = 13, /* "pt" */
185 YYSYMBOL_MM = 14, /* "mm" */
186 YYSYMBOL_INCH = 15, /* "in" */
187 YYSYMBOL_XDIMEN = 16, /* "xdimen" */
188 YYSYMBOL_H = 17, /* "h" */
189 YYSYMBOL_V = 18, /* "v" */
190 YYSYMBOL_FIL = 19, /* "fil" */
191 YYSYMBOL_FILL = 20, /* "fill" */
192 YYSYMBOL_FILLL = 21, /* "filll" */
193 YYSYMBOL_PENALTY = 22, /* "penalty" */
194 YYSYMBOL_INTEGER = 23, /* "int" */
195 YYSYMBOL_LANGUAGE = 24, /* "language" */
196 YYSYMBOL_RULE = 25, /* "rule" */
197 YYSYMBOL_RUNNING = 26, /* "|" */
198 YYSYMBOL_KERN = 27, /* "kern" */
199 YYSYMBOL_EXPLICIT = 28, /* "!" */
200 YYSYMBOL_GLUE = 29, /* "glue" */
201 YYSYMBOL_PLUS = 30, /* "plus" */
202 YYSYMBOL_MINUS = 31, /* "minus" */
203 YYSYMBOL_TXT_START = 32, /* TXT_START */
204 YYSYMBOL_TXT_END = 33, /* TXT_END */
205 YYSYMBOL_TXT_IGNORE = 34, /* TXT_IGNORE */
206 YYSYMBOL_TXT_FONT_GLUE = 35, /* TXT_FONT_GLUE */
207 YYSYMBOL_TXT_FONT_HYPHEN = 36, /* TXT_FONT_HYPHEN */
208 YYSYMBOL_TXT_FONT = 37, /* TXT_FONT */
209 YYSYMBOL_TXT_LOCAL = 38, /* TXT_LOCAL */
210 YYSYMBOL_TXT_GLOBAL = 39, /* TXT_GLOBAL */
211 YYSYMBOL_TXT_CC = 40, /* TXT_CC */
212 YYSYMBOL_HBOX = 41, /* "hbox" */
213 YYSYMBOL_VBOX = 42, /* "vbox" */
214 YYSYMBOL_SHIFTED = 43, /* "shifted" */
215 YYSYMBOL_HPACK = 44, /* "hpack" */
216 YYSYMBOL_HSET = 45, /* "hset" */
217 YYSYMBOL_VPACK = 46, /* "vpack" */
218 YYSYMBOL_VSET = 47, /* "vset" */
219 YYSYMBOL_DEPTH = 48, /* "depth" */
220 YYSYMBOL_ADD = 49, /* "add" */
221 YYSYMBOL_TO = 50, /* "to" */
222 YYSYMBOL_LEADERS = 51, /* "leaders" */
223 YYSYMBOL_ALIGN = 52, /* "align" */
224 YYSYMBOL_CENTER = 53, /* "center" */
225 YYSYMBOL_EXPAND = 54, /* "expand" */
226 YYSYMBOL_BASELINE = 55, /* "baseline" */
227 YYSYMBOL_LIGATURE = 56, /* "ligature" */
228 YYSYMBOL_DISC = 57, /* "disc" */
229 YYSYMBOL_PAR = 58, /* "par" */
230 YYSYMBOL_MATH = 59, /* "math" */
231 YYSYMBOL_ON = 60, /* "on" */
232 YYSYMBOL_OFF = 61, /* "off" */
233 YYSYMBOL_ADJUST = 62, /* "adjust" */
234 YYSYMBOL_TABLE = 63, /* "table" */
235 YYSYMBOL_ITEM = 64, /* "item" */
236 YYSYMBOL_IMAGE = 65, /* "image" */
237 YYSYMBOL_WIDTH = 66, /* "width" */
238 YYSYMBOL_HEIGHT = 67, /* "height" */
239 YYSYMBOL_LABEL = 68, /* "label" */
240 YYSYMBOL_BOT = 69, /* "bot" */
241 YYSYMBOL_MID = 70, /* "mid" */
242 YYSYMBOL_LINK = 71, /* "link" */
243 YYSYMBOL_OUTLINE = 72, /* "outline" */
244 YYSYMBOL_COLOR = 73, /* "color" */
245 YYSYMBOL_UNKNOWN = 74, /* "unknown" */
246 YYSYMBOL_STREAM = 75, /* "stream" */
247 YYSYMBOL_STREAMDEF = 76, /* "stream (definition)" */
248 YYSYMBOL_FIRST = 77, /* "first" */
249 YYSYMBOL_LAST = 78, /* "last" */
250 YYSYMBOL_TOP = 79, /* "top" */
251 YYSYMBOL_NOREFERENCE = 80, /* "*" */
252 YYSYMBOL_PAGE = 81, /* "page" */
253 YYSYMBOL_RANGE = 82, /* "range" */
254 YYSYMBOL_DIRECTORY = 83, /* "directory" */
255 YYSYMBOL_SECTION = 84, /* "entry" */
256 YYSYMBOL_DEFINITIONS = 85, /* "definitions" */
257 YYSYMBOL_MAX = 86, /* "max" */
258 YYSYMBOL_PARAM = 87, /* "param" */
259 YYSYMBOL_FONT = 88, /* "font" */
260 YYSYMBOL_CONTENT = 89, /* "content" */
261 YYSYMBOL_YYACCEPT = 90, /* $accept */
262 YYSYMBOL_glyph = 91, /* glyph */
263 YYSYMBOL_content_node = 92, /* content_node */
264 YYSYMBOL_start = 93, /* start */
265 YYSYMBOL_integer = 94, /* integer */
266 YYSYMBOL_string = 95, /* string */
267 YYSYMBOL_number = 96, /* number */
268 YYSYMBOL_dimension = 97, /* dimension */
269 YYSYMBOL_xdimen = 98, /* xdimen */
270 YYSYMBOL_xdimen_node = 99, /* xdimen_node */
271 YYSYMBOL_order = 100, /* order */
272 YYSYMBOL_stretch = 101, /* stretch */
273 YYSYMBOL_penalty = 102, /* penalty */
274 YYSYMBOL_rule_dimension = 103, /* rule_dimension */
275 YYSYMBOL_rule = 104, /* rule */
276 YYSYMBOL_rule_node = 105, /* rule_node */
277 YYSYMBOL_explicit = 106, /* explicit */
278 YYSYMBOL_kern = 107, /* kern */
279 YYSYMBOL_plus = 108, /* plus */
280 YYSYMBOL_minus = 109, /* minus */
281 YYSYMBOL_glue = 110, /* glue */
282 YYSYMBOL_glue_node = 111, /* glue_node */
283 YYSYMBOL_position = 112, /* position */
284 YYSYMBOL_content_list = 113, /* content_list */
285 YYSYMBOL_estimate = 114, /* estimate */
286 YYSYMBOL_list = 115, /* list */
287 YYSYMBOL_116_1 = 116, /* $@1 */
288 YYSYMBOL_text = 117, /* text */
289 YYSYMBOL_txt = 118, /* txt */
290 YYSYMBOL_119_2 = 119, /* $@2 */
291 YYSYMBOL_box_dimen = 120, /* box_dimen */
292 YYSYMBOL_box_shift = 121, /* box_shift */
293 YYSYMBOL_box_glue_set = 122, /* box_glue_set */
294 YYSYMBOL_box = 123, /* box */
295 YYSYMBOL_hbox_node = 124, /* hbox_node */
296 YYSYMBOL_vbox_node = 125, /* vbox_node */
297 YYSYMBOL_box_flex = 126, /* box_flex */
298 YYSYMBOL_box_options = 127, /* box_options */
299 YYSYMBOL_hxbox_node = 128, /* hxbox_node */
300 YYSYMBOL_vbox_dimen = 129, /* vbox_dimen */
301 YYSYMBOL_vxbox_node = 130, /* vxbox_node */
302 YYSYMBOL_box_goal = 131, /* box_goal */
303 YYSYMBOL_hpack = 132, /* hpack */
304 YYSYMBOL_max_depth = 133, /* max_depth */
305 YYSYMBOL_vpack = 134, /* vpack */
306 YYSYMBOL_135_3 = 135, /* $@3 */
307 YYSYMBOL_136_4 = 136, /* $@4 */
308 YYSYMBOL_ltype = 137, /* ltype */
309 YYSYMBOL_leaders = 138, /* leaders */
310 YYSYMBOL_baseline = 139, /* baseline */
311 YYSYMBOL_140_5 = 140, /* $@5 */
312 YYSYMBOL_cc_list = 141, /* cc_list */
313 YYSYMBOL_lig_cc = 142, /* lig_cc */
314 YYSYMBOL_ref = 143, /* ref */
315 YYSYMBOL_ligature = 144, /* ligature */
316 YYSYMBOL_145_6 = 145, /* $@6 */
317 YYSYMBOL_replace_count = 146, /* replace_count */
318 YYSYMBOL_disc = 147, /* disc */
319 YYSYMBOL_disc_node = 148, /* disc_node */
320 YYSYMBOL_par_dimen = 149, /* par_dimen */
321 YYSYMBOL_par = 150, /* par */
322 YYSYMBOL_151_7 = 151, /* $@7 */
323 YYSYMBOL_math = 152, /* math */
324 YYSYMBOL_on_off = 153, /* on_off */
325 YYSYMBOL_span_count = 154, /* span_count */
326 YYSYMBOL_table = 155, /* table */
327 YYSYMBOL_image_aspect = 156, /* image_aspect */
328 YYSYMBOL_image_width = 157, /* image_width */
329 YYSYMBOL_image_height = 158, /* image_height */
330 YYSYMBOL_image_spec = 159, /* image_spec */
331 YYSYMBOL_image = 160, /* image */
332 YYSYMBOL_max_value = 161, /* max_value */
333 YYSYMBOL_placement = 162, /* placement */
334 YYSYMBOL_def_node = 163, /* def_node */
335 YYSYMBOL_color = 164, /* color */
336 YYSYMBOL_color_pair = 165, /* color_pair */
337 YYSYMBOL_color_unset = 166, /* color_unset */
338 YYSYMBOL_color_tripple = 167, /* color_tripple */
339 YYSYMBOL_color_set = 168, /* color_set */
340 YYSYMBOL_169_8 = 169, /* $@8 */
341 YYSYMBOL_unknown_bytes = 170, /* unknown_bytes */
342 YYSYMBOL_unknown_node = 171, /* unknown_node */
343 YYSYMBOL_unknown_nodes = 172, /* unknown_nodes */
344 YYSYMBOL_stream_link = 173, /* stream_link */
345 YYSYMBOL_stream_split = 174, /* stream_split */
346 YYSYMBOL_stream_info = 175, /* stream_info */
347 YYSYMBOL_176_9 = 176, /* $@9 */
348 YYSYMBOL_stream_type = 177, /* stream_type */
349 YYSYMBOL_stream_def_node = 178, /* stream_def_node */
350 YYSYMBOL_stream_ins_node = 179, /* stream_ins_node */
351 YYSYMBOL_stream = 180, /* stream */
352 YYSYMBOL_page_priority = 181, /* page_priority */
353 YYSYMBOL_stream_def_list = 182, /* stream_def_list */
354 YYSYMBOL_page = 183, /* page */
355 YYSYMBOL_184_10 = 184, /* $@10 */
356 YYSYMBOL_185_11 = 185, /* $@11 */
357 YYSYMBOL_hint = 186, /* hint */
358 YYSYMBOL_directory_section = 187, /* directory_section */
359 YYSYMBOL_188_12 = 188, /* $@12 */
360 YYSYMBOL_entry_list = 189, /* entry_list */
361 YYSYMBOL_entry = 190, /* entry */
362 YYSYMBOL_definition_section = 191, /* definition_section */
363 YYSYMBOL_192_13 = 192, /* $@13 */
364 YYSYMBOL_definition_list = 193, /* definition_list */
365 YYSYMBOL_max_definitions = 194, /* max_definitions */
366 YYSYMBOL_max_list = 195, /* max_list */
367 YYSYMBOL_def_list = 196, /* def_list */
368 YYSYMBOL_parameters = 197, /* parameters */
369 YYSYMBOL_named_param_list = 198, /* named_param_list */
370 YYSYMBOL_param_list = 199, /* param_list */
371 YYSYMBOL_font = 200, /* font */
372 YYSYMBOL_font_head = 201, /* font_head */
373 YYSYMBOL_font_param_list = 202, /* font_param_list */
374 YYSYMBOL_font_param = 203, /* font_param */
375 YYSYMBOL_fref = 204, /* fref */
376 YYSYMBOL_xdimen_ref = 205, /* xdimen_ref */
377 YYSYMBOL_param_ref = 206, /* param_ref */
378 YYSYMBOL_stream_ref = 207, /* stream_ref */
379 YYSYMBOL_content_section = 208, /* content_section */
380 YYSYMBOL_209_14 = 209 /* $@14 */
381 };
382 typedef enum yysymbol_kind_t yysymbol_kind_t;
383
384
385
386
387 #ifdef short
388 # undef short
389 #endif
390
391 /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
392 <limits.h> and (if available) <stdint.h> are included
393 so that the code can choose integer types of a good width. */
394
395 #ifndef __PTRDIFF_MAX__
396 # include <limits.h> /* INFRINGES ON USER NAME SPACE */
397 # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
398 # include <stdint.h> /* INFRINGES ON USER NAME SPACE */
399 # define YY_STDINT_H
400 # endif
401 #endif
402
403 /* Narrow types that promote to a signed type and that can represent a
404 signed or unsigned integer of at least N bits. In tables they can
405 save space and decrease cache pressure. Promoting to a signed type
406 helps avoid bugs in integer arithmetic. */
407
408 #ifdef __INT_LEAST8_MAX__
409 typedef __INT_LEAST8_TYPE__ yytype_int8;
410 #elif defined YY_STDINT_H
411 typedef int_least8_t yytype_int8;
412 #else
413 typedef signed char yytype_int8;
414 #endif
415
416 #ifdef __INT_LEAST16_MAX__
417 typedef __INT_LEAST16_TYPE__ yytype_int16;
418 #elif defined YY_STDINT_H
419 typedef int_least16_t yytype_int16;
420 #else
421 typedef short yytype_int16;
422 #endif
423
424 /* Work around bug in HP-UX 11.23, which defines these macros
425 incorrectly for preprocessor constants. This workaround can likely
426 be removed in 2023, as HPE has promised support for HP-UX 11.23
427 (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
428 <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
429 #ifdef __hpux
430 # undef UINT_LEAST8_MAX
431 # undef UINT_LEAST16_MAX
432 # define UINT_LEAST8_MAX 255
433 # define UINT_LEAST16_MAX 65535
434 #endif
435
436 #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
437 typedef __UINT_LEAST8_TYPE__ yytype_uint8;
438 #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
439 && UINT_LEAST8_MAX <= INT_MAX)
440 typedef uint_least8_t yytype_uint8;
441 #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
442 typedef unsigned char yytype_uint8;
443 #else
444 typedef short yytype_uint8;
445 #endif
446
447 #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
448 typedef __UINT_LEAST16_TYPE__ yytype_uint16;
449 #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
450 && UINT_LEAST16_MAX <= INT_MAX)
451 typedef uint_least16_t yytype_uint16;
452 #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
453 typedef unsigned short yytype_uint16;
454 #else
455 typedef int yytype_uint16;
456 #endif
457
458 #ifndef YYPTRDIFF_T
459 # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
460 # define YYPTRDIFF_T __PTRDIFF_TYPE__
461 # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
462 # elif defined PTRDIFF_MAX
463 # ifndef ptrdiff_t
464 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
465 # endif
466 # define YYPTRDIFF_T ptrdiff_t
467 # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
468 # else
469 # define YYPTRDIFF_T long
470 # define YYPTRDIFF_MAXIMUM LONG_MAX
471 # endif
472 #endif
473
474 #ifndef YYSIZE_T
475 # ifdef __SIZE_TYPE__
476 # define YYSIZE_T __SIZE_TYPE__
477 # elif defined size_t
478 # define YYSIZE_T size_t
479 # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
480 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
481 # define YYSIZE_T size_t
482 # else
483 # define YYSIZE_T unsigned
484 # endif
485 #endif
486
487 #define YYSIZE_MAXIMUM \
488 YY_CAST (YYPTRDIFF_T, \
489 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
490 ? YYPTRDIFF_MAXIMUM \
491 : YY_CAST (YYSIZE_T, -1)))
492
493 #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
494
495
496 /* Stored state numbers (used for stacks). */
497 typedef yytype_int16 yy_state_t;
498
499 /* State numbers in computations. */
500 typedef int yy_state_fast_t;
501
502 #ifndef YY_
503 # if defined YYENABLE_NLS && YYENABLE_NLS
504 # if ENABLE_NLS
505 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
506 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
507 # endif
508 # endif
509 # ifndef YY_
510 # define YY_(Msgid) Msgid
511 # endif
512 #endif
513
514
515 #ifndef YY_ATTRIBUTE_PURE
516 # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
517 # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
518 # else
519 # define YY_ATTRIBUTE_PURE
520 # endif
521 #endif
522
523 #ifndef YY_ATTRIBUTE_UNUSED
524 # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
525 # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
526 # else
527 # define YY_ATTRIBUTE_UNUSED
528 # endif
529 #endif
530
531 /* Suppress unused-variable warnings by "using" E. */
532 #if ! defined lint || defined __GNUC__
533 # define YY_USE(E) ((void) (E))
534 #else
535 # define YY_USE(E) /* empty */
536 #endif
537
538 /* Suppress an incorrect diagnostic about yylval being uninitialized. */
539 #if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
540 # if __GNUC__ * 100 + __GNUC_MINOR__ < 407
541 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
542 _Pragma ("GCC diagnostic push") \
543 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
544 # else
545 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
546 _Pragma ("GCC diagnostic push") \
547 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
548 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
549 # endif
550 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
551 _Pragma ("GCC diagnostic pop")
552 #else
553 # define YY_INITIAL_VALUE(Value) Value
554 #endif
555 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
556 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
557 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
558 #endif
559 #ifndef YY_INITIAL_VALUE
560 # define YY_INITIAL_VALUE(Value) /* Nothing. */
561 #endif
562
563 #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
564 # define YY_IGNORE_USELESS_CAST_BEGIN \
565 _Pragma ("GCC diagnostic push") \
566 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
567 # define YY_IGNORE_USELESS_CAST_END \
568 _Pragma ("GCC diagnostic pop")
569 #endif
570 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
571 # define YY_IGNORE_USELESS_CAST_BEGIN
572 # define YY_IGNORE_USELESS_CAST_END
573 #endif
574
575
576 #define YY_ASSERT(E) ((void) (0 && (E)))
577
578 #if 1
579
580 /* The parser invokes alloca or malloc; define the necessary symbols. */
581
582 # ifdef YYSTACK_USE_ALLOCA
583 # if YYSTACK_USE_ALLOCA
584 # ifdef __GNUC__
585 # define YYSTACK_ALLOC __builtin_alloca
586 # elif defined __BUILTIN_VA_ARG_INCR
587 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
588 # elif defined _AIX
589 # define YYSTACK_ALLOC __alloca
590 # elif defined _MSC_VER
591 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
592 # define alloca _alloca
593 # else
594 # define YYSTACK_ALLOC alloca
595 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
596 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
597 /* Use EXIT_SUCCESS as a witness for stdlib.h. */
598 # ifndef EXIT_SUCCESS
599 # define EXIT_SUCCESS 0
600 # endif
601 # endif
602 # endif
603 # endif
604 # endif
605
606 # ifdef YYSTACK_ALLOC
607 /* Pacify GCC's 'empty if-body' warning. */
608 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
609 # ifndef YYSTACK_ALLOC_MAXIMUM
610 /* The OS might guarantee only one guard page at the bottom of the stack,
611 and a page size can be as small as 4096 bytes. So we cannot safely
612 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
613 to allow for a few compiler-allocated temporary stack slots. */
614 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
615 # endif
616 # else
617 # define YYSTACK_ALLOC YYMALLOC
618 # define YYSTACK_FREE YYFREE
619 # ifndef YYSTACK_ALLOC_MAXIMUM
620 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
621 # endif
622 # if (defined __cplusplus && ! defined EXIT_SUCCESS \
623 && ! ((defined YYMALLOC || defined malloc) \
624 && (defined YYFREE || defined free)))
625 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
626 # ifndef EXIT_SUCCESS
627 # define EXIT_SUCCESS 0
628 # endif
629 # endif
630 # ifndef YYMALLOC
631 # define YYMALLOC malloc
632 # if ! defined malloc && ! defined EXIT_SUCCESS
633 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
634 # endif
635 # endif
636 # ifndef YYFREE
637 # define YYFREE free
638 # if ! defined free && ! defined EXIT_SUCCESS
639 void free (void *); /* INFRINGES ON USER NAME SPACE */
640 # endif
641 # endif
642 # endif
643 #endif /* 1 */
644
645 #if (! defined yyoverflow \
646 && (! defined __cplusplus \
647 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
648
649 /* A type that is properly aligned for any stack member. */
650 union yyalloc
651 {
652 yy_state_t yyss_alloc;
653 YYSTYPE yyvs_alloc;
654 };
655
656 /* The size of the maximum gap between one aligned stack and the next. */
657 # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
658
659 /* The size of an array large to enough to hold all stacks, each with
660 N elements. */
661 # define YYSTACK_BYTES(N) \
662 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
663 + YYSTACK_GAP_MAXIMUM)
664
665 # define YYCOPY_NEEDED 1
666
667 /* Relocate STACK from its old location to the new one. The
668 local variables YYSIZE and YYSTACKSIZE give the old and new number of
669 elements in the stack, and YYPTR gives the new location of the
670 stack. Advance YYPTR to a properly aligned location for the next
671 stack. */
672 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
673 do \
674 { \
675 YYPTRDIFF_T yynewbytes; \
676 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
677 Stack = &yyptr->Stack_alloc; \
678 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
679 yyptr += yynewbytes / YYSIZEOF (*yyptr); \
680 } \
681 while (0)
682
683 #endif
684
685 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
686 /* Copy COUNT objects from SRC to DST. The source and destination do
687 not overlap. */
688 # ifndef YYCOPY
689 # if defined __GNUC__ && 1 < __GNUC__
690 # define YYCOPY(Dst, Src, Count) \
691 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
692 # else
693 # define YYCOPY(Dst, Src, Count) \
694 do \
695 { \
696 YYPTRDIFF_T yyi; \
697 for (yyi = 0; yyi < (Count); yyi++) \
698 (Dst)[yyi] = (Src)[yyi]; \
699 } \
700 while (0)
701 # endif
702 # endif
703 #endif /* !YYCOPY_NEEDED */
704
705 /* YYFINAL -- State number of the termination state. */
706 #define YYFINAL 5
707 /* YYLAST -- Last index in YYTABLE. */
708 #define YYLAST 761
709
710 /* YYNTOKENS -- Number of terminals. */
711 #define YYNTOKENS 90
712 /* YYNNTS -- Number of nonterminals. */
713 #define YYNNTS 120
714 /* YYNRULES -- Number of rules. */
715 #define YYNRULES 303
716 /* YYNSTATES -- Number of states. */
717 #define YYNSTATES 638
718
719 /* YYMAXUTOK -- Last valid token kind. */
720 #define YYMAXUTOK 344
721
722
723 /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
724 as returned by yylex, with out-of-bounds checking. */
725 #define YYTRANSLATE(YYX) \
726 (0 <= (YYX) && (YYX) <= YYMAXUTOK \
727 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
728 : YYSYMBOL_YYUNDEF)
729
730 /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
731 as returned by yylex. */
732 static const yytype_int8 yytranslate[] =
733 {
734 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
735 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
736 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
737 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
738 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
739 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
740 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
741 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
742 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
743 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
744 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
745 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
746 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
747 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
748 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
749 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
750 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
751 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
752 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
753 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
754 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
755 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
756 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
757 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
758 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
759 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
760 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
761 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
762 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
763 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
764 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
765 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
766 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
767 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
768 85, 86, 87, 88, 89
769 };
770
771 #if YYDEBUG
772 /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
773 static const yytype_int16 yyrline[] =
774 {
775 0, 276, 276, 279, 282, 286, 286, 290, 294, 294,
776 300, 302, 304, 306, 309, 312, 316, 319, 322, 325,
777 329, 334, 336, 338, 340, 344, 348, 351, 355, 355,
778 358, 364, 367, 369, 371, 374, 377, 381, 383, 386,
779 388, 391, 394, 398, 404, 407, 408, 409, 412, 415,
780 422, 421, 430, 430, 432, 435, 438, 441, 444, 447,
781 450, 453, 453, 458, 462, 465, 469, 472, 475, 480,
782 484, 487, 490, 490, 492, 496, 499, 503, 507, 508,
783 513, 517, 520, 523, 526, 530, 534, 538, 540, 544,
784 544, 549, 549, 555, 559, 559, 561, 563, 565, 567,
785 570, 573, 576, 579, 583, 583, 592, 597, 597, 600,
786 603, 606, 609, 609, 616, 620, 623, 627, 631, 634,
787 639, 644, 646, 649, 652, 655, 655, 660, 664, 668,
788 671, 674, 677, 680, 683, 687, 691, 693, 696, 700,
789 704, 707, 710, 713, 717, 720, 724, 728, 730, 733,
790 736, 739, 742, 746, 750, 754, 758, 763, 767, 771,
791 778, 780, 782, 784, 787, 792, 796, 801, 811, 818,
792 825, 829, 830, 833, 837, 838, 839, 842, 843, 845,
793 845, 852, 856, 861, 864, 868, 871, 873, 876, 876,
794 876, 876, 877, 879, 883, 885, 888, 891, 891, 895,
795 897, 899, 901, 905, 911, 916, 916, 918, 921, 924,
796 929, 932, 936, 936, 938, 940, 938, 947, 950, 954,
797 956, 956, 959, 959, 960, 965, 965, 972, 972, 974,
798 1007, 1007, 1009, 1012, 1015, 1018, 1021, 1024, 1027, 1030,
799 1033, 1036, 1039, 1042, 1045, 1048, 1051, 1054, 1057, 1060,
800 1066, 1069, 1072, 1075, 1078, 1081, 1084, 1087, 1090, 1093,
801 1096, 1099, 1102, 1105, 1110, 1113, 1116, 1120, 1121, 1124,
802 1128, 1132, 1132, 1138, 1140, 1144, 1151, 1151, 1154, 1157,
803 1160, 1163, 1166, 1169, 1172, 1175, 1179, 1183, 1186, 1189,
804 1195, 1198, 1202, 1206, 1209, 1212, 1215, 1218, 1221, 1224,
805 1227, 1231, 1238, 1238
806 };
807 #endif
808
809 /** Accessing symbol of state STATE. */
810 #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
811
812 #if 1
813 /* The user-facing name of the symbol whose (internal) number is
814 YYSYMBOL. No bounds checking. */
815 static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
816
817 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
818 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
819 static const char *const yytname[] =
820 {
821 "\"end of file\"", "error", "\"invalid token\"", "\"<\"", "\">\"",
822 "\"glyph\"", "UNSIGNED", "REFERENCE", "SIGNED", "STRING", "CHARCODE",
823 "FPNUM", "\"dimen\"", "\"pt\"", "\"mm\"", "\"in\"", "\"xdimen\"",
824 "\"h\"", "\"v\"", "\"fil\"", "\"fill\"", "\"filll\"", "\"penalty\"",
825 "\"int\"", "\"language\"", "\"rule\"", "\"|\"", "\"kern\"", "\"!\"",
826 "\"glue\"", "\"plus\"", "\"minus\"", "TXT_START", "TXT_END",
827 "TXT_IGNORE", "TXT_FONT_GLUE", "TXT_FONT_HYPHEN", "TXT_FONT",
828 "TXT_LOCAL", "TXT_GLOBAL", "TXT_CC", "\"hbox\"", "\"vbox\"",
829 "\"shifted\"", "\"hpack\"", "\"hset\"", "\"vpack\"", "\"vset\"",
830 "\"depth\"", "\"add\"", "\"to\"", "\"leaders\"", "\"align\"",
831 "\"center\"", "\"expand\"", "\"baseline\"", "\"ligature\"", "\"disc\"",
832 "\"par\"", "\"math\"", "\"on\"", "\"off\"", "\"adjust\"", "\"table\"",
833 "\"item\"", "\"image\"", "\"width\"", "\"height\"", "\"label\"",
834 "\"bot\"", "\"mid\"", "\"link\"", "\"outline\"", "\"color\"",
835 "\"unknown\"", "\"stream\"", "\"stream (definition)\"", "\"first\"",
836 "\"last\"", "\"top\"", "\"*\"", "\"page\"", "\"range\"", "\"directory\"",
837 "\"entry\"", "\"definitions\"", "\"max\"", "\"param\"", "\"font\"",
838 "\"content\"", "$accept", "glyph", "content_node", "start", "integer",
839 "string", "number", "dimension", "xdimen", "xdimen_node", "order",
840 "stretch", "penalty", "rule_dimension", "rule", "rule_node", "explicit",
841 "kern", "plus", "minus", "glue", "glue_node", "position", "content_list",
842 "estimate", "list", "$@1", "text", "txt", "$@2", "box_dimen",
843 "box_shift", "box_glue_set", "box", "hbox_node", "vbox_node", "box_flex",
844 "box_options", "hxbox_node", "vbox_dimen", "vxbox_node", "box_goal",
845 "hpack", "max_depth", "vpack", "$@3", "$@4", "ltype", "leaders",
846 "baseline", "$@5", "cc_list", "lig_cc", "ref", "ligature", "$@6",
847 "replace_count", "disc", "disc_node", "par_dimen", "par", "$@7", "math",
848 "on_off", "span_count", "table", "image_aspect", "image_width",
849 "image_height", "image_spec", "image", "max_value", "placement",
850 "def_node", "color", "color_pair", "color_unset", "color_tripple",
851 "color_set", "$@8", "unknown_bytes", "unknown_node", "unknown_nodes",
852 "stream_link", "stream_split", "stream_info", "$@9", "stream_type",
853 "stream_def_node", "stream_ins_node", "stream", "page_priority",
854 "stream_def_list", "page", "$@10", "$@11", "hint", "directory_section",
855 "$@12", "entry_list", "entry", "definition_section", "$@13",
856 "definition_list", "max_definitions", "max_list", "def_list",
857 "parameters", "named_param_list", "param_list", "font", "font_head",
858 "font_param_list", "font_param", "fref", "xdimen_ref", "param_ref",
859 "stream_ref", "content_section", "$@14", YY_NULLPTR
860 };
861
862 static const char *
863 yysymbol_name (yysymbol_kind_t yysymbol)
864 {
865 return yytname[yysymbol];
866 }
867 #endif
868
869 #define YYPACT_NINF (-408)
870
871 #define yypact_value_is_default(Yyn) \
872 ((Yyn) == YYPACT_NINF)
873
874 #define YYTABLE_NINF (-1)
875
876 #define yytable_value_is_error(Yyn) \
877 0
878
879 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
880 STATE-NUM. */
881 static const yytype_int16 yypact[] =
882 {
883 86, -5, 111, 141, 144, -408, 72, 196, -408, -408,
884 117, -408, -408, 207, -408, 121, 132, -408, -408, 145,
885 -408, -408, -408, 185, -408, 220, 241, 253, 181, -408,
886 203, -408, 50, -408, -408, 685, -408, -408, -408, -408,
887 -408, -408, -408, -408, 261, 396, -408, 287, 299, 299,
888 299, 299, 299, 299, 299, 299, 299, 299, 299, 299,
889 310, 299, 299, 299, 314, 331, 103, 227, 334, 186,
890 319, 244, 166, 166, 324, 166, 54, 80, 146, 244,
891 299, 75, 244, 78, 55, 282, 96, 272, 346, 66,
892 372, 299, 299, -408, -408, 375, 376, 379, 380, 381,
893 382, 383, 384, 385, 386, 388, 389, 391, 392, 393,
894 394, 395, 397, 400, 401, 398, 157, -408, 244, 166,
895 227, 261, 205, 244, 406, 166, 299, 319, 404, -408,
896 405, 261, 407, 261, 38, 303, 408, 409, 410, -408,
897 -408, -408, 418, 419, 420, -408, -408, -408, -408, 337,
898 -408, 205, 422, 423, -408, 214, 424, 166, 403, 426,
899 431, 166, 324, 432, 433, 166, 316, 434, 324, 354,
900 402, -408, 437, 166, -408, 324, -408, 413, 291, 440,
901 441, -408, 442, 444, 451, 452, 453, 456, 55, 458,
902 299, -408, 406, 459, 146, -408, -408, 47, -408, 461,
903 -408, -408, 55, 55, -408, 407, 462, 316, 316, 463,
904 -408, 467, 630, 471, 454, 166, 475, 55, 476, 308,
905 477, 481, -408, -408, 146, 58, -408, -408, -408, -408,
906 -408, -408, -408, -408, -408, -408, -408, -408, -408, -408,
907 -408, -408, -408, -408, -408, -408, -408, -408, 486, 487,
908 488, 490, 491, 493, 494, 495, 496, 498, 499, -408,
909 501, 502, 503, 506, 240, -408, 507, -408, -408, 508,
910 166, 509, 406, -408, -408, -408, 510, 511, 512, -408,
911 -408, -408, -408, -408, -408, -408, -408, -408, 205, -408,
912 -408, 299, -408, 513, -408, 353, 166, 479, -408, -408,
913 166, 342, -408, -408, -408, 146, 146, 55, -408, 403,
914 514, -408, 166, 324, -408, 166, 516, 244, -408, -408,
915 -408, 406, -408, -408, 406, -408, -408, -408, 190, -408,
916 -408, -408, 55, -408, -408, 55, -408, 55, 55, 407,
917 517, -408, 65, 406, 55, 406, 55, -408, -408, -408,
918 55, 55, -408, -408, -408, 518, -408, 457, -408, -408,
919 -408, 210, -408, -408, 519, 520, 55, 55, -408, -408,
920 -408, -408, 515, 521, -408, 55, 55, -408, -408, -408,
921 -408, -408, -408, -408, -408, -408, -408, -408, -408, -408,
922 -408, 525, 506, 528, -408, 529, 523, -408, -408, 531,
923 -408, 532, -408, 406, 406, -408, -408, -408, -408, 533,
924 -408, 166, -408, 147, -408, 166, -408, -408, 166, 166,
925 55, -408, -408, -408, -408, -408, 479, 146, -408, 324,
926 -408, 316, 166, -408, 535, 536, 79, -408, -408, -408,
927 406, -408, -408, 522, -408, 55, -408, -408, -408, 537,
928 -408, 504, -408, -408, -408, -408, -408, 371, 55, 55,
929 -408, 258, 468, -408, 539, -408, 94, -408, -408, -408,
930 166, -408, 406, 542, 236, 525, -408, -408, -408, -408,
931 -408, 406, -408, 543, 500, -408, 216, -408, -408, 534,
932 -408, -408, -408, -408, -408, -408, -408, -408, -408, -408,
933 55, 55, 316, 55, -408, -408, -408, 205, -408, -408,
934 -408, -408, -408, 292, -408, -408, -408, 483, -408, 296,
935 -408, -408, -408, -408, 575, -408, -408, -408, -408, 547,
936 43, 406, -408, 549, -408, 330, 525, -408, -408, 166,
937 -408, 319, 299, 299, 299, 299, 299, 299, 299, 299,
938 -408, -408, -408, 55, -408, 112, -408, -408, -408, -408,
939 -408, -408, -408, -408, -408, 454, 307, -408, -408, -408,
940 -408, -408, -408, 43, -408, 55, 550, -408, 554, 555,
941 556, 557, -408, -408, -408, 157, 261, 205, 319, 166,
942 299, 319, 404, -408, -408, -408, -408, -408, 558, 406,
943 559, -408, -408, -408, -408, 406, 562, 563, 564, 166,
944 565, 566, 567, 568, 569, -408, 570, 283, 406, -408,
945 -408, -408, -408, -408, -408, -408, -408, -408, -408, 571,
946 55, -408, -408, 406, 530, -408, 299, 64
947 };
948
949 /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
950 Performed when YYTABLE does not specify something else to do. Zero
951 means the default is an error. */
952 static const yytype_int16 yydefact[] =
953 {
954 0, 0, 0, 0, 0, 1, 0, 0, 220, 225,
955 0, 219, 222, 0, 302, 0, 0, 227, 44, 0,
956 221, 223, 230, 0, 45, 0, 0, 0, 4, 226,
957 0, 228, 4, 303, 46, 0, 32, 72, 73, 95,
958 94, 121, 205, 206, 0, 0, 229, 0, 0, 0,
959 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
960 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
961 33, 0, 0, 0, 64, 0, 87, 0, 0, 0,
962 0, 33, 0, 0, 0, 0, 0, 0, 0, 0,
963 0, 0, 0, 8, 9, 0, 0, 0, 0, 0,
964 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
965 0, 0, 0, 0, 0, 0, 0, 111, 0, 0,
966 0, 0, 0, 0, 0, 0, 0, 33, 0, 179,
967 0, 0, 47, 0, 163, 0, 0, 0, 0, 6,
968 5, 26, 0, 0, 0, 10, 11, 12, 29, 0,
969 28, 0, 0, 0, 34, 0, 0, 19, 37, 0,
970 0, 0, 64, 0, 0, 0, 0, 0, 64, 87,
971 0, 89, 0, 0, 78, 64, 4, 0, 96, 0,
972 0, 104, 0, 0, 112, 0, 115, 0, 119, 0,
973 122, 287, 0, 0, 0, 136, 137, 47, 288, 0,
974 138, 271, 0, 0, 44, 47, 0, 0, 0, 0,
975 140, 0, 47, 0, 0, 148, 0, 0, 0, 0,
976 0, 0, 186, 289, 0, 0, 224, 234, 243, 233,
977 238, 239, 237, 241, 242, 235, 236, 240, 248, 159,
978 249, 245, 246, 247, 244, 232, 231, 44, 0, 0,
979 0, 0, 0, 0, 0, 0, 0, 0, 0, 112,
980 0, 0, 0, 0, 0, 214, 0, 48, 44, 0,
981 0, 0, 0, 161, 162, 160, 0, 0, 0, 2,
982 7, 3, 27, 290, 300, 13, 15, 14, 0, 31,
983 296, 0, 35, 0, 36, 0, 0, 39, 42, 293,
984 0, 66, 70, 71, 65, 0, 0, 0, 86, 37,
985 0, 91, 0, 64, 93, 0, 0, 0, 97, 98,
986 99, 0, 103, 298, 0, 106, 299, 294, 0, 114,
987 116, 295, 118, 120, 125, 0, 128, 0, 0, 47,
988 0, 135, 47, 132, 0, 129, 0, 50, 44, 139,
989 0, 0, 146, 141, 143, 0, 147, 150, 297, 157,
990 158, 0, 182, 181, 192, 0, 0, 0, 204, 200,
991 201, 202, 0, 0, 199, 0, 0, 252, 265, 255,
992 251, 264, 253, 256, 254, 266, 257, 258, 259, 260,
993 261, 0, 173, 0, 183, 0, 210, 263, 267, 269,
994 262, 0, 250, 0, 273, 164, 217, 218, 30, 0,
995 291, 17, 18, 0, 38, 0, 41, 63, 0, 0,
996 0, 84, 82, 83, 81, 85, 39, 0, 77, 64,
997 88, 0, 0, 80, 0, 0, 0, 100, 101, 102,
998 0, 109, 110, 0, 117, 0, 127, 124, 123, 0,
999 272, 0, 133, 134, 130, 131, 44, 0, 0, 0,
1000 142, 0, 152, 165, 0, 187, 0, 209, 207, 208,
1001 0, 197, 0, 0, 0, 173, 173, 177, 180, 184,
1002 211, 0, 268, 275, 0, 276, 0, 277, 292, 0,
1003 21, 22, 23, 24, 25, 40, 67, 68, 69, 74,
1004 0, 0, 0, 0, 79, 43, 301, 0, 105, 107,
1005 126, 270, 52, 61, 49, 144, 145, 152, 149, 0,
1006 153, 166, 185, 188, 47, 189, 190, 193, 191, 0,
1007 0, 0, 167, 0, 170, 0, 173, 173, 173, 0,
1008 274, 33, 0, 0, 0, 0, 0, 0, 0, 0,
1009 16, 76, 75, 0, 90, 0, 51, 60, 58, 59,
1010 55, 57, 56, 54, 53, 0, 0, 154, 155, 151,
1011 20, 195, 194, 0, 198, 0, 0, 172, 0, 0,
1012 0, 0, 178, 215, 286, 0, 0, 0, 33, 0,
1013 0, 33, 0, 92, 113, 108, 62, 156, 0, 0,
1014 0, 171, 176, 175, 174, 0, 0, 0, 0, 0,
1015 0, 0, 0, 0, 0, 196, 0, 0, 0, 278,
1016 283, 284, 279, 282, 280, 281, 285, 203, 169, 0,
1017 0, 168, 212, 216, 0, 213, 0, 0
1018 };
1019
1020 /* YYPGOTO[NTERM-NUM]. */
1021 static const yytype_int16 yypgoto[] =
1022 {
1023 -408, -408, -83, -23, 88, -100, -123, -3, -65, -263,
1024 -408, -233, -32, -104, -99, 242, -69, -26, 268, 152,
1025 -119, -245, -163, 231, -102, -27, -408, -408, -408, -408,
1026 260, -52, -408, 538, -138, 262, -408, 411, -408, -408,
1027 -408, -156, -408, 416, -408, -408, -408, -408, 464, 465,
1028 -408, -408, -408, -43, -101, -408, -408, -98, 184, -408,
1029 -408, -408, -408, 370, -408, -408, -408, -408, 77, -408,
1030 -96, -408, -408, 193, 61, -407, -382, 206, -408, -408,
1031 -408, -408, -408, 28, -408, -408, -408, -408, -28, -408,
1032 -408, -408, -408, -408, -408, -408, -408, -408, -408, -408,
1033 -408, -408, -408, -408, -408, -408, -408, -152, 142, -78,
1034 -408, -408, -408, -408, -187, -249, -94, -408, -408, -408
1035 };
1036
1037 /* YYDEFGOTO[NTERM-NUM]. */
1038 static const yytype_int16 yydefgoto[] =
1039 {
1040 0, 138, 34, 205, 141, 95, 149, 157, 158, 373,
1041 494, 414, 142, 151, 152, 36, 186, 156, 297, 416,
1042 159, 178, 24, 25, 348, 206, 456, 513, 564, 565,
1043 162, 309, 420, 163, 37, 38, 427, 310, 39, 175,
1044 40, 307, 167, 171, 172, 313, 429, 321, 179, 182,
1045 324, 555, 443, 584, 185, 328, 188, 189, 41, 192,
1046 193, 445, 199, 200, 214, 209, 357, 462, 520, 217,
1047 218, 115, 276, 31, 535, 475, 476, 392, 393, 263,
1048 364, 527, 466, 573, 574, 374, 530, 375, 42, 43,
1049 365, 481, 633, 266, 396, 605, 2, 3, 12, 15,
1050 21, 7, 13, 23, 17, 27, 399, 269, 201, 202,
1051 271, 272, 404, 487, 585, 194, 203, 224, 11, 18
1052 };
1053
1054 /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
1055 positive, shift that token. If negative, reduce the rule whose
1056 number is the opposite. If YYTABLE_NINF, syntax error. */
1057 static const yytype_int16 yytable[] =
1058 {
1059 30, 155, 35, 211, 255, 118, 119, 120, 121, 122,
1060 123, 124, 125, 126, 127, 128, 129, 190, 131, 132,
1061 133, 253, 166, 254, 143, 260, 153, 403, 160, 261,
1062 268, 265, 262, 270, 295, 180, 183, 184, 187, 191,
1063 198, 347, 421, 423, 216, 340, 221, 288, 223, 225,
1064 117, 350, 351, 267, 250, 177, 422, 424, 176, 213,
1065 197, 176, 368, 212, 344, 346, 150, 176, 536, 161,
1066 161, 267, 161, 117, 161, 249, 181, 252, 4, 440,
1067 256, 176, 117, 259, 376, 117, 145, 204, 146, 1,
1068 292, 147, 356, 537, 538, 268, 334, 32, 522, 32,
1069 338, 177, 210, 154, 507, 398, 72, 273, 274, 136,
1070 301, 5, 293, 137, 335, 248, 337, 275, 64, 150,
1071 72, 73, 181, 571, 19, 20, 204, 220, 204, 579,
1072 367, 355, 65, 169, 339, 369, 370, 371, 195, 196,
1073 170, 369, 370, 371, 6, 594, 366, 198, 150, 176,
1074 8, 198, 595, 117, 580, 581, 582, 9, 300, 173,
1075 490, 332, 304, 139, 500, 140, 491, 492, 493, 197,
1076 315, 197, 145, 413, 146, 343, 345, 147, 501, 342,
1077 342, 198, 495, 438, 408, 496, 497, 449, 28, 29,
1078 359, 35, 145, 117, 146, 508, 441, 147, 434, 10,
1079 442, 197, 372, 525, 247, 452, 14, 454, 251, 531,
1080 16, 145, 148, 146, 463, 48, 147, 464, 22, 49,
1081 145, 117, 146, 32, 33, 147, 50, 51, 52, 26,
1082 291, 148, 53, 139, 117, 140, 539, 268, 542, 533,
1083 543, 544, 534, 545, 394, 546, 395, 44, 409, 177,
1084 145, 117, 146, 47, 54, 147, 45, 46, 55, 56,
1085 57, 431, 191, 191, 145, 517, 146, 401, 58, 147,
1086 93, 94, 547, 548, 435, 503, 59, 60, 215, 117,
1087 425, 549, 372, 372, 61, 150, 575, 628, 489, 629,
1088 62, 63, 413, 512, 116, 413, 413, 417, 436, 207,
1089 208, 177, 145, 568, 146, 444, 117, 147, 446, 430,
1090 447, 448, 432, 145, 597, 146, 130, 453, 147, 455,
1091 451, 134, 451, 458, 459, 556, 557, 558, 559, 560,
1092 561, 562, 563, 533, 577, 168, 534, 174, 135, 468,
1093 469, 144, 618, 318, 319, 320, 553, 154, 472, 473,
1094 285, 286, 287, 219, 616, 630, 586, 587, 588, 589,
1095 590, 591, 592, 277, 278, 305, 306, 165, 195, 196,
1096 411, 412, 418, 419, 32, 514, 30, 502, 222, 226,
1097 484, 486, 227, 523, 191, 228, 229, 230, 231, 232,
1098 233, 234, 235, 498, 236, 237, 518, 238, 239, 240,
1099 241, 242, 246, 243, 372, 529, 244, 245, 96, 176,
1100 215, 264, 97, 267, 281, 279, 280, 177, 510, 98,
1101 99, 100, 282, 283, 284, 101, 289, 290, 294, 504,
1102 298, 515, 516, 296, 35, 299, 302, 303, 308, 526,
1103 170, 314, 317, 524, 322, 323, 325, 102, 326, 372,
1104 312, 103, 104, 105, 569, 327, 329, 32, 177, 330,
1105 331, 106, 333, 336, 107, 341, 349, 352, 108, 109,
1106 611, 353, 110, 551, 552, 354, 554, 111, 112, 358,
1107 360, 362, 596, 113, 114, 363, 607, 572, 608, 612,
1108 377, 378, 379, 613, 380, 381, 614, 382, 383, 384,
1109 385, 569, 386, 387, 150, 388, 389, 390, 177, 391,
1110 415, 397, 400, 402, 405, 406, 407, 410, 428, 609,
1111 433, 450, 460, 461, 467, 465, 593, 471, 474, 480,
1112 572, 470, 478, 479, 28, 519, 583, 488, 483, 505,
1113 506, 511, 35, 521, 292, 72, 532, 259, 599, 540,
1114 566, 570, 550, 606, 509, 576, 600, 541, 601, 602,
1115 603, 604, 610, 437, 615, 617, 619, 620, 621, 622,
1116 623, 624, 625, 626, 627, 631, 177, 426, 499, 457,
1117 66, 267, 372, 439, 150, 311, 316, 485, 257, 361,
1118 258, 470, 482, 637, 567, 372, 578, 67, 477, 68,
1119 69, 598, 70, 632, 71, 635, 636, 0, 528, 0,
1120 634, 164, 0, 0, 372, 0, 72, 73, 0, 74,
1121 75, 76, 77, 0, 0, 0, 78, 0, 0, 0,
1122 79, 80, 81, 82, 83, 66, 267, 84, 85, 86,
1123 87, 0, 0, 0, 0, 0, 88, 0, 89, 90,
1124 91, 92, 67, 0, 68, 69, 0, 70, 0, 71,
1125 0, 0, 339, 0, 0, 0, 0, 0, 0, 0,
1126 0, 72, 73, 0, 74, 75, 76, 77, 0, 0,
1127 0, 78, 0, 0, 0, 79, 80, 81, 82, 83,
1128 66, 0, 84, 85, 86, 87, 0, 0, 0, 0,
1129 0, 88, 0, 89, 90, 91, 92, 67, 0, 68,
1130 69, 0, 70, 0, 71, 0, 0, 0, 0, 0,
1131 0, 0, 0, 0, 0, 0, 72, 73, 0, 74,
1132 75, 76, 77, 0, 0, 0, 78, 0, 0, 0,
1133 79, 80, 81, 82, 83, 0, 0, 84, 85, 86,
1134 87, 0, 0, 0, 0, 0, 88, 0, 89, 90,
1135 91, 92
1136 };
1137
1138 static const yytype_int16 yycheck[] =
1139 {
1140 23, 70, 25, 86, 123, 48, 49, 50, 51, 52,
1141 53, 54, 55, 56, 57, 58, 59, 82, 61, 62,
1142 63, 121, 74, 122, 67, 126, 69, 272, 71, 127,
1143 132, 131, 128, 133, 157, 78, 79, 80, 81, 82,
1144 83, 204, 305, 306, 87, 197, 89, 151, 91, 92,
1145 7, 207, 208, 6, 119, 78, 305, 306, 3, 86,
1146 83, 3, 4, 86, 202, 203, 69, 3, 475, 72,
1147 73, 6, 75, 7, 77, 118, 79, 120, 83, 324,
1148 123, 3, 7, 126, 247, 7, 6, 32, 8, 3,
1149 155, 11, 215, 475, 476, 197, 190, 3, 4, 3,
1150 194, 124, 6, 28, 25, 268, 41, 69, 70, 6,
1151 162, 0, 155, 10, 192, 118, 194, 79, 68, 122,
1152 41, 42, 125, 80, 3, 4, 32, 61, 32, 536,
1153 224, 214, 82, 79, 87, 77, 78, 79, 60, 61,
1154 86, 77, 78, 79, 3, 33, 224, 190, 151, 3,
1155 6, 194, 40, 7, 536, 537, 538, 85, 161, 79,
1156 13, 188, 165, 6, 427, 8, 19, 20, 21, 192,
1157 173, 194, 6, 296, 8, 202, 203, 11, 427, 202,
1158 203, 224, 415, 321, 288, 418, 419, 339, 3, 4,
1159 217, 214, 6, 7, 8, 440, 6, 11, 317, 3,
1160 10, 224, 225, 466, 116, 343, 89, 345, 120, 472,
1161 3, 6, 26, 8, 4, 12, 11, 7, 86, 16,
1162 6, 7, 8, 3, 4, 11, 23, 24, 25, 84,
1163 16, 26, 29, 6, 7, 8, 481, 339, 22, 3,
1164 24, 25, 6, 27, 4, 29, 6, 6, 291, 272,
1165 6, 7, 8, 72, 51, 11, 3, 4, 55, 56,
1166 57, 313, 305, 306, 6, 7, 8, 270, 65, 11,
1167 9, 10, 56, 57, 317, 431, 73, 74, 6, 7,
1168 307, 65, 305, 306, 81, 288, 531, 4, 411, 6,
1169 87, 88, 415, 456, 7, 418, 419, 300, 321, 17,
1170 18, 324, 6, 7, 8, 332, 7, 11, 335, 312,
1171 337, 338, 315, 6, 7, 8, 6, 344, 11, 346,
1172 343, 7, 345, 350, 351, 33, 34, 35, 36, 37,
1173 38, 39, 40, 3, 4, 75, 6, 77, 7, 366,
1174 367, 7, 605, 52, 53, 54, 502, 28, 375, 376,
1175 13, 14, 15, 7, 599, 618, 543, 544, 545, 546,
1176 547, 548, 549, 60, 61, 49, 50, 43, 60, 61,
1177 17, 18, 30, 31, 3, 4, 399, 429, 6, 4,
1178 403, 404, 6, 466, 427, 6, 6, 6, 6, 6,
1179 6, 6, 6, 420, 6, 6, 461, 6, 6, 6,
1180 6, 6, 4, 6, 427, 470, 6, 6, 12, 3,
1181 6, 6, 16, 6, 4, 7, 7, 440, 445, 23,
1182 24, 25, 4, 4, 4, 29, 4, 4, 4, 432,
1183 4, 458, 459, 30, 457, 4, 4, 4, 4, 466,
1184 86, 4, 29, 466, 4, 4, 4, 51, 4, 472,
1185 48, 55, 56, 57, 519, 4, 4, 3, 481, 6,
1186 4, 65, 4, 4, 68, 4, 4, 4, 72, 73,
1187 589, 4, 76, 500, 501, 4, 503, 81, 82, 4,
1188 4, 4, 565, 87, 88, 4, 586, 530, 587, 590,
1189 4, 4, 4, 591, 4, 4, 592, 4, 4, 4,
1190 4, 566, 4, 4, 507, 4, 4, 4, 531, 3,
1191 31, 4, 4, 4, 4, 4, 4, 4, 4, 588,
1192 4, 4, 4, 66, 4, 6, 553, 6, 3, 6,
1193 573, 16, 4, 4, 3, 67, 539, 4, 6, 4,
1194 4, 4, 565, 4, 609, 41, 4, 590, 575, 6,
1195 67, 4, 18, 585, 32, 6, 6, 57, 4, 4,
1196 4, 4, 588, 321, 6, 6, 4, 4, 4, 4,
1197 4, 4, 4, 4, 4, 4, 599, 309, 426, 348,
1198 5, 6, 605, 321, 587, 169, 175, 403, 124, 219,
1199 125, 16, 399, 636, 517, 618, 535, 22, 392, 24,
1200 25, 573, 27, 630, 29, 633, 76, -1, 466, -1,
1201 633, 73, -1, -1, 637, -1, 41, 42, -1, 44,
1202 45, 46, 47, -1, -1, -1, 51, -1, -1, -1,
1203 55, 56, 57, 58, 59, 5, 6, 62, 63, 64,
1204 65, -1, -1, -1, -1, -1, 71, -1, 73, 74,
1205 75, 76, 22, -1, 24, 25, -1, 27, -1, 29,
1206 -1, -1, 87, -1, -1, -1, -1, -1, -1, -1,
1207 -1, 41, 42, -1, 44, 45, 46, 47, -1, -1,
1208 -1, 51, -1, -1, -1, 55, 56, 57, 58, 59,
1209 5, -1, 62, 63, 64, 65, -1, -1, -1, -1,
1210 -1, 71, -1, 73, 74, 75, 76, 22, -1, 24,
1211 25, -1, 27, -1, 29, -1, -1, -1, -1, -1,
1212 -1, -1, -1, -1, -1, -1, 41, 42, -1, 44,
1213 45, 46, 47, -1, -1, -1, 51, -1, -1, -1,
1214 55, 56, 57, 58, 59, -1, -1, 62, 63, 64,
1215 65, -1, -1, -1, -1, -1, 71, -1, 73, 74,
1216 75, 76
1217 };
1218
1219 /* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
1220 state STATE-NUM. */
1221 static const yytype_uint8 yystos[] =
1222 {
1223 0, 3, 186, 187, 83, 0, 3, 191, 6, 85,
1224 3, 208, 188, 192, 89, 189, 3, 194, 209, 3,
1225 4, 190, 86, 193, 112, 113, 84, 195, 3, 4,
1226 93, 163, 3, 4, 92, 93, 105, 124, 125, 128,
1227 130, 148, 178, 179, 6, 3, 4, 72, 12, 16,
1228 23, 24, 25, 29, 51, 55, 56, 57, 65, 73,
1229 74, 81, 87, 88, 68, 82, 5, 22, 24, 25,
1230 27, 29, 41, 42, 44, 45, 46, 47, 51, 55,
1231 56, 57, 58, 59, 62, 63, 64, 65, 71, 73,
1232 74, 75, 76, 9, 10, 95, 12, 16, 23, 24,
1233 25, 29, 51, 55, 56, 57, 65, 68, 72, 73,
1234 76, 81, 82, 87, 88, 161, 7, 7, 143, 143,
1235 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
1236 6, 143, 143, 143, 7, 7, 6, 10, 91, 6,
1237 8, 94, 102, 143, 7, 6, 8, 11, 26, 96,
1238 97, 103, 104, 143, 28, 106, 107, 97, 98, 110,
1239 143, 97, 120, 123, 123, 43, 121, 132, 120, 79,
1240 86, 133, 134, 79, 120, 129, 3, 93, 111, 138,
1241 143, 97, 139, 143, 143, 144, 106, 143, 146, 147,
1242 98, 143, 149, 150, 205, 60, 61, 93, 143, 152,
1243 153, 198, 199, 206, 32, 93, 115, 17, 18, 155,
1244 6, 92, 93, 115, 154, 6, 143, 159, 160, 7,
1245 61, 143, 6, 143, 207, 143, 4, 6, 6, 6,
1246 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
1247 6, 6, 6, 6, 6, 6, 4, 94, 97, 143,
1248 98, 94, 143, 95, 104, 110, 143, 138, 139, 143,
1249 144, 147, 160, 169, 6, 95, 183, 6, 114, 197,
1250 95, 200, 201, 69, 70, 79, 162, 60, 61, 7,
1251 7, 4, 4, 4, 4, 13, 14, 15, 103, 4,
1252 4, 16, 98, 143, 4, 96, 30, 108, 4, 4,
1253 97, 121, 4, 4, 97, 49, 50, 131, 4, 121,
1254 127, 133, 48, 135, 4, 97, 127, 29, 52, 53,
1255 54, 137, 4, 4, 140, 4, 4, 4, 145, 4,
1256 6, 4, 115, 4, 206, 199, 4, 199, 206, 87,
1257 197, 4, 93, 115, 124, 115, 124, 112, 114, 4,
1258 131, 131, 4, 4, 4, 92, 96, 156, 4, 115,
1259 4, 153, 4, 4, 170, 180, 199, 206, 4, 77,
1260 78, 79, 93, 99, 175, 177, 112, 4, 4, 4,
1261 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
1262 4, 3, 167, 168, 4, 6, 184, 4, 112, 196,
1263 4, 97, 4, 111, 202, 4, 4, 4, 103, 143,
1264 4, 17, 18, 96, 101, 31, 109, 97, 30, 31,
1265 122, 99, 205, 99, 205, 115, 108, 126, 4, 136,
1266 97, 121, 97, 4, 110, 143, 93, 105, 124, 125,
1267 111, 6, 10, 142, 115, 151, 115, 115, 115, 197,
1268 4, 93, 124, 115, 124, 115, 116, 113, 115, 115,
1269 4, 66, 157, 4, 7, 6, 172, 4, 115, 115,
1270 16, 6, 115, 115, 3, 165, 166, 167, 4, 4,
1271 6, 181, 163, 6, 93, 148, 93, 203, 4, 96,
1272 13, 19, 20, 21, 100, 101, 101, 101, 115, 109,
1273 99, 205, 121, 131, 97, 4, 4, 25, 111, 32,
1274 115, 4, 112, 117, 4, 115, 115, 7, 98, 67,
1275 158, 4, 4, 92, 93, 99, 115, 171, 198, 98,
1276 176, 99, 4, 3, 6, 164, 165, 166, 166, 111,
1277 6, 57, 22, 24, 25, 27, 29, 56, 57, 65,
1278 18, 115, 115, 131, 115, 141, 33, 34, 35, 36,
1279 37, 38, 39, 40, 118, 119, 67, 158, 7, 98,
1280 4, 80, 143, 173, 174, 111, 6, 4, 164, 165,
1281 166, 166, 166, 97, 143, 204, 204, 204, 204, 204,
1282 204, 204, 204, 115, 33, 40, 92, 7, 173, 115,
1283 6, 4, 4, 4, 4, 185, 102, 95, 104, 106,
1284 107, 110, 144, 147, 160, 6, 111, 6, 99, 4,
1285 4, 4, 4, 4, 4, 4, 4, 4, 4, 6,
1286 99, 4, 115, 182, 93, 178, 76, 143
1287 };
1288
1289 /* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
1290 static const yytype_uint8 yyr1[] =
1291 {
1292 0, 90, 91, 92, 93, 94, 94, 91, 95, 95,
1293 96, 96, 96, 97, 97, 97, 98, 98, 98, 98,
1294 99, 100, 100, 100, 100, 101, 102, 92, 103, 103,
1295 104, 105, 92, 106, 106, 107, 92, 108, 108, 109,
1296 109, 110, 92, 111, 112, 113, 113, 114, 114, 115,
1297 116, 115, 117, 117, 118, 118, 118, 118, 118, 118,
1298 118, 119, 118, 120, 121, 121, 122, 122, 122, 123,
1299 124, 125, 92, 92, 126, 127, 127, 128, 129, 129,
1300 130, 131, 131, 131, 131, 132, 128, 133, 133, 135,
1301 134, 136, 134, 130, 92, 92, 137, 137, 137, 137,
1302 138, 138, 138, 92, 140, 139, 92, 141, 141, 142,
1303 142, 143, 145, 144, 92, 146, 146, 147, 147, 147,
1304 148, 92, 149, 150, 150, 151, 150, 150, 92, 152,
1305 152, 152, 152, 152, 152, 92, 153, 153, 152, 92,
1306 154, 92, 92, 92, 155, 155, 92, 156, 156, 157,
1307 157, 158, 158, 159, 159, 159, 159, 160, 92, 161,
1308 162, 162, 162, 162, 92, 92, 92, 163, 164, 164,
1309 164, 165, 165, 166, 167, 167, 167, 168, 168, 169,
1310 163, 92, 92, 163, 163, 92, 170, 170, 171, 171,
1311 171, 171, 172, 172, 173, 173, 174, 176, 175, 177,
1312 177, 177, 177, 178, 179, 92, 92, 180, 180, 92,
1313 181, 181, 182, 182, 184, 185, 183, 92, 92, 186,
1314 188, 187, 189, 189, 190, 192, 191, 193, 193, 194,
1315 195, 195, 161, 161, 161, 161, 161, 161, 161, 161,
1316 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
1317 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
1318 163, 163, 163, 163, 163, 163, 163, 196, 196, 197,
1319 198, 199, 199, 200, 201, 201, 202, 202, 203, 203,
1320 203, 203, 203, 203, 203, 203, 204, 205, 206, 207,
1321 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
1322 92, 111, 209, 208
1323 };
1324
1325 /* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
1326 static const yytype_int8 yyr2[] =
1327 {
1328 0, 2, 2, 4, 1, 1, 1, 2, 1, 1,
1329 1, 1, 1, 2, 2, 2, 5, 3, 3, 1,
1330 4, 1, 1, 1, 1, 2, 1, 4, 1, 1,
1331 3, 4, 1, 0, 1, 2, 4, 0, 2, 0,
1332 2, 3, 4, 4, 0, 1, 2, 0, 1, 4,
1333 0, 5, 1, 2, 1, 1, 1, 1, 1, 1,
1334 1, 0, 2, 3, 0, 2, 0, 2, 2, 4,
1335 4, 4, 1, 1, 2, 4, 4, 5, 1, 4,
1336 5, 2, 2, 2, 2, 3, 4, 0, 3, 0,
1337 5, 0, 6, 4, 1, 1, 0, 1, 1, 1,
1338 3, 3, 3, 4, 0, 4, 4, 0, 2, 1,
1339 1, 1, 0, 6, 4, 1, 2, 3, 2, 1,
1340 4, 1, 1, 3, 3, 0, 4, 3, 4, 2,
1341 3, 3, 2, 3, 3, 4, 1, 1, 1, 4,
1342 1, 4, 5, 4, 4, 4, 4, 1, 0, 2,
1343 0, 2, 0, 4, 5, 5, 6, 2, 4, 2,
1344 1, 1, 1, 0, 5, 5, 6, 7, 6, 5,
1345 1, 4, 3, 0, 5, 5, 5, 2, 4, 0,
1346 6, 4, 4, 5, 6, 6, 0, 2, 1, 1,
1347 1, 1, 0, 2, 1, 1, 3, 0, 4, 1,
1348 1, 1, 1, 10, 4, 1, 1, 2, 2, 5,
1349 0, 1, 0, 2, 0, 0, 10, 5, 5, 3,
1350 0, 6, 0, 2, 5, 0, 6, 0, 2, 4,
1351 0, 4, 2, 2, 2, 2, 2, 2, 2, 2,
1352 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1353 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
1354 5, 5, 5, 5, 5, 5, 5, 1, 2, 2,
1355 4, 1, 3, 2, 4, 3, 2, 2, 5, 5,
1356 5, 5, 5, 5, 5, 5, 1, 1, 1, 1,
1357 4, 5, 6, 4, 4, 4, 4, 4, 4, 4,
1358 4, 4, 0, 5
1359 };
1360
1361
1362 enum { YYENOMEM = -2 };
1363
1364 #define yyerrok (yyerrstatus = 0)
1365 #define yyclearin (yychar = YYEMPTY)
1366
1367 #define YYACCEPT goto yyacceptlab
1368 #define YYABORT goto yyabortlab
1369 #define YYERROR goto yyerrorlab
1370 #define YYNOMEM goto yyexhaustedlab
1371
1372
1373 #define YYRECOVERING() (!!yyerrstatus)
1374
1375 #define YYBACKUP(Token, Value) \
1376 do \
1377 if (yychar == YYEMPTY) \
1378 { \
1379 yychar = (Token); \
1380 yylval = (Value); \
1381 YYPOPSTACK (yylen); \
1382 yystate = *yyssp; \
1383 goto yybackup; \
1384 } \
1385 else \
1386 { \
1387 yyerror (YY_("syntax error: cannot back up")); \
1388 YYERROR; \
1389 } \
1390 while (0)
1391
1392 /* Backward compatibility with an undocumented macro.
1393 Use YYerror or YYUNDEF. */
1394 #define YYERRCODE YYUNDEF
1395
1396
1397 /* Enable debugging if requested. */
1398 #if YYDEBUG
1399
1400 # ifndef YYFPRINTF
1401 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1402 # define YYFPRINTF fprintf
1403 # endif
1404
1405 # define YYDPRINTF(Args) \
1406 do { \
1407 if (yydebug) \
1408 YYFPRINTF Args; \
1409 } while (0)
1410
1411
1412
1413
1414 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
1415 do { \
1416 if (yydebug) \
1417 { \
1418 YYFPRINTF (stderr, "%s ", Title); \
1419 yy_symbol_print (stderr, \
1420 Kind, Value); \
1421 YYFPRINTF (stderr, "\n"); \
1422 } \
1423 } while (0)
1424
1425
1426 /*-----------------------------------.
1427 | Print this symbol's value on YYO. |
1428 `-----------------------------------*/
1429
1430 static void
1431 yy_symbol_value_print (FILE *yyo,
1432 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
1433 {
1434 FILE *yyoutput = yyo;
1435 YY_USE (yyoutput);
1436 if (!yyvaluep)
1437 return;
1438 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1439 YY_USE (yykind);
1440 YY_IGNORE_MAYBE_UNINITIALIZED_END
1441 }
1442
1443
1444 /*---------------------------.
1445 | Print this symbol on YYO. |
1446 `---------------------------*/
1447
1448 static void
1449 yy_symbol_print (FILE *yyo,
1450 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
1451 {
1452 YYFPRINTF (yyo, "%s %s (",
1453 yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
1454
1455 yy_symbol_value_print (yyo, yykind, yyvaluep);
1456 YYFPRINTF (yyo, ")");
1457 }
1458
1459 /*------------------------------------------------------------------.
1460 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1461 | TOP (included). |
1462 `------------------------------------------------------------------*/
1463
1464 static void
1465 yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
1466 {
1467 YYFPRINTF (stderr, "Stack now");
1468 for (; yybottom <= yytop; yybottom++)
1469 {
1470 int yybot = *yybottom;
1471 YYFPRINTF (stderr, " %d", yybot);
1472 }
1473 YYFPRINTF (stderr, "\n");
1474 }
1475
1476 # define YY_STACK_PRINT(Bottom, Top) \
1477 do { \
1478 if (yydebug) \
1479 yy_stack_print ((Bottom), (Top)); \
1480 } while (0)
1481
1482
1483 /*------------------------------------------------.
1484 | Report that the YYRULE is going to be reduced. |
1485 `------------------------------------------------*/
1486
1487 static void
1488 yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
1489 int yyrule)
1490 {
1491 int yylno = yyrline[yyrule];
1492 int yynrhs = yyr2[yyrule];
1493 int yyi;
1494 YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
1495 yyrule - 1, yylno);
1496 /* The symbols being reduced. */
1497 for (yyi = 0; yyi < yynrhs; yyi++)
1498 {
1499 YYFPRINTF (stderr, " $%d = ", yyi + 1);
1500 yy_symbol_print (stderr,
1501 YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
1502 &yyvsp[(yyi + 1) - (yynrhs)]);
1503 YYFPRINTF (stderr, "\n");
1504 }
1505 }
1506
1507 # define YY_REDUCE_PRINT(Rule) \
1508 do { \
1509 if (yydebug) \
1510 yy_reduce_print (yyssp, yyvsp, Rule); \
1511 } while (0)
1512
1513 /* Nonzero means print parse trace. It is left uninitialized so that
1514 multiple parsers can coexist. */
1515 int yydebug;
1516 #else /* !YYDEBUG */
1517 # define YYDPRINTF(Args) ((void) 0)
1518 # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
1519 # define YY_STACK_PRINT(Bottom, Top)
1520 # define YY_REDUCE_PRINT(Rule)
1521 #endif /* !YYDEBUG */
1522
1523
1524 /* YYINITDEPTH -- initial size of the parser's stacks. */
1525 #ifndef YYINITDEPTH
1526 # define YYINITDEPTH 200
1527 #endif
1528
1529 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1530 if the built-in stack extension method is used).
1531
1532 Do not make this value too large; the results are undefined if
1533 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1534 evaluated with infinite-precision integer arithmetic. */
1535
1536 #ifndef YYMAXDEPTH
1537 # define YYMAXDEPTH 10000
1538 #endif
1539
1540
1541 /* Context of a parse error. */
1542 typedef struct
1543 {
1544 yy_state_t *yyssp;
1545 yysymbol_kind_t yytoken;
1546 } yypcontext_t;
1547
1548 /* Put in YYARG at most YYARGN of the expected tokens given the
1549 current YYCTX, and return the number of tokens stored in YYARG. If
1550 YYARG is null, return the number of expected tokens (guaranteed to
1551 be less than YYNTOKENS). Return YYENOMEM on memory exhaustion.
1552 Return 0 if there are more than YYARGN expected tokens, yet fill
1553 YYARG up to YYARGN. */
1554 static int
1555 yypcontext_expected_tokens (const yypcontext_t *yyctx,
1556 yysymbol_kind_t yyarg[], int yyargn)
1557 {
1558 /* Actual size of YYARG. */
1559 int yycount = 0;
1560 int yyn = yypact[+*yyctx->yyssp];
1561 if (!yypact_value_is_default (yyn))
1562 {
1563 /* Start YYX at -YYN if negative to avoid negative indexes in
1564 YYCHECK. In other words, skip the first -YYN actions for
1565 this state because they are default actions. */
1566 int yyxbegin = yyn < 0 ? -yyn : 0;
1567 /* Stay within bounds of both yycheck and yytname. */
1568 int yychecklim = YYLAST - yyn + 1;
1569 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1570 int yyx;
1571 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1572 if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
1573 && !yytable_value_is_error (yytable[yyx + yyn]))
1574 {
1575 if (!yyarg)
1576 ++yycount;
1577 else if (yycount == yyargn)
1578 return 0;
1579 else
1580 yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
1581 }
1582 }
1583 if (yyarg && yycount == 0 && 0 < yyargn)
1584 yyarg[0] = YYSYMBOL_YYEMPTY;
1585 return yycount;
1586 }
1587
1588
1589
1590
1591 #ifndef yystrlen
1592 # if defined __GLIBC__ && defined _STRING_H
1593 # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
1594 # else
1595 /* Return the length of YYSTR. */
1596 static YYPTRDIFF_T
1597 yystrlen (const char *yystr)
1598 {
1599 YYPTRDIFF_T yylen;
1600 for (yylen = 0; yystr[yylen]; yylen++)
1601 continue;
1602 return yylen;
1603 }
1604 # endif
1605 #endif
1606
1607 #ifndef yystpcpy
1608 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1609 # define yystpcpy stpcpy
1610 # else
1611 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1612 YYDEST. */
1613 static char *
1614 yystpcpy (char *yydest, const char *yysrc)
1615 {
1616 char *yyd = yydest;
1617 const char *yys = yysrc;
1618
1619 while ((*yyd++ = *yys++) != '\0')
1620 continue;
1621
1622 return yyd - 1;
1623 }
1624 # endif
1625 #endif
1626
1627 #ifndef yytnamerr
1628 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1629 quotes and backslashes, so that it's suitable for yyerror. The
1630 heuristic is that double-quoting is unnecessary unless the string
1631 contains an apostrophe, a comma, or backslash (other than
1632 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1633 null, do not copy; instead, return the length of what the result
1634 would have been. */
1635 static YYPTRDIFF_T
1636 yytnamerr (char *yyres, const char *yystr)
1637 {
1638 if (*yystr == '"')
1639 {
1640 YYPTRDIFF_T yyn = 0;
1641 char const *yyp = yystr;
1642 for (;;)
1643 switch (*++yyp)
1644 {
1645 case '\'':
1646 case ',':
1647 goto do_not_strip_quotes;
1648
1649 case '\\':
1650 if (*++yyp != '\\')
1651 goto do_not_strip_quotes;
1652 else
1653 goto append;
1654
1655 append:
1656 default:
1657 if (yyres)
1658 yyres[yyn] = *yyp;
1659 yyn++;
1660 break;
1661
1662 case '"':
1663 if (yyres)
1664 yyres[yyn] = '\0';
1665 return yyn;
1666 }
1667 do_not_strip_quotes: ;
1668 }
1669
1670 if (yyres)
1671 return yystpcpy (yyres, yystr) - yyres;
1672 else
1673 return yystrlen (yystr);
1674 }
1675 #endif
1676
1677
1678 static int
1679 yy_syntax_error_arguments (const yypcontext_t *yyctx,
1680 yysymbol_kind_t yyarg[], int yyargn)
1681 {
1682 /* Actual size of YYARG. */
1683 int yycount = 0;
1684 /* There are many possibilities here to consider:
1685 - If this state is a consistent state with a default action, then
1686 the only way this function was invoked is if the default action
1687 is an error action. In that case, don't check for expected
1688 tokens because there are none.
1689 - The only way there can be no lookahead present (in yychar) is if
1690 this state is a consistent state with a default action. Thus,
1691 detecting the absence of a lookahead is sufficient to determine
1692 that there is no unexpected or expected token to report. In that
1693 case, just report a simple "syntax error".
1694 - Don't assume there isn't a lookahead just because this state is a
1695 consistent state with a default action. There might have been a
1696 previous inconsistent state, consistent state with a non-default
1697 action, or user semantic action that manipulated yychar.
1698 - Of course, the expected token list depends on states to have
1699 correct lookahead information, and it depends on the parser not
1700 to perform extra reductions after fetching a lookahead from the
1701 scanner and before detecting a syntax error. Thus, state merging
1702 (from LALR or IELR) and default reductions corrupt the expected
1703 token list. However, the list is correct for canonical LR with
1704 one exception: it will still contain any token that will not be
1705 accepted due to an error action in a later state.
1706 */
1707 if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
1708 {
1709 int yyn;
1710 if (yyarg)
1711 yyarg[yycount] = yyctx->yytoken;
1712 ++yycount;
1713 yyn = yypcontext_expected_tokens (yyctx,
1714 yyarg ? yyarg + 1 : yyarg, yyargn - 1);
1715 if (yyn == YYENOMEM)
1716 return YYENOMEM;
1717 else
1718 yycount += yyn;
1719 }
1720 return yycount;
1721 }
1722
1723 /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1724 about the unexpected token YYTOKEN for the state stack whose top is
1725 YYSSP.
1726
1727 Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is
1728 not large enough to hold the message. In that case, also set
1729 *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the
1730 required number of bytes is too large to store. */
1731 static int
1732 yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
1733 const yypcontext_t *yyctx)
1734 {
1735 enum { YYARGS_MAX = 5 };
1736 /* Internationalized format string. */
1737 const char *yyformat = YY_NULLPTR;
1738 /* Arguments of yyformat: reported tokens (one for the "unexpected",
1739 one per "expected"). */
1740 yysymbol_kind_t yyarg[YYARGS_MAX];
1741 /* Cumulated lengths of YYARG. */
1742 YYPTRDIFF_T yysize = 0;
1743
1744 /* Actual size of YYARG. */
1745 int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
1746 if (yycount == YYENOMEM)
1747 return YYENOMEM;
1748
1749 switch (yycount)
1750 {
1751 #define YYCASE_(N, S) \
1752 case N: \
1753 yyformat = S; \
1754 break
1755 default: /* Avoid compiler warnings. */
1756 YYCASE_(0, YY_("syntax error"));
1757 YYCASE_(1, YY_("syntax error, unexpected %s"));
1758 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1759 YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1760 YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1761 YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1762 #undef YYCASE_
1763 }
1764
1765 /* Compute error message size. Don't count the "%s"s, but reserve
1766 room for the terminator. */
1767 yysize = yystrlen (yyformat) - 2 * yycount + 1;
1768 {
1769 int yyi;
1770 for (yyi = 0; yyi < yycount; ++yyi)
1771 {
1772 YYPTRDIFF_T yysize1
1773 = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
1774 if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1775 yysize = yysize1;
1776 else
1777 return YYENOMEM;
1778 }
1779 }
1780
1781 if (*yymsg_alloc < yysize)
1782 {
1783 *yymsg_alloc = 2 * yysize;
1784 if (! (yysize <= *yymsg_alloc
1785 && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1786 *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1787 return -1;
1788 }
1789
1790 /* Avoid sprintf, as that infringes on the user's name space.
1791 Don't have undefined behavior even if the translation
1792 produced a string with the wrong number of "%s"s. */
1793 {
1794 char *yyp = *yymsg;
1795 int yyi = 0;
1796 while ((*yyp = *yyformat) != '\0')
1797 if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1798 {
1799 yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
1800 yyformat += 2;
1801 }
1802 else
1803 {
1804 ++yyp;
1805 ++yyformat;
1806 }
1807 }
1808 return 0;
1809 }
1810
1811
1812 /*-----------------------------------------------.
1813 | Release the memory associated to this symbol. |
1814 `-----------------------------------------------*/
1815
1816 static void
1817 yydestruct (const char *yymsg,
1818 yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
1819 {
1820 YY_USE (yyvaluep);
1821 if (!yymsg)
1822 yymsg = "Deleting";
1823 YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
1824
1825 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1826 YY_USE (yykind);
1827 YY_IGNORE_MAYBE_UNINITIALIZED_END
1828 }
1829
1830
1831 /* Lookahead token kind. */
1832 int yychar;
1833
1834 /* The semantic value of the lookahead symbol. */
1835 YYSTYPE yylval;
1836 /* Number of syntax errors so far. */
1837 int yynerrs;
1838
1839
1840
1841
1842 /*----------.
1843 | yyparse. |
1844 `----------*/
1845
1846 int
1847 yyparse (void)
1848 {
1849 yy_state_fast_t yystate = 0;
1850 /* Number of tokens to shift before error messages enabled. */
1851 int yyerrstatus = 0;
1852
1853 /* Refer to the stacks through separate pointers, to allow yyoverflow
1854 to reallocate them elsewhere. */
1855
1856 /* Their size. */
1857 YYPTRDIFF_T yystacksize = YYINITDEPTH;
1858
1859 /* The state stack: array, bottom, top. */
1860 yy_state_t yyssa[YYINITDEPTH];
1861 yy_state_t *yyss = yyssa;
1862 yy_state_t *yyssp = yyss;
1863
1864 /* The semantic value stack: array, bottom, top. */
1865 YYSTYPE yyvsa[YYINITDEPTH];
1866 YYSTYPE *yyvs = yyvsa;
1867 YYSTYPE *yyvsp = yyvs;
1868
1869 int yyn;
1870 /* The return value of yyparse. */
1871 int yyresult;
1872 /* Lookahead symbol kind. */
1873 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
1874 /* The variables used to return semantic value and location from the
1875 action routines. */
1876 YYSTYPE yyval;
1877
1878 /* Buffer for error messages, and its allocated size. */
1879 char yymsgbuf[128];
1880 char *yymsg = yymsgbuf;
1881 YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
1882
1883 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1884
1885 /* The number of symbols on the RHS of the reduced rule.
1886 Keep to zero when no symbol should be popped. */
1887 int yylen = 0;
1888
1889 YYDPRINTF ((stderr, "Starting parse\n"));
1890
1891 yychar = YYEMPTY; /* Cause a token to be read. */
1892
1893 goto yysetstate;
1894
1895
1896 /*------------------------------------------------------------.
1897 | yynewstate -- push a new state, which is found in yystate. |
1898 `------------------------------------------------------------*/
1899 yynewstate:
1900 /* In all cases, when you get here, the value and location stacks
1901 have just been pushed. So pushing a state here evens the stacks. */
1902 yyssp++;
1903
1904
1905 /*--------------------------------------------------------------------.
1906 | yysetstate -- set current state (the top of the stack) to yystate. |
1907 `--------------------------------------------------------------------*/
1908 yysetstate:
1909 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1910 YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1911 YY_IGNORE_USELESS_CAST_BEGIN
1912 *yyssp = YY_CAST (yy_state_t, yystate);
1913 YY_IGNORE_USELESS_CAST_END
1914 YY_STACK_PRINT (yyss, yyssp);
1915
1916 if (yyss + yystacksize - 1 <= yyssp)
1917 #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1918 YYNOMEM;
1919 #else
1920 {
1921 /* Get the current used size of the three stacks, in elements. */
1922 YYPTRDIFF_T yysize = yyssp - yyss + 1;
1923
1924 # if defined yyoverflow
1925 {
1926 /* Give user a chance to reallocate the stack. Use copies of
1927 these so that the &'s don't force the real ones into
1928 memory. */
1929 yy_state_t *yyss1 = yyss;
1930 YYSTYPE *yyvs1 = yyvs;
1931
1932 /* Each stack pointer address is followed by the size of the
1933 data in use in that stack, in bytes. This used to be a
1934 conditional around just the two extra args, but that might
1935 be undefined if yyoverflow is a macro. */
1936 yyoverflow (YY_("memory exhausted"),
1937 &yyss1, yysize * YYSIZEOF (*yyssp),
1938 &yyvs1, yysize * YYSIZEOF (*yyvsp),
1939 &yystacksize);
1940 yyss = yyss1;
1941 yyvs = yyvs1;
1942 }
1943 # else /* defined YYSTACK_RELOCATE */
1944 /* Extend the stack our own way. */
1945 if (YYMAXDEPTH <= yystacksize)
1946 YYNOMEM;
1947 yystacksize *= 2;
1948 if (YYMAXDEPTH < yystacksize)
1949 yystacksize = YYMAXDEPTH;
1950
1951 {
1952 yy_state_t *yyss1 = yyss;
1953 union yyalloc *yyptr =
1954 YY_CAST (union yyalloc *,
1955 YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1956 if (! yyptr)
1957 YYNOMEM;
1958 YYSTACK_RELOCATE (yyss_alloc, yyss);
1959 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1960 # undef YYSTACK_RELOCATE
1961 if (yyss1 != yyssa)
1962 YYSTACK_FREE (yyss1);
1963 }
1964 # endif
1965
1966 yyssp = yyss + yysize - 1;
1967 yyvsp = yyvs + yysize - 1;
1968
1969 YY_IGNORE_USELESS_CAST_BEGIN
1970 YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1971 YY_CAST (long, yystacksize)));
1972 YY_IGNORE_USELESS_CAST_END
1973
1974 if (yyss + yystacksize - 1 <= yyssp)
1975 YYABORT;
1976 }
1977 #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1978
1979
1980 if (yystate == YYFINAL)
1981 YYACCEPT;
1982
1983 goto yybackup;
1984
1985
1986 /*-----------.
1987 | yybackup. |
1988 `-----------*/
1989 yybackup:
1990 /* Do appropriate processing given the current state. Read a
1991 lookahead token if we need one and don't already have one. */
1992
1993 /* First try to decide what to do without reference to lookahead token. */
1994 yyn = yypact[yystate];
1995 if (yypact_value_is_default (yyn))
1996 goto yydefault;
1997
1998 /* Not known => get a lookahead token if don't already have one. */
1999
2000 /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
2001 if (yychar == YYEMPTY)
2002 {
2003 YYDPRINTF ((stderr, "Reading a token\n"));
2004 yychar = yylex ();
2005 }
2006
2007 if (yychar <= YYEOF)
2008 {
2009 yychar = YYEOF;
2010 yytoken = YYSYMBOL_YYEOF;
2011 YYDPRINTF ((stderr, "Now at end of input.\n"));
2012 }
2013 else if (yychar == YYerror)
2014 {
2015 /* The scanner already issued an error message, process directly
2016 to error recovery. But do not keep the error token as
2017 lookahead, it is too special and may lead us to an endless
2018 loop in error recovery. */
2019 yychar = YYUNDEF;
2020 yytoken = YYSYMBOL_YYerror;
2021 goto yyerrlab1;
2022 }
2023 else
2024 {
2025 yytoken = YYTRANSLATE (yychar);
2026 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2027 }
2028
2029 /* If the proper action on seeing token YYTOKEN is to reduce or to
2030 detect an error, take that action. */
2031 yyn += yytoken;
2032 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2033 goto yydefault;
2034 yyn = yytable[yyn];
2035 if (yyn <= 0)
2036 {
2037 if (yytable_value_is_error (yyn))
2038 goto yyerrlab;
2039 yyn = -yyn;
2040 goto yyreduce;
2041 }
2042
2043 /* Count tokens shifted since error; after three, turn off error
2044 status. */
2045 if (yyerrstatus)
2046 yyerrstatus--;
2047
2048 /* Shift the lookahead token. */
2049 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2050 yystate = yyn;
2051 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2052 *++yyvsp = yylval;
2053 YY_IGNORE_MAYBE_UNINITIALIZED_END
2054
2055 /* Discard the shifted token. */
2056 yychar = YYEMPTY;
2057 goto yynewstate;
2058
2059
2060 /*-----------------------------------------------------------.
2061 | yydefault -- do the default action for the current state. |
2062 `-----------------------------------------------------------*/
2063 yydefault:
2064 yyn = yydefact[yystate];
2065 if (yyn == 0)
2066 goto yyerrlab;
2067 goto yyreduce;
2068
2069
2070 /*-----------------------------.
2071 | yyreduce -- do a reduction. |
2072 `-----------------------------*/
2073 yyreduce:
2074 /* yyn is the number of a rule to reduce with. */
2075 yylen = yyr2[yyn];
2076
2077 /* If YYLEN is nonzero, implement the default value of the action:
2078 '$$ = $1'.
2079
2080 Otherwise, the following line sets YYVAL to garbage.
2081 This behavior is undocumented and Bison
2082 users should not rely upon it. Assigning to YYVAL
2083 unconditionally makes the parser a bit smaller, and it avoids a
2084 GCC warning that YYVAL may be used uninitialized. */
2085 yyval = yyvsp[1-yylen];
2086
2087
2088 YY_REDUCE_PRINT (yyn);
2089 switch (yyn)
2090 {
2091 case 2: /* glyph: UNSIGNED REFERENCE */
2092 #line 276 "parser.y"
2093 {
2094 #line 424 "format.w"
2095 (yyval.c).c= (yyvsp[-1].u);REF(font_kind,(yyvsp[0].u));(yyval.c).f= (yyvsp[0].u);}
2096 #line 2097 "parser.c"
2097 break;
2098
2099 case 3: /* content_node: start "glyph" glyph ">" */
2100 #line 279 "parser.y"
2101 {
2102 #line 425 "format.w"
2103 hput_tags((yyvsp[-3].u),hput_glyph(&((yyvsp[-1].c))));}
2104 #line 2105 "parser.c"
2105 break;
2106
2107 case 4: /* start: "<" */
2108 #line 282 "parser.y"
2109 {
2110 #line 426 "format.w"
2111 HPUTNODE;(yyval.u)= (uint32_t)(hpos++-hstart);}
2112 #line 2113 "parser.c"
2113 break;
2114
2115 case 6: /* integer: UNSIGNED */
2116 #line 286 "parser.y"
2117 {
2118 #line 956 "format.w"
2119 RNG("number",(yyvsp[0].u),0,0x7FFFFFFF);}
2120 #line 2121 "parser.c"
2121 break;
2122
2123 case 7: /* glyph: CHARCODE REFERENCE */
2124 #line 290 "parser.y"
2125 {
2126 #line 1098 "format.w"
2127 (yyval.c).c= (yyvsp[-1].u);REF(font_kind,(yyvsp[0].u));(yyval.c).f= (yyvsp[0].u);}
2128 #line 2129 "parser.c"
2129 break;
2130
2131 case 9: /* string: CHARCODE */
2132 #line 294 "parser.y"
2133 {
2134 #line 1203 "format.w"
2135 static char s[2];
2136 RNG("String element",(yyvsp[0].u),0x20,0x7E);
2137 s[0]= (yyvsp[0].u);s[1]= 0;(yyval.s)= s;}
2138 #line 2139 "parser.c"
2139 break;
2140
2141 case 10: /* number: UNSIGNED */
2142 #line 300 "parser.y"
2143 {
2144 #line 1356 "format.w"
2145 (yyval.f)= (float64_t)(yyvsp[0].u);}
2146 #line 2147 "parser.c"
2147 break;
2148
2149 case 11: /* number: SIGNED */
2150 #line 302 "parser.y"
2151 {
2152 #line 1356 "format.w"
2153 (yyval.f)= (float64_t)(yyvsp[0].i);}
2154 #line 2155 "parser.c"
2155 break;
2156
2157 case 13: /* dimension: number "pt" */
2158 #line 306 "parser.y"
2159 {
2160 #line 1710 "format.w"
2161 (yyval.d)= ROUND((yyvsp[-1].f)*ONE);RNG("Dimension",(yyval.d),-MAX_DIMEN,MAX_DIMEN);}
2162 #line 2163 "parser.c"
2163 break;
2164
2165 case 14: /* dimension: number "in" */
2166 #line 309 "parser.y"
2167 {
2168 #line 1711 "format.w"
2169 (yyval.d)= ROUND((yyvsp[-1].f)*ONE*72.27);RNG("Dimension",(yyval.d),-MAX_DIMEN,MAX_DIMEN);}
2170 #line 2171 "parser.c"
2171 break;
2172
2173 case 15: /* dimension: number "mm" */
2174 #line 312 "parser.y"
2175 {
2176 #line 1712 "format.w"
2177 (yyval.d)= ROUND((yyvsp[-1].f)*ONE*(72.27/25.4));RNG("Dimension",(yyval.d),-MAX_DIMEN,MAX_DIMEN);}
2178 #line 2179 "parser.c"
2179 break;
2180
2181 case 16: /* xdimen: dimension number "h" number "v" */
2182 #line 316 "parser.y"
2183 {
2184 #line 1790 "format.w"
2185 (yyval.xd).w= (yyvsp[-4].d);(yyval.xd).h= (yyvsp[-3].f);(yyval.xd).v= (yyvsp[-1].f);}
2186 #line 2187 "parser.c"
2187 break;
2188
2189 case 17: /* xdimen: dimension number "h" */
2190 #line 319 "parser.y"
2191 {
2192 #line 1791 "format.w"
2193 (yyval.xd).w= (yyvsp[-2].d);(yyval.xd).h= (yyvsp[-1].f);(yyval.xd).v= 0.0;}
2194 #line 2195 "parser.c"
2195 break;
2196
2197 case 18: /* xdimen: dimension number "v" */
2198 #line 322 "parser.y"
2199 {
2200 #line 1792 "format.w"
2201 (yyval.xd).w= (yyvsp[-2].d);(yyval.xd).h= 0.0;(yyval.xd).v= (yyvsp[-1].f);}
2202 #line 2203 "parser.c"
2203 break;
2204
2205 case 19: /* xdimen: dimension */
2206 #line 325 "parser.y"
2207 {
2208 #line 1793 "format.w"
2209 (yyval.xd).w= (yyvsp[0].d);(yyval.xd).h= 0.0;(yyval.xd).v= 0.0;}
2210 #line 2211 "parser.c"
2211 break;
2212
2213 case 20: /* xdimen_node: start "xdimen" xdimen ">" */
2214 #line 329 "parser.y"
2215 {
2216 #line 1795 "format.w"
2217 hput_tags((yyvsp[-3].u),hput_xdimen(&((yyvsp[-1].xd))));}
2218 #line 2219 "parser.c"
2219 break;
2220
2221 case 21: /* order: "pt" */
2222 #line 334 "parser.y"
2223 {
2224 #line 1974 "format.w"
2225 (yyval.o)= normal_o;}
2226 #line 2227 "parser.c"
2227 break;
2228
2229 case 22: /* order: "fil" */
2230 #line 336 "parser.y"
2231 {
2232 #line 1974 "format.w"
2233 (yyval.o)= fil_o;}
2234 #line 2235 "parser.c"
2235 break;
2236
2237 case 23: /* order: "fill" */
2238 #line 338 "parser.y"
2239 {
2240 #line 1974 "format.w"
2241 (yyval.o)= fill_o;}
2242 #line 2243 "parser.c"
2243 break;
2244
2245 case 24: /* order: "filll" */
2246 #line 340 "parser.y"
2247 {
2248 #line 1974 "format.w"
2249 (yyval.o)= filll_o;}
2250 #line 2251 "parser.c"
2251 break;
2252
2253 case 25: /* stretch: number order */
2254 #line 344 "parser.y"
2255 {
2256 #line 1976 "format.w"
2257 (yyval.st).f= (yyvsp[-1].f);(yyval.st).o= (yyvsp[0].o);}
2258 #line 2259 "parser.c"
2259 break;
2260
2261 case 26: /* penalty: integer */
2262 #line 348 "parser.y"
2263 {
2264 #line 2030 "format.w"
2265 RNG("Penalty",(yyvsp[0].i),-20000,+20000);(yyval.i)= (yyvsp[0].i);}
2266 #line 2267 "parser.c"
2267 break;
2268
2269 case 27: /* content_node: start "penalty" penalty ">" */
2270 #line 351 "parser.y"
2271 {
2272 #line 2031 "format.w"
2273 hput_tags((yyvsp[-3].u),hput_int((yyvsp[-1].i)));}
2274 #line 2275 "parser.c"
2275 break;
2276
2277 case 29: /* rule_dimension: "|" */
2278 #line 355 "parser.y"
2279 {
2280 #line 2208 "format.w"
2281 (yyval.d)= RUNNING_DIMEN;}
2282 #line 2283 "parser.c"
2283 break;
2284
2285 case 30: /* rule: rule_dimension rule_dimension rule_dimension */
2286 #line 359 "parser.y"
2287 {
2288 #line 2210 "format.w"
2289 (yyval.r).h= (yyvsp[-2].d);(yyval.r).d= (yyvsp[-1].d);(yyval.r).w= (yyvsp[0].d);
2290 if((yyvsp[0].d)==RUNNING_DIMEN&&((yyvsp[-2].d)==RUNNING_DIMEN||(yyvsp[-1].d)==RUNNING_DIMEN))
2291 QUIT("Incompatible running dimensions 0x%x 0x%x 0x%x",(yyvsp[-2].d),(yyvsp[-1].d),(yyvsp[0].d));}
2292 #line 2293 "parser.c"
2293 break;
2294
2295 case 31: /* rule_node: start "rule" rule ">" */
2296 #line 364 "parser.y"
2297 {
2298 #line 2213 "format.w"
2299 hput_tags((yyvsp[-3].u),hput_rule(&((yyvsp[-1].r))));}
2300 #line 2301 "parser.c"
2301 break;
2302
2303 case 33: /* explicit: %empty */
2304 #line 369 "parser.y"
2305 {
2306 #line 2321 "format.w"
2307 (yyval.b)= false;}
2308 #line 2309 "parser.c"
2309 break;
2310
2311 case 34: /* explicit: "!" */
2312 #line 371 "parser.y"
2313 {
2314 #line 2321 "format.w"
2315 (yyval.b)= true;}
2316 #line 2317 "parser.c"
2317 break;
2318
2319 case 35: /* kern: explicit xdimen */
2320 #line 374 "parser.y"
2321 {
2322 #line 2322 "format.w"
2323 (yyval.kt).x= (yyvsp[-1].b);(yyval.kt).d= (yyvsp[0].xd);}
2324 #line 2325 "parser.c"
2325 break;
2326
2327 case 36: /* content_node: start "kern" kern ">" */
2328 #line 377 "parser.y"
2329 {
2330 #line 2323 "format.w"
2331 hput_tags((yyvsp[-3].u),hput_kern(&((yyvsp[-1].kt))));}
2332 #line 2333 "parser.c"
2333 break;
2334
2335 case 37: /* plus: %empty */
2336 #line 381 "parser.y"
2337 {
2338 #line 2533 "format.w"
2339 (yyval.st).f= 0.0;(yyval.st).o= 0;}
2340 #line 2341 "parser.c"
2341 break;
2342
2343 case 38: /* plus: "plus" stretch */
2344 #line 383 "parser.y"
2345 {
2346 #line 2533 "format.w"
2347 (yyval.st)= (yyvsp[0].st);}
2348 #line 2349 "parser.c"
2349 break;
2350
2351 case 39: /* minus: %empty */
2352 #line 386 "parser.y"
2353 {
2354 #line 2534 "format.w"
2355 (yyval.st).f= 0.0;(yyval.st).o= 0;}
2356 #line 2357 "parser.c"
2357 break;
2358
2359 case 40: /* minus: "minus" stretch */
2360 #line 388 "parser.y"
2361 {
2362 #line 2534 "format.w"
2363 (yyval.st)= (yyvsp[0].st);}
2364 #line 2365 "parser.c"
2365 break;
2366
2367 case 41: /* glue: xdimen plus minus */
2368 #line 391 "parser.y"
2369 {
2370 #line 2535 "format.w"
2371 (yyval.g).w= (yyvsp[-2].xd);(yyval.g).p= (yyvsp[-1].st);(yyval.g).m= (yyvsp[0].st);}
2372 #line 2373 "parser.c"
2373 break;
2374
2375 case 42: /* content_node: start "glue" glue ">" */
2376 #line 394 "parser.y"
2377 {
2378 #line 2536 "format.w"
2379 if(ZERO_GLUE((yyvsp[-1].g))){HPUT8(zero_skip_no);
2380 hput_tags((yyvsp[-3].u),TAG(glue_kind,0));}else hput_tags((yyvsp[-3].u),hput_glue(&((yyvsp[-1].g))));}
2381 #line 2382 "parser.c"
2382 break;
2383
2384 case 43: /* glue_node: start "glue" glue ">" */
2385 #line 399 "parser.y"
2386 {
2387 #line 2539 "format.w"
2388 if(ZERO_GLUE((yyvsp[-1].g))){hpos--;(yyval.b)= false;}
2389 else{hput_tags((yyvsp[-3].u),hput_glue(&((yyvsp[-1].g))));(yyval.b)= true;}}
2390 #line 2391 "parser.c"
2391 break;
2392
2393 case 44: /* position: %empty */
2394 #line 404 "parser.y"
2395 {
2396 #line 2814 "format.w"
2397 (yyval.u)= hpos-hstart;}
2398 #line 2399 "parser.c"
2399 break;
2400
2401 case 47: /* estimate: %empty */
2402 #line 409 "parser.y"
2403 {
2404 #line 2817 "format.w"
2405 hpos+= 2;}
2406 #line 2407 "parser.c"
2407 break;
2408
2409 case 48: /* estimate: UNSIGNED */
2410 #line 412 "parser.y"
2411 {
2412 #line 2818 "format.w"
2413 hpos+= hsize_bytes((yyvsp[0].u))+1;}
2414 #line 2415 "parser.c"
2415 break;
2416
2417 case 49: /* list: start estimate content_list ">" */
2418 #line 416 "parser.y"
2419 {
2420 #line 2820 "format.w"
2421 (yyval.l).t= TAG(list_kind,b010);(yyval.l).p= (yyvsp[-1].u);(yyval.l).s= (hpos-hstart)-(yyvsp[-1].u);
2422 hput_tags((yyvsp[-3].u),hput_list((yyvsp[-3].u)+1,&((yyval.l))));}
2423 #line 2424 "parser.c"
2424 break;
2425
2426 case 50: /* $@1: %empty */
2427 #line 422 "parser.y"
2428 {
2429 #line 3234 "format.w"
2430 hpos+= 4;}
2431 #line 2432 "parser.c"
2432 break;
2433
2434 case 51: /* list: TXT_START position $@1 text TXT_END */
2435 #line 426 "parser.y"
2436 {
2437 #line 3236 "format.w"
2438 (yyval.l).t= TAG(list_kind,b110);(yyval.l).p= (yyvsp[-1].u);(yyval.l).s= (hpos-hstart)-(yyvsp[-1].u);
2439 hput_tags((yyvsp[-3].u),hput_list((yyvsp[-3].u)+1,&((yyval.l))));}
2440 #line 2441 "parser.c"
2441 break;
2442
2443 case 54: /* txt: TXT_CC */
2444 #line 432 "parser.y"
2445 {
2446 #line 3240 "format.w"
2447 hput_txt_cc((yyvsp[0].u));}
2448 #line 2449 "parser.c"
2449 break;
2450
2451 case 55: /* txt: TXT_FONT */
2452 #line 435 "parser.y"
2453 {
2454 #line 3241 "format.w"
2455 REF(font_kind,(yyvsp[0].u));hput_txt_font((yyvsp[0].u));}
2456 #line 2457 "parser.c"
2457 break;
2458
2459 case 56: /* txt: TXT_GLOBAL */
2460 #line 438 "parser.y"
2461 {
2462 #line 3242 "format.w"
2463 REF((yyvsp[0].rf).k,(yyvsp[0].rf).n);hput_txt_global(&((yyvsp[0].rf)));}
2464 #line 2465 "parser.c"
2465 break;
2466
2467 case 57: /* txt: TXT_LOCAL */
2468 #line 441 "parser.y"
2469 {
2470 #line 3243 "format.w"
2471 RNG("Font parameter",(yyvsp[0].u),0,11);hput_txt_local((yyvsp[0].u));}
2472 #line 2473 "parser.c"
2473 break;
2474
2475 case 58: /* txt: TXT_FONT_GLUE */
2476 #line 444 "parser.y"
2477 {
2478 #line 3244 "format.w"
2479 HPUTX(1);HPUT8(txt_glue);}
2480 #line 2481 "parser.c"
2481 break;
2482
2483 case 59: /* txt: TXT_FONT_HYPHEN */
2484 #line 447 "parser.y"
2485 {
2486 #line 3245 "format.w"
2487 HPUTX(1);HPUT8(txt_hyphen);}
2488 #line 2489 "parser.c"
2489 break;
2490
2491 case 60: /* txt: TXT_IGNORE */
2492 #line 450 "parser.y"
2493 {
2494 #line 3246 "format.w"
2495 HPUTX(1);HPUT8(txt_ignore);}
2496 #line 2497 "parser.c"
2497 break;
2498
2499 case 61: /* $@2: %empty */
2500 #line 453 "parser.y"
2501 {
2502 #line 3247 "format.w"
2503 HPUTX(1);HPUT8(txt_node);}
2504 #line 2505 "parser.c"
2505 break;
2506
2507 case 63: /* box_dimen: dimension dimension dimension */
2508 #line 459 "parser.y"
2509 {
2510 #line 3503 "format.w"
2511 (yyval.info)= hput_box_dimen((yyvsp[-2].d),(yyvsp[-1].d),(yyvsp[0].d));}
2512 #line 2513 "parser.c"
2513 break;
2514
2515 case 64: /* box_shift: %empty */
2516 #line 462 "parser.y"
2517 {
2518 #line 3504 "format.w"
2519 (yyval.info)= b000;}
2520 #line 2521 "parser.c"
2521 break;
2522
2523 case 65: /* box_shift: "shifted" dimension */
2524 #line 465 "parser.y"
2525 {
2526 #line 3505 "format.w"
2527 (yyval.info)= hput_box_shift((yyvsp[0].d));}
2528 #line 2529 "parser.c"
2529 break;
2530
2531 case 66: /* box_glue_set: %empty */
2532 #line 469 "parser.y"
2533 {
2534 #line 3507 "format.w"
2535 (yyval.info)= b000;}
2536 #line 2537 "parser.c"
2537 break;
2538
2539 case 67: /* box_glue_set: "plus" stretch */
2540 #line 472 "parser.y"
2541 {
2542 #line 3508 "format.w"
2543 (yyval.info)= hput_box_glue_set(+1,(yyvsp[0].st).f,(yyvsp[0].st).o);}
2544 #line 2545 "parser.c"
2545 break;
2546
2547 case 68: /* box_glue_set: "minus" stretch */
2548 #line 475 "parser.y"
2549 {
2550 #line 3509 "format.w"
2551 (yyval.info)= hput_box_glue_set(-1,(yyvsp[0].st).f,(yyvsp[0].st).o);}
2552 #line 2553 "parser.c"
2553 break;
2554
2555 case 69: /* box: box_dimen box_shift box_glue_set list */
2556 #line 480 "parser.y"
2557 {
2558 #line 3512 "format.w"
2559 (yyval.info)= (yyvsp[-3].info) |(yyvsp[-2].info) |(yyvsp[-1].info);}
2560 #line 2561 "parser.c"
2561 break;
2562
2563 case 70: /* hbox_node: start "hbox" box ">" */
2564 #line 484 "parser.y"
2565 {
2566 #line 3514 "format.w"
2567 hput_tags((yyvsp[-3].u),TAG(hbox_kind,(yyvsp[-1].info)));}
2568 #line 2569 "parser.c"
2569 break;
2570
2571 case 71: /* vbox_node: start "vbox" box ">" */
2572 #line 487 "parser.y"
2573 {
2574 #line 3515 "format.w"
2575 hput_tags((yyvsp[-3].u),TAG(vbox_kind,(yyvsp[-1].info)));}
2576 #line 2577 "parser.c"
2577 break;
2578
2579 case 74: /* box_flex: plus minus */
2580 #line 492 "parser.y"
2581 {
2582 #line 3711 "format.w"
2583 hput_stretch(&((yyvsp[-1].st)));hput_stretch(&((yyvsp[0].st)));}
2584 #line 2585 "parser.c"
2585 break;
2586
2587 case 75: /* box_options: box_shift box_flex xdimen_ref list */
2588 #line 496 "parser.y"
2589 {
2590 #line 3713 "format.w"
2591 (yyval.info)= (yyvsp[-3].info);}
2592 #line 2593 "parser.c"
2593 break;
2594
2595 case 76: /* box_options: box_shift box_flex xdimen_node list */
2596 #line 499 "parser.y"
2597 {
2598 #line 3714 "format.w"
2599 (yyval.info)= (yyvsp[-3].info) |b100;}
2600 #line 2601 "parser.c"
2601 break;
2602
2603 case 77: /* hxbox_node: start "hset" box_dimen box_options ">" */
2604 #line 503 "parser.y"
2605 {
2606 #line 3716 "format.w"
2607 hput_tags((yyvsp[-4].u),TAG(hset_kind,(yyvsp[-2].info) |(yyvsp[-1].info)));}
2608 #line 2609 "parser.c"
2609 break;
2610
2611 case 79: /* vbox_dimen: "top" dimension dimension dimension */
2612 #line 509 "parser.y"
2613 {
2614 #line 3720 "format.w"
2615 (yyval.info)= hput_box_dimen((yyvsp[-2].d),(yyvsp[-1].d)^0x40000000,(yyvsp[0].d));}
2616 #line 2617 "parser.c"
2617 break;
2618
2619 case 80: /* vxbox_node: start "vset" vbox_dimen box_options ">" */
2620 #line 513 "parser.y"
2621 {
2622 #line 3722 "format.w"
2623 hput_tags((yyvsp[-4].u),TAG(vset_kind,(yyvsp[-2].info) |(yyvsp[-1].info)));}
2624 #line 2625 "parser.c"
2625 break;
2626
2627 case 81: /* box_goal: "to" xdimen_ref */
2628 #line 517 "parser.y"
2629 {
2630 #line 3724 "format.w"
2631 (yyval.info)= b000;}
2632 #line 2633 "parser.c"
2633 break;
2634
2635 case 82: /* box_goal: "add" xdimen_ref */
2636 #line 520 "parser.y"
2637 {
2638 #line 3725 "format.w"
2639 (yyval.info)= b001;}
2640 #line 2641 "parser.c"
2641 break;
2642
2643 case 83: /* box_goal: "to" xdimen_node */
2644 #line 523 "parser.y"
2645 {
2646 #line 3726 "format.w"
2647 (yyval.info)= b100;}
2648 #line 2649 "parser.c"
2649 break;
2650
2651 case 84: /* box_goal: "add" xdimen_node */
2652 #line 526 "parser.y"
2653 {
2654 #line 3727 "format.w"
2655 (yyval.info)= b101;}
2656 #line 2657 "parser.c"
2657 break;
2658
2659 case 85: /* hpack: box_shift box_goal list */
2660 #line 530 "parser.y"
2661 {
2662 #line 3729 "format.w"
2663 (yyval.info)= (yyvsp[-1].info);}
2664 #line 2665 "parser.c"
2665 break;
2666
2667 case 86: /* hxbox_node: start "hpack" hpack ">" */
2668 #line 534 "parser.y"
2669 {
2670 #line 3731 "format.w"
2671 hput_tags((yyvsp[-3].u),TAG(hpack_kind,(yyvsp[-1].info)));}
2672 #line 2673 "parser.c"
2673 break;
2674
2675 case 87: /* max_depth: %empty */
2676 #line 538 "parser.y"
2677 {
2678 #line 3733 "format.w"
2679 (yyval.d)= MAX_DIMEN;}
2680 #line 2681 "parser.c"
2681 break;
2682
2683 case 88: /* max_depth: "max" "depth" dimension */
2684 #line 540 "parser.y"
2685 {
2686 #line 3733 "format.w"
2687 (yyval.d)= (yyvsp[0].d);}
2688 #line 2689 "parser.c"
2689 break;
2690
2691 case 89: /* $@3: %empty */
2692 #line 544 "parser.y"
2693 {
2694 #line 3735 "format.w"
2695 HPUT32((yyvsp[0].d));}
2696 #line 2697 "parser.c"
2697 break;
2698
2699 case 90: /* vpack: max_depth $@3 box_shift box_goal list */
2700 #line 546 "parser.y"
2701 {
2702 #line 3735 "format.w"
2703 (yyval.info)= (yyvsp[-2].info) |(yyvsp[-1].info);}
2704 #line 2705 "parser.c"
2705 break;
2706
2707 case 91: /* $@4: %empty */
2708 #line 549 "parser.y"
2709 {
2710 #line 3736 "format.w"
2711 HPUT32((yyvsp[0].d)^0x40000000);}
2712 #line 2713 "parser.c"
2713 break;
2714
2715 case 92: /* vpack: "top" max_depth $@4 box_shift box_goal list */
2716 #line 551 "parser.y"
2717 {
2718 #line 3736 "format.w"
2719 (yyval.info)= (yyvsp[-2].info) |(yyvsp[-1].info);}
2720 #line 2721 "parser.c"
2721 break;
2722
2723 case 93: /* vxbox_node: start "vpack" vpack ">" */
2724 #line 555 "parser.y"
2725 {
2726 #line 3738 "format.w"
2727 hput_tags((yyvsp[-3].u),TAG(vpack_kind,(yyvsp[-1].info)));}
2728 #line 2729 "parser.c"
2729 break;
2730
2731 case 96: /* ltype: %empty */
2732 #line 561 "parser.y"
2733 {
2734 #line 3852 "format.w"
2735 (yyval.info)= 1;}
2736 #line 2737 "parser.c"
2737 break;
2738
2739 case 97: /* ltype: "align" */
2740 #line 563 "parser.y"
2741 {
2742 #line 3852 "format.w"
2743 (yyval.info)= 1;}
2744 #line 2745 "parser.c"
2745 break;
2746
2747 case 98: /* ltype: "center" */
2748 #line 565 "parser.y"
2749 {
2750 #line 3852 "format.w"
2751 (yyval.info)= 2;}
2752 #line 2753 "parser.c"
2753 break;
2754
2755 case 99: /* ltype: "expand" */
2756 #line 567 "parser.y"
2757 {
2758 #line 3852 "format.w"
2759 (yyval.info)= 3;}
2760 #line 2761 "parser.c"
2761 break;
2762
2763 case 100: /* leaders: glue_node ltype rule_node */
2764 #line 570 "parser.y"
2765 {
2766 #line 3853 "format.w"
2767 if((yyvsp[-2].b))(yyval.info)= (yyvsp[-1].info) |b100;else (yyval.info)= (yyvsp[-1].info);}
2768 #line 2769 "parser.c"
2769 break;
2770
2771 case 101: /* leaders: glue_node ltype hbox_node */
2772 #line 573 "parser.y"
2773 {
2774 #line 3854 "format.w"
2775 if((yyvsp[-2].b))(yyval.info)= (yyvsp[-1].info) |b100;else (yyval.info)= (yyvsp[-1].info);}
2776 #line 2777 "parser.c"
2777 break;
2778
2779 case 102: /* leaders: glue_node ltype vbox_node */
2780 #line 576 "parser.y"
2781 {
2782 #line 3855 "format.w"
2783 if((yyvsp[-2].b))(yyval.info)= (yyvsp[-1].info) |b100;else (yyval.info)= (yyvsp[-1].info);}
2784 #line 2785 "parser.c"
2785 break;
2786
2787 case 103: /* content_node: start "leaders" leaders ">" */
2788 #line 579 "parser.y"
2789 {
2790 #line 3856 "format.w"
2791 hput_tags((yyvsp[-3].u),TAG(leaders_kind,(yyvsp[-1].info)));}
2792 #line 2793 "parser.c"
2793 break;
2794
2795 case 104: /* $@5: %empty */
2796 #line 583 "parser.y"
2797 {
2798 #line 3962 "format.w"
2799 if((yyvsp[0].d)!=0)HPUT32((yyvsp[0].d));}
2800 #line 2801 "parser.c"
2801 break;
2802
2803 case 105: /* baseline: dimension $@5 glue_node glue_node */
2804 #line 586 "parser.y"
2805 {
2806 #line 3963 "format.w"
2807 (yyval.info)= b000;if((yyvsp[-3].d)!=0)(yyval.info) |= b001;
2808 if((yyvsp[-1].b))(yyval.info) |= b100;
2809 if((yyvsp[0].b))(yyval.info) |= b010;
2810 }
2811 #line 2812 "parser.c"
2812 break;
2813
2814 case 106: /* content_node: start "baseline" baseline ">" */
2815 #line 593 "parser.y"
2816 {
2817 #line 3968 "format.w"
2818 if((yyvsp[-1].info)==b000)HPUT8(0);hput_tags((yyvsp[-3].u),TAG(baseline_kind,(yyvsp[-1].info)));}
2819 #line 2820 "parser.c"
2820 break;
2821
2822 case 108: /* cc_list: cc_list TXT_CC */
2823 #line 597 "parser.y"
2824 {
2825 #line 4051 "format.w"
2826 hput_utf8((yyvsp[0].u));}
2827 #line 2828 "parser.c"
2828 break;
2829
2830 case 109: /* lig_cc: UNSIGNED */
2831 #line 600 "parser.y"
2832 {
2833 #line 4052 "format.w"
2834 RNG("UTF-8 code",(yyvsp[0].u),0,0x1FFFFF);(yyval.u)= hpos-hstart;hput_utf8((yyvsp[0].u));}
2835 #line 2836 "parser.c"
2836 break;
2837
2838 case 110: /* lig_cc: CHARCODE */
2839 #line 603 "parser.y"
2840 {
2841 #line 4053 "format.w"
2842 (yyval.u)= hpos-hstart;hput_utf8((yyvsp[0].u));}
2843 #line 2844 "parser.c"
2844 break;
2845
2846 case 111: /* ref: REFERENCE */
2847 #line 606 "parser.y"
2848 {
2849 #line 4054 "format.w"
2850 HPUT8((yyvsp[0].u));(yyval.u)= (yyvsp[0].u);}
2851 #line 2852 "parser.c"
2852 break;
2853
2854 case 112: /* $@6: %empty */
2855 #line 609 "parser.y"
2856 {
2857 #line 4055 "format.w"
2858 REF(font_kind,(yyvsp[0].u));}
2859 #line 2860 "parser.c"
2860 break;
2861
2862 case 113: /* ligature: ref $@6 lig_cc TXT_START cc_list TXT_END */
2863 #line 612 "parser.y"
2864 {
2865 #line 4056 "format.w"
2866 (yyval.lg).f= (yyvsp[-5].u);(yyval.lg).l.p= (yyvsp[-3].u);(yyval.lg).l.s= (hpos-hstart)-(yyvsp[-3].u);
2867 RNG("Ligature size",(yyval.lg).l.s,0,255);}
2868 #line 2869 "parser.c"
2869 break;
2870
2871 case 114: /* content_node: start "ligature" ligature ">" */
2872 #line 616 "parser.y"
2873 {
2874 #line 4058 "format.w"
2875 hput_tags((yyvsp[-3].u),hput_ligature(&((yyvsp[-1].lg))));}
2876 #line 2877 "parser.c"
2877 break;
2878
2879 case 115: /* replace_count: explicit */
2880 #line 620 "parser.y"
2881 {
2882 #line 4169 "format.w"
2883 if((yyvsp[0].b)){(yyval.u)= 0x80;HPUT8(0x80);}else (yyval.u)= 0x00;}
2884 #line 2885 "parser.c"
2885 break;
2886
2887 case 116: /* replace_count: explicit UNSIGNED */
2888 #line 623 "parser.y"
2889 {
2890 #line 4170 "format.w"
2891 RNG("Replace count",(yyvsp[0].u),0,31);
2892 (yyval.u)= ((yyvsp[0].u)) |(((yyvsp[-1].b))?0x80:0x00);if((yyval.u)!=0)HPUT8((yyval.u));}
2893 #line 2894 "parser.c"
2894 break;
2895
2896 case 117: /* disc: replace_count list list */
2897 #line 627 "parser.y"
2898 {
2899 #line 4172 "format.w"
2900 (yyval.dc).r= (yyvsp[-2].u);(yyval.dc).p= (yyvsp[-1].l);(yyval.dc).q= (yyvsp[0].l);
2901 if((yyvsp[0].l).s==0){hpos= hpos-3;if((yyvsp[-1].l).s==0)hpos= hpos-3;}}
2902 #line 2903 "parser.c"
2903 break;
2904
2905 case 118: /* disc: replace_count list */
2906 #line 631 "parser.y"
2907 {
2908 #line 4174 "format.w"
2909 (yyval.dc).r= (yyvsp[-1].u);(yyval.dc).p= (yyvsp[0].l);if((yyvsp[0].l).s==0)hpos= hpos-3;(yyval.dc).q.s= 0;}
2910 #line 2911 "parser.c"
2911 break;
2912
2913 case 119: /* disc: replace_count */
2914 #line 634 "parser.y"
2915 {
2916 #line 4175 "format.w"
2917 (yyval.dc).r= (yyvsp[0].u);(yyval.dc).p.s= 0;(yyval.dc).q.s= 0;}
2918 #line 2919 "parser.c"
2919 break;
2920
2921 case 120: /* disc_node: start "disc" disc ">" */
2922 #line 640 "parser.y"
2923 {
2924 #line 4179 "format.w"
2925 hput_tags((yyvsp[-3].u),hput_disc(&((yyvsp[-1].dc))));}
2926 #line 2927 "parser.c"
2927 break;
2928
2929 case 122: /* par_dimen: xdimen */
2930 #line 646 "parser.y"
2931 {
2932 #line 4331 "format.w"
2933 hput_xdimen_node(&((yyvsp[0].xd)));}
2934 #line 2935 "parser.c"
2935 break;
2936
2937 case 123: /* par: xdimen_ref param_ref list */
2938 #line 649 "parser.y"
2939 {
2940 #line 4332 "format.w"
2941 (yyval.info)= b000;}
2942 #line 2943 "parser.c"
2943 break;
2944
2945 case 124: /* par: xdimen_ref param_list list */
2946 #line 652 "parser.y"
2947 {
2948 #line 4333 "format.w"
2949 (yyval.info)= b010;}
2950 #line 2951 "parser.c"
2951 break;
2952
2953 case 125: /* $@7: %empty */
2954 #line 655 "parser.y"
2955 {
2956 #line 4334 "format.w"
2957 hput_xdimen_node(&((yyvsp[-1].xd)));}
2958 #line 2959 "parser.c"
2959 break;
2960
2961 case 126: /* par: xdimen param_ref $@7 list */
2962 #line 657 "parser.y"
2963 {
2964 #line 4334 "format.w"
2965 (yyval.info)= b100;}
2966 #line 2967 "parser.c"
2967 break;
2968
2969 case 127: /* par: par_dimen param_list list */
2970 #line 660 "parser.y"
2971 {
2972 #line 4335 "format.w"
2973 (yyval.info)= b110;}
2974 #line 2975 "parser.c"
2975 break;
2976
2977 case 128: /* content_node: start "par" par ">" */
2978 #line 664 "parser.y"
2979 {
2980 #line 4337 "format.w"
2981 hput_tags((yyvsp[-3].u),TAG(par_kind,(yyvsp[-1].info)));}
2982 #line 2983 "parser.c"
2983 break;
2984
2985 case 129: /* math: param_ref list */
2986 #line 668 "parser.y"
2987 {
2988 #line 4403 "format.w"
2989 (yyval.info)= b000;}
2990 #line 2991 "parser.c"
2991 break;
2992
2993 case 130: /* math: param_ref list hbox_node */
2994 #line 671 "parser.y"
2995 {
2996 #line 4404 "format.w"
2997 (yyval.info)= b001;}
2998 #line 2999 "parser.c"
2999 break;
3000
3001 case 131: /* math: param_ref hbox_node list */
3002 #line 674 "parser.y"
3003 {
3004 #line 4405 "format.w"
3005 (yyval.info)= b010;}
3006 #line 3007 "parser.c"
3007 break;
3008
3009 case 132: /* math: param_list list */
3010 #line 677 "parser.y"
3011 {
3012 #line 4406 "format.w"
3013 (yyval.info)= b100;}
3014 #line 3015 "parser.c"
3015 break;
3016
3017 case 133: /* math: param_list list hbox_node */
3018 #line 680 "parser.y"
3019 {
3020 #line 4407 "format.w"
3021 (yyval.info)= b101;}
3022 #line 3023 "parser.c"
3023 break;
3024
3025 case 134: /* math: param_list hbox_node list */
3026 #line 683 "parser.y"
3027 {
3028 #line 4408 "format.w"
3029 (yyval.info)= b110;}
3030 #line 3031 "parser.c"
3031 break;
3032
3033 case 135: /* content_node: start "math" math ">" */
3034 #line 687 "parser.y"
3035 {
3036 #line 4410 "format.w"
3037 hput_tags((yyvsp[-3].u),TAG(math_kind,(yyvsp[-1].info)));}
3038 #line 3039 "parser.c"
3039 break;
3040
3041 case 136: /* on_off: "on" */
3042 #line 691 "parser.y"
3043 {
3044 #line 4460 "format.w"
3045 (yyval.i)= 1;}
3046 #line 3047 "parser.c"
3047 break;
3048
3049 case 137: /* on_off: "off" */
3050 #line 693 "parser.y"
3051 {
3052 #line 4460 "format.w"
3053 (yyval.i)= 0;}
3054 #line 3055 "parser.c"
3055 break;
3056
3057 case 138: /* math: on_off */
3058 #line 696 "parser.y"
3059 {
3060 #line 4461 "format.w"
3061 (yyval.info)= b011 |((yyvsp[0].i)<<2);}
3062 #line 3063 "parser.c"
3063 break;
3064
3065 case 139: /* content_node: start "adjust" list ">" */
3066 #line 700 "parser.y"
3067 {
3068 #line 4492 "format.w"
3069 hput_tags((yyvsp[-3].u),TAG(adjust_kind,1));}
3070 #line 3071 "parser.c"
3071 break;
3072
3073 case 140: /* span_count: UNSIGNED */
3074 #line 704 "parser.y"
3075 {
3076 #line 4591 "format.w"
3077 (yyval.info)= hput_span_count((yyvsp[0].u));}
3078 #line 3079 "parser.c"
3079 break;
3080
3081 case 141: /* content_node: start "item" content_node ">" */
3082 #line 707 "parser.y"
3083 {
3084 #line 4592 "format.w"
3085 hput_tags((yyvsp[-3].u),TAG(item_kind,1));}
3086 #line 3087 "parser.c"
3087 break;
3088
3089 case 142: /* content_node: start "item" span_count content_node ">" */
3090 #line 710 "parser.y"
3091 {
3092 #line 4593 "format.w"
3093 hput_tags((yyvsp[-4].u),TAG(item_kind,(yyvsp[-2].info)));}
3094 #line 3095 "parser.c"
3095 break;
3096
3097 case 143: /* content_node: start "item" list ">" */
3098 #line 713 "parser.y"
3099 {
3100 #line 4594 "format.w"
3101 hput_tags((yyvsp[-3].u),TAG(item_kind,b000));}
3102 #line 3103 "parser.c"
3103 break;
3104
3105 case 144: /* table: "h" box_goal list list */
3106 #line 717 "parser.y"
3107 {
3108 #line 4596 "format.w"
3109 (yyval.info)= (yyvsp[-2].info);}
3110 #line 3111 "parser.c"
3111 break;
3112
3113 case 145: /* table: "v" box_goal list list */
3114 #line 720 "parser.y"
3115 {
3116 #line 4597 "format.w"
3117 (yyval.info)= (yyvsp[-2].info) |b010;}
3118 #line 3119 "parser.c"
3119 break;
3120
3121 case 146: /* content_node: start "table" table ">" */
3122 #line 724 "parser.y"
3123 {
3124 #line 4599 "format.w"
3125 hput_tags((yyvsp[-3].u),TAG(table_kind,(yyvsp[-1].info)));}
3126 #line 3127 "parser.c"
3127 break;
3128
3129 case 147: /* image_aspect: number */
3130 #line 728 "parser.y"
3131 {
3132 #line 4737 "format.w"
3133 (yyval.f)= (yyvsp[0].f);}
3134 #line 3135 "parser.c"
3135 break;
3136
3137 case 148: /* image_aspect: %empty */
3138 #line 730 "parser.y"
3139 {
3140 #line 4737 "format.w"
3141 (yyval.f)= 0.0;}
3142 #line 3143 "parser.c"
3143 break;
3144
3145 case 149: /* image_width: "width" xdimen */
3146 #line 733 "parser.y"
3147 {
3148 #line 4738 "format.w"
3149 (yyval.xd)= (yyvsp[0].xd);}
3150 #line 3151 "parser.c"
3151 break;
3152
3153 case 150: /* image_width: %empty */
3154 #line 736 "parser.y"
3155 {
3156 #line 4739 "format.w"
3157 (yyval.xd)= xdimen_defaults[zero_xdimen_no];}
3158 #line 3159 "parser.c"
3159 break;
3160
3161 case 151: /* image_height: "height" xdimen */
3162 #line 739 "parser.y"
3163 {
3164 #line 4740 "format.w"
3165 (yyval.xd)= (yyvsp[0].xd);}
3166 #line 3167 "parser.c"
3167 break;
3168
3169 case 152: /* image_height: %empty */
3170 #line 742 "parser.y"
3171 {
3172 #line 4741 "format.w"
3173 (yyval.xd)= xdimen_defaults[zero_xdimen_no];}
3174 #line 3175 "parser.c"
3175 break;
3176
3177 case 153: /* image_spec: UNSIGNED image_aspect image_width image_height */
3178 #line 747 "parser.y"
3179 {
3180 #line 4744 "format.w"
3181 (yyval.info)= hput_image_spec((yyvsp[-3].u),(yyvsp[-2].f),0,&((yyvsp[-1].xd)),0,&((yyvsp[0].xd)));}
3182 #line 3183 "parser.c"
3183 break;
3184
3185 case 154: /* image_spec: UNSIGNED image_aspect "width" REFERENCE image_height */
3186 #line 751 "parser.y"
3187 {
3188 #line 4746 "format.w"
3189 (yyval.info)= hput_image_spec((yyvsp[-4].u),(yyvsp[-3].f),(yyvsp[-1].u),NULL,0,&((yyvsp[0].xd)));}
3190 #line 3191 "parser.c"
3191 break;
3192
3193 case 155: /* image_spec: UNSIGNED image_aspect image_width "height" REFERENCE */
3194 #line 755 "parser.y"
3195 {
3196 #line 4748 "format.w"
3197 (yyval.info)= hput_image_spec((yyvsp[-4].u),(yyvsp[-3].f),0,&((yyvsp[-2].xd)),(yyvsp[0].u),NULL);}
3198 #line 3199 "parser.c"
3199 break;
3200
3201 case 156: /* image_spec: UNSIGNED image_aspect "width" REFERENCE "height" REFERENCE */
3202 #line 759 "parser.y"
3203 {
3204 #line 4750 "format.w"
3205 (yyval.info)= hput_image_spec((yyvsp[-5].u),(yyvsp[-4].f),(yyvsp[-2].u),NULL,(yyvsp[0].u),NULL);}
3206 #line 3207 "parser.c"
3207 break;
3208
3209 case 157: /* image: image_spec list */
3210 #line 763 "parser.y"
3211 {
3212 #line 4752 "format.w"
3213 (yyval.info)= (yyvsp[-1].info);}
3214 #line 3215 "parser.c"
3215 break;
3216
3217 case 158: /* content_node: start "image" image ">" */
3218 #line 767 "parser.y"
3219 {
3220 #line 4754 "format.w"
3221 hput_tags((yyvsp[-3].u),TAG(image_kind,(yyvsp[-1].info)));}
3222 #line 3223 "parser.c"
3223 break;
3224
3225 case 159: /* max_value: "outline" UNSIGNED */
3226 #line 771 "parser.y"
3227 {
3228 #line 5398 "format.w"
3229 max_outline= (yyvsp[0].u);
3230 RNG("max outline",max_outline,0,0xFFFF);
3231 DBG(DBGDEF |DBGLABEL,"Setting max outline to %d\n",max_outline);
3232 }
3233 #line 3234 "parser.c"
3234 break;
3235
3236 case 160: /* placement: "top" */
3237 #line 778 "parser.y"
3238 {
3239 #line 5491 "format.w"
3240 (yyval.i)= LABEL_TOP;}
3241 #line 3242 "parser.c"
3242 break;
3243
3244 case 161: /* placement: "bot" */
3245 #line 780 "parser.y"
3246 {
3247 #line 5491 "format.w"
3248 (yyval.i)= LABEL_BOT;}
3249 #line 3250 "parser.c"
3250 break;
3251
3252 case 162: /* placement: "mid" */
3253 #line 782 "parser.y"
3254 {
3255 #line 5491 "format.w"
3256 (yyval.i)= LABEL_MID;}
3257 #line 3258 "parser.c"
3258 break;
3259
3260 case 163: /* placement: %empty */
3261 #line 784 "parser.y"
3262 {
3263 #line 5491 "format.w"
3264 (yyval.i)= LABEL_MID;}
3265 #line 3266 "parser.c"
3266 break;
3267
3268 case 164: /* content_node: "<" "label" REFERENCE placement ">" */
3269 #line 788 "parser.y"
3270 {
3271 #line 5493 "format.w"
3272 hset_label((yyvsp[-2].u),(yyvsp[-1].i));}
3273 #line 3274 "parser.c"
3274 break;
3275
3276 case 165: /* content_node: start "link" REFERENCE on_off ">" */
3277 #line 793 "parser.y"
3278 {
3279 #line 5782 "format.w"
3280 hput_tags((yyvsp[-4].u),hput_link((yyvsp[-2].u),(yyvsp[-1].i)?1:0xFF,(yyvsp[-1].i)));}
3281 #line 3282 "parser.c"
3282 break;
3283
3284 case 166: /* content_node: start "link" REFERENCE on_off REFERENCE ">" */
3285 #line 797 "parser.y"
3286 {
3287 #line 5784 "format.w"
3288 hput_tags((yyvsp[-5].u),hput_link((yyvsp[-3].u),(yyvsp[-1].u),(yyvsp[-2].i)));}
3289 #line 3290 "parser.c"
3290 break;
3291
3292 case 167: /* def_node: "<" "outline" REFERENCE integer position list ">" */
3293 #line 801 "parser.y"
3294 {
3295 #line 5916 "format.w"
3296
3297 static int outline_no= -1;
3298 (yyval.rf).k= outline_kind;(yyval.rf).n= (yyvsp[-4].u);
3299 if((yyvsp[-1].l).s==0)QUIT("Outline with empty title in line %d",yylineno);
3300 outline_no++;
3301 hset_outline(outline_no,(yyvsp[-4].u),(yyvsp[-3].i),(yyvsp[-2].u));
3302 }
3303 #line 3304 "parser.c"
3304 break;
3305
3306 case 168: /* color: "<" UNSIGNED UNSIGNED UNSIGNED UNSIGNED ">" */
3307 #line 812 "parser.y"
3308 {
3309 #line 6206 "format.w"
3310 RNG("red",(yyvsp[-4].u),0,0xFF);RNG("green",(yyvsp[-3].u),0,0xFF);
3311 RNG("blue",(yyvsp[-2].u),0,0xFF);RNG("alpha",(yyvsp[-1].u),0,0xFF);
3312 colors_n[colors_i++]= ((yyvsp[-4].u)<<24) |((yyvsp[-3].u)<<16) |((yyvsp[-2].u)<<8) |(yyvsp[-1].u);
3313 }
3314 #line 3315 "parser.c"
3315 break;
3316
3317 case 169: /* color: "<" UNSIGNED UNSIGNED UNSIGNED ">" */
3318 #line 819 "parser.y"
3319 {
3320 #line 6211 "format.w"
3321 RNG("red",(yyvsp[-3].u),0,0xFF);RNG("green",(yyvsp[-2].u),0,0xFF);
3322 RNG("blue",(yyvsp[-1].u),0,0xFF);
3323 colors_n[colors_i++]= ((yyvsp[-3].u)<<24) |((yyvsp[-2].u)<<16) |((yyvsp[-1].u)<<8) |0xFF;
3324 }
3325 #line 3326 "parser.c"
3326 break;
3327
3328 case 170: /* color: UNSIGNED */
3329 #line 825 "parser.y"
3330 {
3331 #line 6215 "format.w"
3332 colors_n[colors_i++]= (yyvsp[0].u);}
3333 #line 3334 "parser.c"
3334 break;
3335
3336 case 172: /* color_pair: "<" color ">" */
3337 #line 830 "parser.y"
3338 {
3339 #line 6225 "format.w"
3340 colors_n[colors_i++]= 0;}
3341 #line 3342 "parser.c"
3342 break;
3343
3344 case 173: /* color_unset: %empty */
3345 #line 833 "parser.y"
3346 {
3347 #line 6226 "format.w"
3348 colors_i+= 2;}
3349 #line 3350 "parser.c"
3350 break;
3351
3352 case 179: /* $@8: %empty */
3353 #line 845 "parser.y"
3354 {
3355 #line 6256 "format.w"
3356 HPUT8(6);color_init();}
3357 #line 3358 "parser.c"
3358 break;
3359
3360 case 180: /* def_node: start "color" ref $@8 color_set ">" */
3361 #line 848 "parser.y"
3362 {
3363 #line 6257 "format.w"
3364 DEF((yyval.rf),color_kind,(yyvsp[-3].u));hput_color_def((yyvsp[-5].u),(yyvsp[-3].u));}
3365 #line 3366 "parser.c"
3366 break;
3367
3368 case 181: /* content_node: start "color" ref ">" */
3369 #line 853 "parser.y"
3370 {
3371 #line 6311 "format.w"
3372 REF_RNG(color_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(color_kind,b000));}
3373 #line 3374 "parser.c"
3374 break;
3375
3376 case 182: /* content_node: start "color" "off" ">" */
3377 #line 857 "parser.y"
3378 {
3379 #line 6313 "format.w"
3380 HPUT8(0xFF);hput_tags((yyvsp[-3].u),TAG(color_kind,b000));}
3381 #line 3382 "parser.c"
3382 break;
3383
3384 case 183: /* def_node: start "unknown" UNSIGNED UNSIGNED ">" */
3385 #line 861 "parser.y"
3386 {
3387 #line 6441 "format.w"
3388 hput_tags((yyvsp[-4].u),hput_unknown_def((yyvsp[-2].u),(yyvsp[-1].u),0));}
3389 #line 3390 "parser.c"
3390 break;
3391
3392 case 184: /* def_node: start "unknown" UNSIGNED UNSIGNED UNSIGNED ">" */
3393 #line 864 "parser.y"
3394 {
3395 #line 6442 "format.w"
3396 hput_tags((yyvsp[-5].u),hput_unknown_def((yyvsp[-3].u),(yyvsp[-2].u),(yyvsp[-1].u)));}
3397 #line 3398 "parser.c"
3398 break;
3399
3400 case 185: /* content_node: start "unknown" UNSIGNED unknown_bytes unknown_nodes ">" */
3401 #line 868 "parser.y"
3402 {
3403 #line 6454 "format.w"
3404 hput_tags((yyvsp[-5].u),hput_unknown((yyvsp[-5].u),(yyvsp[-3].u),(yyvsp[-2].u),(yyvsp[-1].u)));}
3405 #line 3406 "parser.c"
3406 break;
3407
3408 case 186: /* unknown_bytes: %empty */
3409 #line 871 "parser.y"
3410 {
3411 #line 6455 "format.w"
3412 (yyval.u)= 0;}
3413 #line 3414 "parser.c"
3414 break;
3415
3416 case 187: /* unknown_bytes: unknown_bytes UNSIGNED */
3417 #line 873 "parser.y"
3418 {
3419 #line 6455 "format.w"
3420 RNG("byte",(yyvsp[0].u),0,0xFF);HPUT8((yyvsp[0].u));(yyval.u)= (yyvsp[-1].u)+1;}
3421 #line 3422 "parser.c"
3422 break;
3423
3424 case 192: /* unknown_nodes: %empty */
3425 #line 877 "parser.y"
3426 {
3427 #line 6457 "format.w"
3428 (yyval.u)= 0;}
3429 #line 3430 "parser.c"
3430 break;
3431
3432 case 193: /* unknown_nodes: unknown_nodes unknown_node */
3433 #line 879 "parser.y"
3434 {
3435 #line 6457 "format.w"
3436 RNG("unknown subnodes",(yyvsp[-1].u),0,3);(yyval.u)= (yyvsp[-1].u)+1;}
3437 #line 3438 "parser.c"
3438 break;
3439
3440 case 194: /* stream_link: ref */
3441 #line 883 "parser.y"
3442 {
3443 #line 6892 "format.w"
3444 REF_RNG(stream_kind,(yyvsp[0].u));}
3445 #line 3446 "parser.c"
3446 break;
3447
3448 case 195: /* stream_link: "*" */
3449 #line 885 "parser.y"
3450 {
3451 #line 6892 "format.w"
3452 HPUT8(255);}
3453 #line 3454 "parser.c"
3454 break;
3455
3456 case 196: /* stream_split: stream_link stream_link UNSIGNED */
3457 #line 888 "parser.y"
3458 {
3459 #line 6893 "format.w"
3460 RNG("split ratio",(yyvsp[0].u),0,1000);HPUT16((yyvsp[0].u));}
3461 #line 3462 "parser.c"
3462 break;
3463
3464 case 197: /* $@9: %empty */
3465 #line 891 "parser.y"
3466 {
3467 #line 6894 "format.w"
3468 RNG("magnification factor",(yyvsp[0].u),0,1000);HPUT16((yyvsp[0].u));}
3469 #line 3470 "parser.c"
3470 break;
3471
3472 case 199: /* stream_type: stream_info */
3473 #line 895 "parser.y"
3474 {
3475 #line 6896 "format.w"
3476 (yyval.info)= 0;}
3477 #line 3478 "parser.c"
3478 break;
3479
3480 case 200: /* stream_type: "first" */
3481 #line 897 "parser.y"
3482 {
3483 #line 6896 "format.w"
3484 (yyval.info)= 1;}
3485 #line 3486 "parser.c"
3486 break;
3487
3488 case 201: /* stream_type: "last" */
3489 #line 899 "parser.y"
3490 {
3491 #line 6896 "format.w"
3492 (yyval.info)= 2;}
3493 #line 3494 "parser.c"
3494 break;
3495
3496 case 202: /* stream_type: "top" */
3497 #line 901 "parser.y"
3498 {
3499 #line 6896 "format.w"
3500 (yyval.info)= 3;}
3501 #line 3502 "parser.c"
3502 break;
3503
3504 case 203: /* stream_def_node: start "stream (definition)" ref stream_type list xdimen_node glue_node list glue_node ">" */
3505 #line 907 "parser.y"
3506 {
3507 #line 6900 "format.w"
3508 DEF((yyval.rf),stream_kind,(yyvsp[-7].u));hput_tags((yyvsp[-9].u),TAG(stream_kind,(yyvsp[-6].info) |b100));}
3509 #line 3510 "parser.c"
3510 break;
3511
3512 case 204: /* stream_ins_node: start "stream (definition)" ref ">" */
3513 #line 912 "parser.y"
3514 {
3515 #line 6903 "format.w"
3516 RNG("Stream insertion",(yyvsp[-1].u),0,max_ref[stream_kind]);hput_tags((yyvsp[-3].u),TAG(stream_kind,b100));}
3517 #line 3518 "parser.c"
3518 break;
3519
3520 case 207: /* stream: param_list list */
3521 #line 918 "parser.y"
3522 {
3523 #line 6998 "format.w"
3524 (yyval.info)= b010;}
3525 #line 3526 "parser.c"
3526 break;
3527
3528 case 208: /* stream: param_ref list */
3529 #line 921 "parser.y"
3530 {
3531 #line 6999 "format.w"
3532 (yyval.info)= b000;}
3533 #line 3534 "parser.c"
3534 break;
3535
3536 case 209: /* content_node: start "stream" stream_ref stream ">" */
3537 #line 925 "parser.y"
3538 {
3539 #line 7001 "format.w"
3540 hput_tags((yyvsp[-4].u),TAG(stream_kind,(yyvsp[-1].info)));}
3541 #line 3542 "parser.c"
3542 break;
3543
3544 case 210: /* page_priority: %empty */
3545 #line 929 "parser.y"
3546 {
3547 #line 7104 "format.w"
3548 HPUT8(1);}
3549 #line 3550 "parser.c"
3550 break;
3551
3552 case 211: /* page_priority: UNSIGNED */
3553 #line 932 "parser.y"
3554 {
3555 #line 7105 "format.w"
3556 RNG("page priority",(yyvsp[0].u),0,255);HPUT8((yyvsp[0].u));}
3557 #line 3558 "parser.c"
3558 break;
3559
3560 case 214: /* $@10: %empty */
3561 #line 938 "parser.y"
3562 {
3563 #line 7109 "format.w"
3564 hput_string((yyvsp[0].s));}
3565 #line 3566 "parser.c"
3566 break;
3567
3568 case 215: /* $@11: %empty */
3569 #line 940 "parser.y"
3570 {
3571 #line 7109 "format.w"
3572 HPUT32((yyvsp[0].d));}
3573 #line 3574 "parser.c"
3574 break;
3575
3576 case 217: /* content_node: "<" "range" REFERENCE "on" ">" */
3577 #line 947 "parser.y"
3578 {
3579 #line 7222 "format.w"
3580 REF(page_kind,(yyvsp[-2].u));hput_range((yyvsp[-2].u),true);}
3581 #line 3582 "parser.c"
3582 break;
3583
3584 case 218: /* content_node: "<" "range" REFERENCE "off" ">" */
3585 #line 950 "parser.y"
3586 {
3587 #line 7223 "format.w"
3588 REF(page_kind,(yyvsp[-2].u));hput_range((yyvsp[-2].u),false);}
3589 #line 3590 "parser.c"
3590 break;
3591
3592 case 220: /* $@12: %empty */
3593 #line 956 "parser.y"
3594 {
3595 #line 7926 "format.w"
3596 new_directory((yyvsp[0].u)+1);new_output_buffers();}
3597 #line 3598 "parser.c"
3598 break;
3599
3600 case 224: /* entry: "<" "entry" UNSIGNED string ">" */
3601 #line 961 "parser.y"
3602 {
3603 #line 7929 "format.w"
3604 RNG("Section number",(yyvsp[-2].u),3,max_section_no);hset_entry(&(dir[(yyvsp[-2].u)]),(yyvsp[-2].u),0,0,(yyvsp[-1].s));}
3605 #line 3606 "parser.c"
3606 break;
3607
3608 case 225: /* $@13: %empty */
3609 #line 965 "parser.y"
3610 {
3611 #line 8486 "format.w"
3612 hput_definitions_start();}
3613 #line 3614 "parser.c"
3614 break;
3615
3616 case 226: /* definition_section: "<" "definitions" $@13 max_definitions definition_list ">" */
3617 #line 969 "parser.y"
3618 {
3619 #line 8488 "format.w"
3620 hput_definitions_end();}
3621 #line 3622 "parser.c"
3622 break;
3623
3624 case 229: /* max_definitions: "<" "max" max_list ">" */
3625 #line 975 "parser.y"
3626 {
3627 #line 8604 "format.w"
3628 /*253:*/
3629 if(max_ref[label_kind]>=0)
3630 ALLOCATE(labels,max_ref[label_kind]+1,Label);
3631 /*:253*/ /*274:*/
3632 if(max_outline>=0)
3633 ALLOCATE(outlines,max_outline+1,Outline);
3634 /*:274*/ /*290:*/
3635 {int i;
3636 for(i= 0;i<sizeof(ColorSet)/4;i++)
3637 colors_0[i]= color_defaults[0][i];
3638 }
3639 /*:290*/ /*325:*/
3640 ALLOCATE(page_on,max_ref[page_kind]+1,int);
3641 ALLOCATE(range_pos,2*(max_ref[range_kind]+1),RangePos);
3642 /*:325*/ /*393:*/
3643 definition_bits[0][list_kind]= (1<<(MAX_LIST_DEFAULT+1))-1;
3644 definition_bits[0][param_kind]= (1<<(MAX_LIST_DEFAULT+1))-1;
3645 definition_bits[0][int_kind]= (1<<(MAX_INT_DEFAULT+1))-1;
3646 definition_bits[0][dimen_kind]= (1<<(MAX_DIMEN_DEFAULT+1))-1;
3647 definition_bits[0][xdimen_kind]= (1<<(MAX_XDIMEN_DEFAULT+1))-1;
3648 definition_bits[0][glue_kind]= (1<<(MAX_GLUE_DEFAULT+1))-1;
3649 definition_bits[0][baseline_kind]= (1<<(MAX_BASELINE_DEFAULT+1))-1;
3650 definition_bits[0][page_kind]= (1<<(MAX_PAGE_DEFAULT+1))-1;
3651 definition_bits[0][stream_kind]= (1<<(MAX_STREAM_DEFAULT+1))-1;
3652 definition_bits[0][range_kind]= (1<<(MAX_RANGE_DEFAULT+1))-1;
3653 definition_bits[0][color_kind]= (1<<(MAX_COLOR_DEFAULT+1))-1;
3654 /*:393*/ /*408:*/
3655 ALLOCATE(hfont_name,max_ref[font_kind]+1,char*);
3656 /*:408*/hput_max_definitions();}
3657 #line 3658 "parser.c"
3658 break;
3659
3660 case 232: /* max_value: "font" UNSIGNED */
3661 #line 1009 "parser.y"
3662 {
3663 #line 8608 "format.w"
3664 hset_max(font_kind,(yyvsp[0].u));}
3665 #line 3666 "parser.c"
3666 break;
3667
3668 case 233: /* max_value: "int" UNSIGNED */
3669 #line 1012 "parser.y"
3670 {
3671 #line 8609 "format.w"
3672 hset_max(int_kind,(yyvsp[0].u));}
3673 #line 3674 "parser.c"
3674 break;
3675
3676 case 234: /* max_value: "dimen" UNSIGNED */
3677 #line 1015 "parser.y"
3678 {
3679 #line 8610 "format.w"
3680 hset_max(dimen_kind,(yyvsp[0].u));}
3681 #line 3682 "parser.c"
3682 break;
3683
3684 case 235: /* max_value: "ligature" UNSIGNED */
3685 #line 1018 "parser.y"
3686 {
3687 #line 8611 "format.w"
3688 hset_max(ligature_kind,(yyvsp[0].u));}
3689 #line 3690 "parser.c"
3690 break;
3691
3692 case 236: /* max_value: "disc" UNSIGNED */
3693 #line 1021 "parser.y"
3694 {
3695 #line 8612 "format.w"
3696 hset_max(disc_kind,(yyvsp[0].u));}
3697 #line 3698 "parser.c"
3698 break;
3699
3700 case 237: /* max_value: "glue" UNSIGNED */
3701 #line 1024 "parser.y"
3702 {
3703 #line 8613 "format.w"
3704 hset_max(glue_kind,(yyvsp[0].u));}
3705 #line 3706 "parser.c"
3706 break;
3707
3708 case 238: /* max_value: "language" UNSIGNED */
3709 #line 1027 "parser.y"
3710 {
3711 #line 8614 "format.w"
3712 hset_max(language_kind,(yyvsp[0].u));}
3713 #line 3714 "parser.c"
3714 break;
3715
3716 case 239: /* max_value: "rule" UNSIGNED */
3717 #line 1030 "parser.y"
3718 {
3719 #line 8615 "format.w"
3720 hset_max(rule_kind,(yyvsp[0].u));}
3721 #line 3722 "parser.c"
3722 break;
3723
3724 case 240: /* max_value: "image" UNSIGNED */
3725 #line 1033 "parser.y"
3726 {
3727 #line 8616 "format.w"
3728 hset_max(image_kind,(yyvsp[0].u));}
3729 #line 3730 "parser.c"
3730 break;
3731
3732 case 241: /* max_value: "leaders" UNSIGNED */
3733 #line 1036 "parser.y"
3734 {
3735 #line 8617 "format.w"
3736 hset_max(leaders_kind,(yyvsp[0].u));}
3737 #line 3738 "parser.c"
3738 break;
3739
3740 case 242: /* max_value: "baseline" UNSIGNED */
3741 #line 1039 "parser.y"
3742 {
3743 #line 8618 "format.w"
3744 hset_max(baseline_kind,(yyvsp[0].u));}
3745 #line 3746 "parser.c"
3746 break;
3747
3748 case 243: /* max_value: "xdimen" UNSIGNED */
3749 #line 1042 "parser.y"
3750 {
3751 #line 8619 "format.w"
3752 hset_max(xdimen_kind,(yyvsp[0].u));}
3753 #line 3754 "parser.c"
3754 break;
3755
3756 case 244: /* max_value: "param" UNSIGNED */
3757 #line 1045 "parser.y"
3758 {
3759 #line 8620 "format.w"
3760 hset_max(param_kind,(yyvsp[0].u));}
3761 #line 3762 "parser.c"
3762 break;
3763
3764 case 245: /* max_value: "stream (definition)" UNSIGNED */
3765 #line 1048 "parser.y"
3766 {
3767 #line 8621 "format.w"
3768 hset_max(stream_kind,(yyvsp[0].u));}
3769 #line 3770 "parser.c"
3770 break;
3771
3772 case 246: /* max_value: "page" UNSIGNED */
3773 #line 1051 "parser.y"
3774 {
3775 #line 8622 "format.w"
3776 hset_max(page_kind,(yyvsp[0].u));}
3777 #line 3778 "parser.c"
3778 break;
3779
3780 case 247: /* max_value: "range" UNSIGNED */
3781 #line 1054 "parser.y"
3782 {
3783 #line 8623 "format.w"
3784 hset_max(range_kind,(yyvsp[0].u));}
3785 #line 3786 "parser.c"
3786 break;
3787
3788 case 248: /* max_value: "label" UNSIGNED */
3789 #line 1057 "parser.y"
3790 {
3791 #line 8624 "format.w"
3792 hset_max(label_kind,(yyvsp[0].u));}
3793 #line 3794 "parser.c"
3794 break;
3795
3796 case 249: /* max_value: "color" UNSIGNED */
3797 #line 1060 "parser.y"
3798 {
3799 #line 8625 "format.w"
3800 hset_max(color_kind,(yyvsp[0].u));}
3801 #line 3802 "parser.c"
3802 break;
3803
3804 case 250: /* def_node: start "font" ref font ">" */
3805 #line 1066 "parser.y"
3806 {
3807 #line 8827 "format.w"
3808 DEF((yyval.rf),font_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),(yyvsp[-1].info));}
3809 #line 3810 "parser.c"
3810 break;
3811
3812 case 251: /* def_node: start "int" ref integer ">" */
3813 #line 1069 "parser.y"
3814 {
3815 #line 8828 "format.w"
3816 DEF((yyval.rf),int_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_int((yyvsp[-1].i)));}
3817 #line 3818 "parser.c"
3818 break;
3819
3820 case 252: /* def_node: start "dimen" ref dimension ">" */
3821 #line 1072 "parser.y"
3822 {
3823 #line 8829 "format.w"
3824 DEF((yyval.rf),dimen_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_dimen((yyvsp[-1].d)));}
3825 #line 3826 "parser.c"
3826 break;
3827
3828 case 253: /* def_node: start "language" ref string ">" */
3829 #line 1075 "parser.y"
3830 {
3831 #line 8830 "format.w"
3832 DEF((yyval.rf),language_kind,(yyvsp[-2].u));hput_string((yyvsp[-1].s));hput_tags((yyvsp[-4].u),TAG(language_kind,0));}
3833 #line 3834 "parser.c"
3834 break;
3835
3836 case 254: /* def_node: start "glue" ref glue ">" */
3837 #line 1078 "parser.y"
3838 {
3839 #line 8831 "format.w"
3840 DEF((yyval.rf),glue_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_glue(&((yyvsp[-1].g))));}
3841 #line 3842 "parser.c"
3842 break;
3843
3844 case 255: /* def_node: start "xdimen" ref xdimen ">" */
3845 #line 1081 "parser.y"
3846 {
3847 #line 8832 "format.w"
3848 DEF((yyval.rf),xdimen_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_xdimen(&((yyvsp[-1].xd))));}
3849 #line 3850 "parser.c"
3850 break;
3851
3852 case 256: /* def_node: start "rule" ref rule ">" */
3853 #line 1084 "parser.y"
3854 {
3855 #line 8833 "format.w"
3856 DEF((yyval.rf),rule_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_rule(&((yyvsp[-1].r))));}
3857 #line 3858 "parser.c"
3858 break;
3859
3860 case 257: /* def_node: start "leaders" ref leaders ">" */
3861 #line 1087 "parser.y"
3862 {
3863 #line 8834 "format.w"
3864 DEF((yyval.rf),leaders_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),TAG(leaders_kind,(yyvsp[-1].info)));}
3865 #line 3866 "parser.c"
3866 break;
3867
3868 case 258: /* def_node: start "baseline" ref baseline ">" */
3869 #line 1090 "parser.y"
3870 {
3871 #line 8835 "format.w"
3872 DEF((yyval.rf),baseline_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),TAG(baseline_kind,(yyvsp[-1].info)));}
3873 #line 3874 "parser.c"
3874 break;
3875
3876 case 259: /* def_node: start "ligature" ref ligature ">" */
3877 #line 1093 "parser.y"
3878 {
3879 #line 8836 "format.w"
3880 DEF((yyval.rf),ligature_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_ligature(&((yyvsp[-1].lg))));}
3881 #line 3882 "parser.c"
3882 break;
3883
3884 case 260: /* def_node: start "disc" ref disc ">" */
3885 #line 1096 "parser.y"
3886 {
3887 #line 8837 "format.w"
3888 DEF((yyval.rf),disc_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_disc(&((yyvsp[-1].dc))));}
3889 #line 3890 "parser.c"
3890 break;
3891
3892 case 261: /* def_node: start "image" ref image ">" */
3893 #line 1099 "parser.y"
3894 {
3895 #line 8838 "format.w"
3896 DEF((yyval.rf),image_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),TAG(image_kind,(yyvsp[-1].info)));}
3897 #line 3898 "parser.c"
3898 break;
3899
3900 case 262: /* def_node: start "param" ref parameters ">" */
3901 #line 1102 "parser.y"
3902 {
3903 #line 8839 "format.w"
3904 DEF((yyval.rf),param_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),hput_list((yyvsp[-4].u)+2,&((yyvsp[-1].l))));}
3905 #line 3906 "parser.c"
3906 break;
3907
3908 case 263: /* def_node: start "page" ref page ">" */
3909 #line 1105 "parser.y"
3910 {
3911 #line 8840 "format.w"
3912 DEF((yyval.rf),page_kind,(yyvsp[-2].u));hput_tags((yyvsp[-4].u),TAG(page_kind,0));}
3913 #line 3914 "parser.c"
3914 break;
3915
3916 case 264: /* def_node: start "int" ref ref ">" */
3917 #line 1110 "parser.y"
3918 {
3919 #line 8859 "format.w"
3920 DEF_REF((yyval.rf),int_kind,(yyvsp[-2].u),(yyvsp[-1].u));hput_tags((yyvsp[-4].u),TAG(int_kind,0));}
3921 #line 3922 "parser.c"
3922 break;
3923
3924 case 265: /* def_node: start "dimen" ref ref ">" */
3925 #line 1113 "parser.y"
3926 {
3927 #line 8860 "format.w"
3928 DEF_REF((yyval.rf),dimen_kind,(yyvsp[-2].u),(yyvsp[-1].u));hput_tags((yyvsp[-4].u),TAG(dimen_kind,0));}
3929 #line 3930 "parser.c"
3930 break;
3931
3932 case 266: /* def_node: start "glue" ref ref ">" */
3933 #line 1116 "parser.y"
3934 {
3935 #line 8861 "format.w"
3936 DEF_REF((yyval.rf),glue_kind,(yyvsp[-2].u),(yyvsp[-1].u));hput_tags((yyvsp[-4].u),TAG(glue_kind,0));}
3937 #line 3938 "parser.c"
3938 break;
3939
3940 case 268: /* def_list: def_list def_node */
3941 #line 1121 "parser.y"
3942 {
3943 #line 8984 "format.w"
3944 check_param_def(&((yyvsp[0].rf)));}
3945 #line 3946 "parser.c"
3946 break;
3947
3948 case 269: /* parameters: estimate def_list */
3949 #line 1124 "parser.y"
3950 {
3951 #line 8985 "format.w"
3952 (yyval.l).p= (yyvsp[0].u);(yyval.l).t= TAG(param_kind,b001);(yyval.l).s= (hpos-hstart)-(yyvsp[0].u);}
3953 #line 3954 "parser.c"
3954 break;
3955
3956 case 270: /* named_param_list: start "param" parameters ">" */
3957 #line 1129 "parser.y"
3958 {
3959 #line 8998 "format.w"
3960 hput_tags((yyvsp[-3].u),hput_list((yyvsp[-3].u)+1,&((yyvsp[-1].l))));}
3961 #line 3962 "parser.c"
3962 break;
3963
3964 case 272: /* param_list: start parameters ">" */
3965 #line 1133 "parser.y"
3966 {
3967 #line 9000 "format.w"
3968 hput_tags((yyvsp[-2].u),hput_list((yyvsp[-2].u)+1,&((yyvsp[-1].l))));}
3969 #line 3970 "parser.c"
3970 break;
3971
3972 case 274: /* font_head: string dimension UNSIGNED UNSIGNED */
3973 #line 1141 "parser.y"
3974 {
3975 #line 9156 "format.w"
3976 uint8_t f= (yyvsp[-4].u);SET_DBIT(f,font_kind);hfont_name[f]= strdup((yyvsp[-3].s));(yyval.info)= hput_font_head(f,hfont_name[f],(yyvsp[-2].d),(yyvsp[-1].u),(yyvsp[0].u));}
3977 #line 3978 "parser.c"
3978 break;
3979
3980 case 275: /* font_head: string dimension UNSIGNED */
3981 #line 1145 "parser.y"
3982 {
3983 #line 9158 "format.w"
3984 uint8_t f= (yyvsp[-3].u);SET_DBIT(f,font_kind);hfont_name[f]= strdup((yyvsp[-2].s));(yyval.info)= hput_font_head(f,hfont_name[f],(yyvsp[-1].d),-1,(yyvsp[0].u));}
3985 #line 3986 "parser.c"
3986 break;
3987
3988 case 278: /* font_param: start "penalty" fref penalty ">" */
3989 #line 1154 "parser.y"
3990 {
3991 #line 9165 "format.w"
3992 hput_tags((yyvsp[-4].u),hput_int((yyvsp[-1].i)));}
3993 #line 3994 "parser.c"
3994 break;
3995
3996 case 279: /* font_param: start "kern" fref kern ">" */
3997 #line 1157 "parser.y"
3998 {
3999 #line 9166 "format.w"
4000 hput_tags((yyvsp[-4].u),hput_kern(&((yyvsp[-1].kt))));}
4001 #line 4002 "parser.c"
4002 break;
4003
4004 case 280: /* font_param: start "ligature" fref ligature ">" */
4005 #line 1160 "parser.y"
4006 {
4007 #line 9167 "format.w"
4008 hput_tags((yyvsp[-4].u),hput_ligature(&((yyvsp[-1].lg))));}
4009 #line 4010 "parser.c"
4010 break;
4011
4012 case 281: /* font_param: start "disc" fref disc ">" */
4013 #line 1163 "parser.y"
4014 {
4015 #line 9168 "format.w"
4016 hput_tags((yyvsp[-4].u),hput_disc(&((yyvsp[-1].dc))));}
4017 #line 4018 "parser.c"
4018 break;
4019
4020 case 282: /* font_param: start "glue" fref glue ">" */
4021 #line 1166 "parser.y"
4022 {
4023 #line 9169 "format.w"
4024 hput_tags((yyvsp[-4].u),hput_glue(&((yyvsp[-1].g))));}
4025 #line 4026 "parser.c"
4026 break;
4027
4028 case 283: /* font_param: start "language" fref string ">" */
4029 #line 1169 "parser.y"
4030 {
4031 #line 9170 "format.w"
4032 hput_string((yyvsp[-1].s));hput_tags((yyvsp[-4].u),TAG(language_kind,0));}
4033 #line 4034 "parser.c"
4034 break;
4035
4036 case 284: /* font_param: start "rule" fref rule ">" */
4037 #line 1172 "parser.y"
4038 {
4039 #line 9171 "format.w"
4040 hput_tags((yyvsp[-4].u),hput_rule(&((yyvsp[-1].r))));}
4041 #line 4042 "parser.c"
4042 break;
4043
4044 case 285: /* font_param: start "image" fref image ">" */
4045 #line 1175 "parser.y"
4046 {
4047 #line 9172 "format.w"
4048 hput_tags((yyvsp[-4].u),TAG(image_kind,(yyvsp[-1].info)));}
4049 #line 4050 "parser.c"
4050 break;
4051
4052 case 286: /* fref: ref */
4053 #line 1179 "parser.y"
4054 {
4055 #line 9174 "format.w"
4056 RNG("Font parameter",(yyvsp[0].u),0,MAX_FONT_PARAMS);}
4057 #line 4058 "parser.c"
4058 break;
4059
4060 case 287: /* xdimen_ref: ref */
4061 #line 1183 "parser.y"
4062 {
4063 #line 9254 "format.w"
4064 REF(xdimen_kind,(yyvsp[0].u));}
4065 #line 4066 "parser.c"
4066 break;
4067
4068 case 288: /* param_ref: ref */
4069 #line 1186 "parser.y"
4070 {
4071 #line 9255 "format.w"
4072 REF(param_kind,(yyvsp[0].u));}
4073 #line 4074 "parser.c"
4074 break;
4075
4076 case 289: /* stream_ref: ref */
4077 #line 1189 "parser.y"
4078 {
4079 #line 9256 "format.w"
4080 REF_RNG(stream_kind,(yyvsp[0].u));}
4081 #line 4082 "parser.c"
4082 break;
4083
4084 case 290: /* content_node: start "penalty" ref ">" */
4085 #line 1195 "parser.y"
4086 {
4087 #line 9260 "format.w"
4088 REF(penalty_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(penalty_kind,0));}
4089 #line 4090 "parser.c"
4090 break;
4091
4092 case 291: /* content_node: start "kern" explicit ref ">" */
4093 #line 1199 "parser.y"
4094 {
4095 #line 9262 "format.w"
4096 REF(dimen_kind,(yyvsp[-1].u));hput_tags((yyvsp[-4].u),TAG(kern_kind,((yyvsp[-2].b))?b100:b000));}
4097 #line 4098 "parser.c"
4098 break;
4099
4100 case 292: /* content_node: start "kern" explicit "xdimen" ref ">" */
4101 #line 1203 "parser.y"
4102 {
4103 #line 9264 "format.w"
4104 REF(xdimen_kind,(yyvsp[-1].u));hput_tags((yyvsp[-5].u),TAG(kern_kind,((yyvsp[-3].b))?b101:b001));}
4105 #line 4106 "parser.c"
4106 break;
4107
4108 case 293: /* content_node: start "glue" ref ">" */
4109 #line 1206 "parser.y"
4110 {
4111 #line 9265 "format.w"
4112 REF(glue_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(glue_kind,0));}
4113 #line 4114 "parser.c"
4114 break;
4115
4116 case 294: /* content_node: start "ligature" ref ">" */
4117 #line 1209 "parser.y"
4118 {
4119 #line 9266 "format.w"
4120 REF(ligature_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(ligature_kind,0));}
4121 #line 4122 "parser.c"
4122 break;
4123
4124 case 295: /* content_node: start "disc" ref ">" */
4125 #line 1212 "parser.y"
4126 {
4127 #line 9267 "format.w"
4128 REF(disc_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(disc_kind,0));}
4129 #line 4130 "parser.c"
4130 break;
4131
4132 case 296: /* content_node: start "rule" ref ">" */
4133 #line 1215 "parser.y"
4134 {
4135 #line 9268 "format.w"
4136 REF(rule_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(rule_kind,0));}
4137 #line 4138 "parser.c"
4138 break;
4139
4140 case 297: /* content_node: start "image" ref ">" */
4141 #line 1218 "parser.y"
4142 {
4143 #line 9269 "format.w"
4144 REF(image_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(image_kind,0));}
4145 #line 4146 "parser.c"
4146 break;
4147
4148 case 298: /* content_node: start "leaders" ref ">" */
4149 #line 1221 "parser.y"
4150 {
4151 #line 9270 "format.w"
4152 REF(leaders_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(leaders_kind,0));}
4153 #line 4154 "parser.c"
4154 break;
4155
4156 case 299: /* content_node: start "baseline" ref ">" */
4157 #line 1224 "parser.y"
4158 {
4159 #line 9271 "format.w"
4160 REF(baseline_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),TAG(baseline_kind,0));}
4161 #line 4162 "parser.c"
4162 break;
4163
4164 case 300: /* content_node: start "language" REFERENCE ">" */
4165 #line 1227 "parser.y"
4166 {
4167 #line 9272 "format.w"
4168 REF(language_kind,(yyvsp[-1].u));hput_tags((yyvsp[-3].u),hput_language((yyvsp[-1].u)));}
4169 #line 4170 "parser.c"
4170 break;
4171
4172 case 301: /* glue_node: start "glue" ref ">" */
4173 #line 1231 "parser.y"
4174 {
4175 #line 9274 "format.w"
4176 REF(glue_kind,(yyvsp[-1].u));
4177 if((yyvsp[-1].u)==zero_skip_no){hpos= hpos-2;(yyval.b)= false;}
4178 else{hput_tags((yyvsp[-3].u),TAG(glue_kind,0));(yyval.b)= true;}}
4179 #line 4180 "parser.c"
4180 break;
4181
4182 case 302: /* $@14: %empty */
4183 #line 1238 "parser.y"
4184 {
4185 #line 9760 "format.w"
4186 hput_content_start();}
4187 #line 4188 "parser.c"
4188 break;
4189
4190 case 303: /* content_section: "<" "content" $@14 content_list ">" */
4191 #line 1241 "parser.y"
4192 {
4193 #line 9761 "format.w"
4194 hput_content_end();hput_range_defs();hput_label_defs();}
4195 #line 4196 "parser.c"
4196 break;
4197
4198
4199 #line 4200 "parser.c"
4200
4201 default: break;
4202 }
4203 /* User semantic actions sometimes alter yychar, and that requires
4204 that yytoken be updated with the new translation. We take the
4205 approach of translating immediately before every use of yytoken.
4206 One alternative is translating here after every semantic action,
4207 but that translation would be missed if the semantic action invokes
4208 YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
4209 if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
4210 incorrect destructor might then be invoked immediately. In the
4211 case of YYERROR or YYBACKUP, subsequent parser actions might lead
4212 to an incorrect destructor call or verbose syntax error message
4213 before the lookahead is translated. */
4214 YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
4215
4216 YYPOPSTACK (yylen);
4217 yylen = 0;
4218
4219 *++yyvsp = yyval;
4220
4221 /* Now 'shift' the result of the reduction. Determine what state
4222 that goes to, based on the state we popped back to and the rule
4223 number reduced by. */
4224 {
4225 const int yylhs = yyr1[yyn] - YYNTOKENS;
4226 const int yyi = yypgoto[yylhs] + *yyssp;
4227 yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
4228 ? yytable[yyi]
4229 : yydefgoto[yylhs]);
4230 }
4231
4232 goto yynewstate;
4233
4234
4235 /*--------------------------------------.
4236 | yyerrlab -- here on detecting error. |
4237 `--------------------------------------*/
4238 yyerrlab:
4239 /* Make sure we have latest lookahead translation. See comments at
4240 user semantic actions for why this is necessary. */
4241 yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
4242 /* If not already recovering from an error, report this error. */
4243 if (!yyerrstatus)
4244 {
4245 ++yynerrs;
4246 {
4247 yypcontext_t yyctx
4248 = {yyssp, yytoken};
4249 char const *yymsgp = YY_("syntax error");
4250 int yysyntax_error_status;
4251 yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
4252 if (yysyntax_error_status == 0)
4253 yymsgp = yymsg;
4254 else if (yysyntax_error_status == -1)
4255 {
4256 if (yymsg != yymsgbuf)
4257 YYSTACK_FREE (yymsg);
4258 yymsg = YY_CAST (char *,
4259 YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
4260 if (yymsg)
4261 {
4262 yysyntax_error_status
4263 = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
4264 yymsgp = yymsg;
4265 }
4266 else
4267 {
4268 yymsg = yymsgbuf;
4269 yymsg_alloc = sizeof yymsgbuf;
4270 yysyntax_error_status = YYENOMEM;
4271 }
4272 }
4273 yyerror (yymsgp);
4274 if (yysyntax_error_status == YYENOMEM)
4275 YYNOMEM;
4276 }
4277 }
4278
4279 if (yyerrstatus == 3)
4280 {
4281 /* If just tried and failed to reuse lookahead token after an
4282 error, discard it. */
4283
4284 if (yychar <= YYEOF)
4285 {
4286 /* Return failure if at end of input. */
4287 if (yychar == YYEOF)
4288 YYABORT;
4289 }
4290 else
4291 {
4292 yydestruct ("Error: discarding",
4293 yytoken, &yylval);
4294 yychar = YYEMPTY;
4295 }
4296 }
4297
4298 /* Else will try to reuse lookahead token after shifting the error
4299 token. */
4300 goto yyerrlab1;
4301
4302
4303 /*---------------------------------------------------.
4304 | yyerrorlab -- error raised explicitly by YYERROR. |
4305 `---------------------------------------------------*/
4306 yyerrorlab:
4307 /* Pacify compilers when the user code never invokes YYERROR and the
4308 label yyerrorlab therefore never appears in user code. */
4309 if (0)
4310 YYERROR;
4311 ++yynerrs;
4312
4313 /* Do not reclaim the symbols of the rule whose action triggered
4314 this YYERROR. */
4315 YYPOPSTACK (yylen);
4316 yylen = 0;
4317 YY_STACK_PRINT (yyss, yyssp);
4318 yystate = *yyssp;
4319 goto yyerrlab1;
4320
4321
4322 /*-------------------------------------------------------------.
4323 | yyerrlab1 -- common code for both syntax error and YYERROR. |
4324 `-------------------------------------------------------------*/
4325 yyerrlab1:
4326 yyerrstatus = 3; /* Each real token shifted decrements this. */
4327
4328 /* Pop stack until we find a state that shifts the error token. */
4329 for (;;)
4330 {
4331 yyn = yypact[yystate];
4332 if (!yypact_value_is_default (yyn))
4333 {
4334 yyn += YYSYMBOL_YYerror;
4335 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
4336 {
4337 yyn = yytable[yyn];
4338 if (0 < yyn)
4339 break;
4340 }
4341 }
4342
4343 /* Pop the current state because it cannot handle the error token. */
4344 if (yyssp == yyss)
4345 YYABORT;
4346
4347
4348 yydestruct ("Error: popping",
4349 YY_ACCESSING_SYMBOL (yystate), yyvsp);
4350 YYPOPSTACK (1);
4351 yystate = *yyssp;
4352 YY_STACK_PRINT (yyss, yyssp);
4353 }
4354
4355 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
4356 *++yyvsp = yylval;
4357 YY_IGNORE_MAYBE_UNINITIALIZED_END
4358
4359
4360 /* Shift the error token. */
4361 YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
4362
4363 yystate = yyn;
4364 goto yynewstate;
4365
4366
4367 /*-------------------------------------.
4368 | yyacceptlab -- YYACCEPT comes here. |
4369 `-------------------------------------*/
4370 yyacceptlab:
4371 yyresult = 0;
4372 goto yyreturnlab;
4373
4374
4375 /*-----------------------------------.
4376 | yyabortlab -- YYABORT comes here. |
4377 `-----------------------------------*/
4378 yyabortlab:
4379 yyresult = 1;
4380 goto yyreturnlab;
4381
4382
4383 /*-----------------------------------------------------------.
4384 | yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
4385 `-----------------------------------------------------------*/
4386 yyexhaustedlab:
4387 yyerror (YY_("memory exhausted"));
4388 yyresult = 2;
4389 goto yyreturnlab;
4390
4391
4392 /*----------------------------------------------------------.
4393 | yyreturnlab -- parsing is finished, clean up and return. |
4394 `----------------------------------------------------------*/
4395 yyreturnlab:
4396 if (yychar != YYEMPTY)
4397 {
4398 /* Make sure we have latest lookahead translation. See comments at
4399 user semantic actions for why this is necessary. */
4400 yytoken = YYTRANSLATE (yychar);
4401 yydestruct ("Cleanup: discarding lookahead",
4402 yytoken, &yylval);
4403 }
4404 /* Do not reclaim the symbols of the rule whose action triggered
4405 this YYABORT or YYACCEPT. */
4406 YYPOPSTACK (yylen);
4407 YY_STACK_PRINT (yyss, yyssp);
4408 while (yyssp != yyss)
4409 {
4410 yydestruct ("Cleanup: popping",
4411 YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
4412 YYPOPSTACK (1);
4413 }
4414 #ifndef yyoverflow
4415 if (yyss != yyssa)
4416 YYSTACK_FREE (yyss);
4417 #endif
4418 if (yymsg != yymsgbuf)
4419 YYSTACK_FREE (yymsg);
4420 return yyresult;
4421 }
4422
4423 #line 1245 "parser.y"
4424
4425 /*:556*/