Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1 | /* A Bison parser, made by GNU Bison 3.8.2. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 2 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 3 | /* Bison implementation for Yacc-like parsers in C |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 4 | |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 5 | Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 6 | Inc. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 7 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 12 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 17 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 18 | You should have received a copy of the GNU General Public License |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 19 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 30 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 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 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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 | |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 48 | /* Identify Bison output, and Bison version. */ |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 49 | #define YYBISON 30802 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 50 | |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 51 | /* Bison version string. */ |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 52 | #define YYBISON_VERSION "3.8.2" |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 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 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 69 | /* First part of user prologue. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 70 | |
Patrick Georgi | ea063cb | 2020-05-08 19:28:13 +0200 | [diff] [blame] | 71 | /* sconfig, coreboot device tree compiler */ |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 72 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 73 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 74 | #include <stdint.h> |
Patrick Georgi | 114e7b2 | 2010-05-05 11:19:50 +0000 | [diff] [blame] | 75 | #include "sconfig.h" |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 76 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 77 | int yylex(); |
| 78 | void yyerror(const char *s); |
| 79 | |
Furquan Shaikh | 9319826 | 2018-06-03 04:22:17 -0700 | [diff] [blame] | 80 | static struct bus *cur_parent; |
Furquan Shaikh | c56ae2f | 2018-05-31 10:33:16 -0700 | [diff] [blame] | 81 | static struct chip_instance *cur_chip_instance; |
Duncan Laurie | 47b7b34 | 2020-05-15 15:39:08 -0700 | [diff] [blame] | 82 | static struct fw_config_field *cur_field; |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 83 | static struct fw_config_field_bits *cur_bits; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 84 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 85 | |
| 86 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 87 | # ifndef YY_CAST |
| 88 | # ifdef __cplusplus |
| 89 | # define YY_CAST(Type, Val) static_cast<Type> (Val) |
| 90 | # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 91 | # else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 92 | # define YY_CAST(Type, Val) ((Type) (Val)) |
| 93 | # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
| 94 | # endif |
| 95 | # endif |
| 96 | # ifndef YY_NULLPTR |
| 97 | # if defined __cplusplus |
| 98 | # if 201103L <= __cplusplus |
| 99 | # define YY_NULLPTR nullptr |
| 100 | # else |
| 101 | # define YY_NULLPTR 0 |
| 102 | # endif |
| 103 | # else |
| 104 | # define YY_NULLPTR ((void*)0) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 105 | # endif |
| 106 | # endif |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 107 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 108 | #include "sconfig.tab.h_shipped" |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 109 | /* Symbol kind. */ |
| 110 | enum yysymbol_kind_t |
| 111 | { |
| 112 | YYSYMBOL_YYEMPTY = -2, |
| 113 | YYSYMBOL_YYEOF = 0, /* "end of file" */ |
| 114 | YYSYMBOL_YYerror = 1, /* error */ |
| 115 | YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ |
| 116 | YYSYMBOL_CHIP = 3, /* CHIP */ |
| 117 | YYSYMBOL_DEVICE = 4, /* DEVICE */ |
| 118 | YYSYMBOL_REGISTER = 5, /* REGISTER */ |
| 119 | YYSYMBOL_ALIAS = 6, /* ALIAS */ |
| 120 | YYSYMBOL_REFERENCE = 7, /* REFERENCE */ |
| 121 | YYSYMBOL_ASSOCIATION = 8, /* ASSOCIATION */ |
| 122 | YYSYMBOL_BOOL = 9, /* BOOL */ |
| 123 | YYSYMBOL_STATUS = 10, /* STATUS */ |
| 124 | YYSYMBOL_MANDATORY = 11, /* MANDATORY */ |
| 125 | YYSYMBOL_BUS = 12, /* BUS */ |
| 126 | YYSYMBOL_RESOURCE = 13, /* RESOURCE */ |
| 127 | YYSYMBOL_END = 14, /* END */ |
| 128 | YYSYMBOL_EQUALS = 15, /* EQUALS */ |
| 129 | YYSYMBOL_HEX = 16, /* HEX */ |
| 130 | YYSYMBOL_STRING = 17, /* STRING */ |
| 131 | YYSYMBOL_PCI = 18, /* PCI */ |
| 132 | YYSYMBOL_PNP = 19, /* PNP */ |
| 133 | YYSYMBOL_I2C = 20, /* I2C */ |
| 134 | YYSYMBOL_APIC = 21, /* APIC */ |
| 135 | YYSYMBOL_CPU_CLUSTER = 22, /* CPU_CLUSTER */ |
| 136 | YYSYMBOL_CPU = 23, /* CPU */ |
| 137 | YYSYMBOL_DOMAIN = 24, /* DOMAIN */ |
| 138 | YYSYMBOL_IRQ = 25, /* IRQ */ |
| 139 | YYSYMBOL_DRQ = 26, /* DRQ */ |
| 140 | YYSYMBOL_SLOT_DESC = 27, /* SLOT_DESC */ |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 141 | YYSYMBOL_SMBIOS_DEV_INFO = 28, /* SMBIOS_DEV_INFO */ |
| 142 | YYSYMBOL_IO = 29, /* IO */ |
| 143 | YYSYMBOL_NUMBER = 30, /* NUMBER */ |
| 144 | YYSYMBOL_SUBSYSTEMID = 31, /* SUBSYSTEMID */ |
| 145 | YYSYMBOL_INHERIT = 32, /* INHERIT */ |
| 146 | YYSYMBOL_IOAPIC_IRQ = 33, /* IOAPIC_IRQ */ |
| 147 | YYSYMBOL_IOAPIC = 34, /* IOAPIC */ |
| 148 | YYSYMBOL_PCIINT = 35, /* PCIINT */ |
| 149 | YYSYMBOL_GENERIC = 36, /* GENERIC */ |
| 150 | YYSYMBOL_SPI = 37, /* SPI */ |
| 151 | YYSYMBOL_USB = 38, /* USB */ |
| 152 | YYSYMBOL_MMIO = 39, /* MMIO */ |
| 153 | YYSYMBOL_GPIO = 40, /* GPIO */ |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 154 | YYSYMBOL_MDIO = 41, /* MDIO */ |
| 155 | YYSYMBOL_FW_CONFIG_TABLE = 42, /* FW_CONFIG_TABLE */ |
| 156 | YYSYMBOL_FW_CONFIG_FIELD = 43, /* FW_CONFIG_FIELD */ |
| 157 | YYSYMBOL_FW_CONFIG_OPTION = 44, /* FW_CONFIG_OPTION */ |
| 158 | YYSYMBOL_FW_CONFIG_PROBE = 45, /* FW_CONFIG_PROBE */ |
| 159 | YYSYMBOL_PIPE = 46, /* PIPE */ |
| 160 | YYSYMBOL_OPS = 47, /* OPS */ |
| 161 | YYSYMBOL_YYACCEPT = 48, /* $accept */ |
| 162 | YYSYMBOL_devtree = 49, /* devtree */ |
| 163 | YYSYMBOL_chipchild_nondev = 50, /* chipchild_nondev */ |
| 164 | YYSYMBOL_chipchild = 51, /* chipchild */ |
| 165 | YYSYMBOL_chipchildren = 52, /* chipchildren */ |
| 166 | YYSYMBOL_chipchildren_dev = 53, /* chipchildren_dev */ |
| 167 | YYSYMBOL_devicechildren = 54, /* devicechildren */ |
| 168 | YYSYMBOL_chip = 55, /* chip */ |
| 169 | YYSYMBOL_56_1 = 56, /* @1 */ |
| 170 | YYSYMBOL_device = 57, /* device */ |
| 171 | YYSYMBOL_58_2 = 58, /* @2 */ |
| 172 | YYSYMBOL_59_3 = 59, /* @3 */ |
| 173 | YYSYMBOL_alias = 60, /* alias */ |
| 174 | YYSYMBOL_status = 61, /* status */ |
| 175 | YYSYMBOL_resource = 62, /* resource */ |
| 176 | YYSYMBOL_reference = 63, /* reference */ |
| 177 | YYSYMBOL_registers = 64, /* registers */ |
| 178 | YYSYMBOL_subsystemid = 65, /* subsystemid */ |
| 179 | YYSYMBOL_ioapic_irq = 66, /* ioapic_irq */ |
| 180 | YYSYMBOL_smbios_slot_desc = 67, /* smbios_slot_desc */ |
| 181 | YYSYMBOL_smbios_dev_info = 68, /* smbios_dev_info */ |
| 182 | YYSYMBOL_fw_config_table = 69, /* fw_config_table */ |
| 183 | YYSYMBOL_fw_config_table_children = 70, /* fw_config_table_children */ |
| 184 | YYSYMBOL_fw_config_field_children = 71, /* fw_config_field_children */ |
| 185 | YYSYMBOL_fw_config_field_bits = 72, /* fw_config_field_bits */ |
| 186 | YYSYMBOL_fw_config_field_bits_repeating = 73, /* fw_config_field_bits_repeating */ |
| 187 | YYSYMBOL_fw_config_field = 74, /* fw_config_field */ |
| 188 | YYSYMBOL_75_4 = 75, /* $@4 */ |
| 189 | YYSYMBOL_76_5 = 76, /* $@5 */ |
| 190 | YYSYMBOL_77_6 = 77, /* $@6 */ |
| 191 | YYSYMBOL_fw_config_option = 78, /* fw_config_option */ |
| 192 | YYSYMBOL_fw_config_probe = 79, /* fw_config_probe */ |
| 193 | YYSYMBOL_ops = 80 /* ops */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 194 | }; |
| 195 | typedef enum yysymbol_kind_t yysymbol_kind_t; |
| 196 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 197 | |
| 198 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 199 | |
| 200 | #ifdef short |
| 201 | # undef short |
| 202 | #endif |
| 203 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 204 | /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure |
| 205 | <limits.h> and (if available) <stdint.h> are included |
| 206 | so that the code can choose integer types of a good width. */ |
| 207 | |
| 208 | #ifndef __PTRDIFF_MAX__ |
| 209 | # include <limits.h> /* INFRINGES ON USER NAME SPACE */ |
| 210 | # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ |
| 211 | # include <stdint.h> /* INFRINGES ON USER NAME SPACE */ |
| 212 | # define YY_STDINT_H |
| 213 | # endif |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 214 | #endif |
| 215 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 216 | /* Narrow types that promote to a signed type and that can represent a |
| 217 | signed or unsigned integer of at least N bits. In tables they can |
| 218 | save space and decrease cache pressure. Promoting to a signed type |
| 219 | helps avoid bugs in integer arithmetic. */ |
| 220 | |
| 221 | #ifdef __INT_LEAST8_MAX__ |
| 222 | typedef __INT_LEAST8_TYPE__ yytype_int8; |
| 223 | #elif defined YY_STDINT_H |
| 224 | typedef int_least8_t yytype_int8; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 225 | #else |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 226 | typedef signed char yytype_int8; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 227 | #endif |
| 228 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 229 | #ifdef __INT_LEAST16_MAX__ |
| 230 | typedef __INT_LEAST16_TYPE__ yytype_int16; |
| 231 | #elif defined YY_STDINT_H |
| 232 | typedef int_least16_t yytype_int16; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 233 | #else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 234 | typedef short yytype_int16; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 235 | #endif |
| 236 | |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 237 | /* Work around bug in HP-UX 11.23, which defines these macros |
| 238 | incorrectly for preprocessor constants. This workaround can likely |
| 239 | be removed in 2023, as HPE has promised support for HP-UX 11.23 |
| 240 | (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of |
| 241 | <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */ |
| 242 | #ifdef __hpux |
| 243 | # undef UINT_LEAST8_MAX |
| 244 | # undef UINT_LEAST16_MAX |
| 245 | # define UINT_LEAST8_MAX 255 |
| 246 | # define UINT_LEAST16_MAX 65535 |
| 247 | #endif |
| 248 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 249 | #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ |
| 250 | typedef __UINT_LEAST8_TYPE__ yytype_uint8; |
| 251 | #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ |
| 252 | && UINT_LEAST8_MAX <= INT_MAX) |
| 253 | typedef uint_least8_t yytype_uint8; |
| 254 | #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX |
| 255 | typedef unsigned char yytype_uint8; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 256 | #else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 257 | typedef short yytype_uint8; |
| 258 | #endif |
| 259 | |
| 260 | #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ |
| 261 | typedef __UINT_LEAST16_TYPE__ yytype_uint16; |
| 262 | #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ |
| 263 | && UINT_LEAST16_MAX <= INT_MAX) |
| 264 | typedef uint_least16_t yytype_uint16; |
| 265 | #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX |
| 266 | typedef unsigned short yytype_uint16; |
| 267 | #else |
| 268 | typedef int yytype_uint16; |
| 269 | #endif |
| 270 | |
| 271 | #ifndef YYPTRDIFF_T |
| 272 | # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ |
| 273 | # define YYPTRDIFF_T __PTRDIFF_TYPE__ |
| 274 | # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ |
| 275 | # elif defined PTRDIFF_MAX |
| 276 | # ifndef ptrdiff_t |
| 277 | # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 278 | # endif |
| 279 | # define YYPTRDIFF_T ptrdiff_t |
| 280 | # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX |
| 281 | # else |
| 282 | # define YYPTRDIFF_T long |
| 283 | # define YYPTRDIFF_MAXIMUM LONG_MAX |
| 284 | # endif |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 285 | #endif |
| 286 | |
| 287 | #ifndef YYSIZE_T |
| 288 | # ifdef __SIZE_TYPE__ |
| 289 | # define YYSIZE_T __SIZE_TYPE__ |
| 290 | # elif defined size_t |
| 291 | # define YYSIZE_T size_t |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 292 | # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 293 | # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 294 | # define YYSIZE_T size_t |
| 295 | # else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 296 | # define YYSIZE_T unsigned |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 297 | # endif |
| 298 | #endif |
| 299 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 300 | #define YYSIZE_MAXIMUM \ |
| 301 | YY_CAST (YYPTRDIFF_T, \ |
| 302 | (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ |
| 303 | ? YYPTRDIFF_MAXIMUM \ |
| 304 | : YY_CAST (YYSIZE_T, -1))) |
| 305 | |
| 306 | #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
| 307 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 308 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 309 | /* Stored state numbers (used for stacks). */ |
| 310 | typedef yytype_int8 yy_state_t; |
| 311 | |
| 312 | /* State numbers in computations. */ |
| 313 | typedef int yy_state_fast_t; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 314 | |
| 315 | #ifndef YY_ |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 316 | # if defined YYENABLE_NLS && YYENABLE_NLS |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 317 | # if ENABLE_NLS |
| 318 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 319 | # define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 320 | # endif |
| 321 | # endif |
| 322 | # ifndef YY_ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 323 | # define YY_(Msgid) Msgid |
| 324 | # endif |
| 325 | #endif |
| 326 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 327 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 328 | #ifndef YY_ATTRIBUTE_PURE |
| 329 | # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) |
| 330 | # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 331 | # else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 332 | # define YY_ATTRIBUTE_PURE |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 333 | # endif |
| 334 | #endif |
| 335 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 336 | #ifndef YY_ATTRIBUTE_UNUSED |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 337 | # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) |
| 338 | # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 339 | # else |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 340 | # define YY_ATTRIBUTE_UNUSED |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 341 | # endif |
| 342 | #endif |
| 343 | |
| 344 | /* Suppress unused-variable warnings by "using" E. */ |
| 345 | #if ! defined lint || defined __GNUC__ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 346 | # define YY_USE(E) ((void) (E)) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 347 | #else |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 348 | # define YY_USE(E) /* empty */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 349 | #endif |
| 350 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 351 | /* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 352 | #if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ |
| 353 | # if __GNUC__ * 100 + __GNUC_MINOR__ < 407 |
| 354 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
| 355 | _Pragma ("GCC diagnostic push") \ |
| 356 | _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") |
| 357 | # else |
| 358 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 359 | _Pragma ("GCC diagnostic push") \ |
| 360 | _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 361 | _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 362 | # endif |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 363 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 364 | _Pragma ("GCC diagnostic pop") |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 365 | #else |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 366 | # define YY_INITIAL_VALUE(Value) Value |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 367 | #endif |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 368 | #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 369 | # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 370 | # define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 371 | #endif |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 372 | #ifndef YY_INITIAL_VALUE |
| 373 | # define YY_INITIAL_VALUE(Value) /* Nothing. */ |
| 374 | #endif |
| 375 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 376 | #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ |
| 377 | # define YY_IGNORE_USELESS_CAST_BEGIN \ |
| 378 | _Pragma ("GCC diagnostic push") \ |
| 379 | _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") |
| 380 | # define YY_IGNORE_USELESS_CAST_END \ |
| 381 | _Pragma ("GCC diagnostic pop") |
| 382 | #endif |
| 383 | #ifndef YY_IGNORE_USELESS_CAST_BEGIN |
| 384 | # define YY_IGNORE_USELESS_CAST_BEGIN |
| 385 | # define YY_IGNORE_USELESS_CAST_END |
| 386 | #endif |
| 387 | |
| 388 | |
| 389 | #define YY_ASSERT(E) ((void) (0 && (E))) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 390 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 391 | #if !defined yyoverflow |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 392 | |
| 393 | /* The parser invokes alloca or malloc; define the necessary symbols. */ |
| 394 | |
| 395 | # ifdef YYSTACK_USE_ALLOCA |
| 396 | # if YYSTACK_USE_ALLOCA |
| 397 | # ifdef __GNUC__ |
| 398 | # define YYSTACK_ALLOC __builtin_alloca |
| 399 | # elif defined __BUILTIN_VA_ARG_INCR |
| 400 | # include <alloca.h> /* INFRINGES ON USER NAME SPACE */ |
| 401 | # elif defined _AIX |
| 402 | # define YYSTACK_ALLOC __alloca |
| 403 | # elif defined _MSC_VER |
| 404 | # include <malloc.h> /* INFRINGES ON USER NAME SPACE */ |
| 405 | # define alloca _alloca |
| 406 | # else |
| 407 | # define YYSTACK_ALLOC alloca |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 408 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 409 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 410 | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 411 | # ifndef EXIT_SUCCESS |
| 412 | # define EXIT_SUCCESS 0 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 413 | # endif |
| 414 | # endif |
| 415 | # endif |
| 416 | # endif |
| 417 | # endif |
| 418 | |
| 419 | # ifdef YYSTACK_ALLOC |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 420 | /* Pacify GCC's 'empty if-body' warning. */ |
| 421 | # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 422 | # ifndef YYSTACK_ALLOC_MAXIMUM |
| 423 | /* The OS might guarantee only one guard page at the bottom of the stack, |
| 424 | and a page size can be as small as 4096 bytes. So we cannot safely |
| 425 | invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
| 426 | to allow for a few compiler-allocated temporary stack slots. */ |
| 427 | # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ |
| 428 | # endif |
| 429 | # else |
| 430 | # define YYSTACK_ALLOC YYMALLOC |
| 431 | # define YYSTACK_FREE YYFREE |
| 432 | # ifndef YYSTACK_ALLOC_MAXIMUM |
| 433 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| 434 | # endif |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 435 | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 436 | && ! ((defined YYMALLOC || defined malloc) \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 437 | && (defined YYFREE || defined free))) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 438 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 439 | # ifndef EXIT_SUCCESS |
| 440 | # define EXIT_SUCCESS 0 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 441 | # endif |
| 442 | # endif |
| 443 | # ifndef YYMALLOC |
| 444 | # define YYMALLOC malloc |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 445 | # if ! defined malloc && ! defined EXIT_SUCCESS |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 446 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 447 | # endif |
| 448 | # endif |
| 449 | # ifndef YYFREE |
| 450 | # define YYFREE free |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 451 | # if ! defined free && ! defined EXIT_SUCCESS |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 452 | void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 453 | # endif |
| 454 | # endif |
| 455 | # endif |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 456 | #endif /* !defined yyoverflow */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 457 | |
| 458 | #if (! defined yyoverflow \ |
| 459 | && (! defined __cplusplus \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 460 | || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 461 | |
| 462 | /* A type that is properly aligned for any stack member. */ |
| 463 | union yyalloc |
| 464 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 465 | yy_state_t yyss_alloc; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 466 | YYSTYPE yyvs_alloc; |
| 467 | }; |
| 468 | |
| 469 | /* The size of the maximum gap between one aligned stack and the next. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 470 | # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 471 | |
| 472 | /* The size of an array large to enough to hold all stacks, each with |
| 473 | N elements. */ |
| 474 | # define YYSTACK_BYTES(N) \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 475 | ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 476 | + YYSTACK_GAP_MAXIMUM) |
| 477 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 478 | # define YYCOPY_NEEDED 1 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 479 | |
| 480 | /* Relocate STACK from its old location to the new one. The |
| 481 | local variables YYSIZE and YYSTACKSIZE give the old and new number of |
| 482 | elements in the stack, and YYPTR gives the new location of the |
| 483 | stack. Advance YYPTR to a properly aligned location for the next |
| 484 | stack. */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 485 | # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 486 | do \ |
| 487 | { \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 488 | YYPTRDIFF_T yynewbytes; \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 489 | YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
| 490 | Stack = &yyptr->Stack_alloc; \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 491 | yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 492 | yyptr += yynewbytes / YYSIZEOF (*yyptr); \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 493 | } \ |
| 494 | while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 495 | |
| 496 | #endif |
| 497 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 498 | #if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 499 | /* Copy COUNT objects from SRC to DST. The source and destination do |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 500 | not overlap. */ |
| 501 | # ifndef YYCOPY |
| 502 | # if defined __GNUC__ && 1 < __GNUC__ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 503 | # define YYCOPY(Dst, Src, Count) \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 504 | __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 505 | # else |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 506 | # define YYCOPY(Dst, Src, Count) \ |
| 507 | do \ |
| 508 | { \ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 509 | YYPTRDIFF_T yyi; \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 510 | for (yyi = 0; yyi < (Count); yyi++) \ |
| 511 | (Dst)[yyi] = (Src)[yyi]; \ |
| 512 | } \ |
| 513 | while (0) |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 514 | # endif |
| 515 | # endif |
| 516 | #endif /* !YYCOPY_NEEDED */ |
| 517 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 518 | /* YYFINAL -- State number of the termination state. */ |
Duncan Laurie | 47b7b34 | 2020-05-15 15:39:08 -0700 | [diff] [blame] | 519 | #define YYFINAL 2 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 520 | /* YYLAST -- Last index in YYTABLE. */ |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 521 | #define YYLAST 109 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 522 | |
| 523 | /* YYNTOKENS -- Number of terminals. */ |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 524 | #define YYNTOKENS 48 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 525 | /* YYNNTS -- Number of nonterminals. */ |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 526 | #define YYNNTS 33 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 527 | /* YYNRULES -- Number of rules. */ |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 528 | #define YYNRULES 62 |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 529 | /* YYNSTATES -- Number of states. */ |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 530 | #define YYNSTATES 108 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 531 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 532 | /* YYMAXUTOK -- Last valid token kind. */ |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 533 | #define YYMAXUTOK 302 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 534 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 535 | |
| 536 | /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM |
| 537 | as returned by yylex, with out-of-bounds checking. */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 538 | #define YYTRANSLATE(YYX) \ |
| 539 | (0 <= (YYX) && (YYX) <= YYMAXUTOK \ |
| 540 | ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ |
| 541 | : YYSYMBOL_YYUNDEF) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 542 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 543 | /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 544 | as returned by yylex. */ |
| 545 | static const yytype_int8 yytranslate[] = |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 546 | { |
| 547 | 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 548 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 549 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 550 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 551 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 552 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 553 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 554 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 555 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 556 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 557 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 558 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 559 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 560 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 561 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 562 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 563 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 564 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 565 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 566 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 567 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 568 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 569 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 570 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 571 | 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 572 | 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, |
| 573 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 574 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
Ronald G. Minnich | 466ca2c | 2019-10-22 02:02:24 +0000 | [diff] [blame] | 575 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 576 | 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 577 | 45, 46, 47 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 578 | }; |
| 579 | |
| 580 | #if YYDEBUG |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 581 | /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 582 | static const yytype_uint8 yyrline[] = |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 583 | { |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 584 | 0, 26, 26, 26, 26, 29, 29, 29, 30, 30, |
| 585 | 31, 31, 32, 32, 34, 34, 34, 34, 34, 34, |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 586 | 34, 34, 34, 34, 34, 36, 36, 45, 45, 53, |
| 587 | 53, 61, 63, 67, 67, 69, 72, 75, 78, 81, |
| 588 | 84, 87, 90, 93, 96, 99, 103, 106, 106, 109, |
| 589 | 109, 112, 118, 118, 121, 120, 125, 125, 133, 133, |
| 590 | 139, 143, 146 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 591 | }; |
| 592 | #endif |
| 593 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 594 | /** Accessing symbol of state STATE. */ |
| 595 | #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) |
| 596 | |
| 597 | #if YYDEBUG || 0 |
| 598 | /* The user-facing name of the symbol whose (internal) number is |
| 599 | YYSYMBOL. No bounds checking. */ |
| 600 | static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; |
| 601 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 602 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 603 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 604 | static const char *const yytname[] = |
| 605 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 606 | "\"end of file\"", "error", "\"invalid token\"", "CHIP", "DEVICE", |
| 607 | "REGISTER", "ALIAS", "REFERENCE", "ASSOCIATION", "BOOL", "STATUS", |
| 608 | "MANDATORY", "BUS", "RESOURCE", "END", "EQUALS", "HEX", "STRING", "PCI", |
| 609 | "PNP", "I2C", "APIC", "CPU_CLUSTER", "CPU", "DOMAIN", "IRQ", "DRQ", |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 610 | "SLOT_DESC", "SMBIOS_DEV_INFO", "IO", "NUMBER", "SUBSYSTEMID", "INHERIT", |
| 611 | "IOAPIC_IRQ", "IOAPIC", "PCIINT", "GENERIC", "SPI", "USB", "MMIO", |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 612 | "GPIO", "MDIO", "FW_CONFIG_TABLE", "FW_CONFIG_FIELD", "FW_CONFIG_OPTION", |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 613 | "FW_CONFIG_PROBE", "PIPE", "OPS", "$accept", "devtree", |
| 614 | "chipchild_nondev", "chipchild", "chipchildren", "chipchildren_dev", |
| 615 | "devicechildren", "chip", "@1", "device", "@2", "@3", "alias", "status", |
| 616 | "resource", "reference", "registers", "subsystemid", "ioapic_irq", |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 617 | "smbios_slot_desc", "smbios_dev_info", "fw_config_table", |
| 618 | "fw_config_table_children", "fw_config_field_children", |
| 619 | "fw_config_field_bits", "fw_config_field_bits_repeating", |
| 620 | "fw_config_field", "$@4", "$@5", "$@6", "fw_config_option", |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 621 | "fw_config_probe", "ops", YY_NULLPTR |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 622 | }; |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 623 | |
| 624 | static const char * |
| 625 | yysymbol_name (yysymbol_kind_t yysymbol) |
| 626 | { |
| 627 | return yytname[yysymbol]; |
| 628 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 629 | #endif |
| 630 | |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 631 | #define YYPACT_NINF (-49) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 632 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 633 | #define yypact_value_is_default(Yyn) \ |
| 634 | ((Yyn) == YYPACT_NINF) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 635 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 636 | #define YYTABLE_NINF (-1) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 637 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 638 | #define yytable_value_is_error(Yyn) \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 639 | 0 |
| 640 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 641 | /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 642 | STATE-NUM. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 643 | static const yytype_int8 yypact[] = |
| 644 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 645 | -49, 8, -49, 2, -49, -49, -49, -49, -4, 39, |
| 646 | -49, 3, -49, 5, 4, 12, 39, 16, -49, -49, |
| 647 | -49, -49, 11, 34, 23, 7, 47, -49, -49, 39, |
| 648 | 26, 13, -49, 6, 51, 41, 44, -49, -49, -49, |
| 649 | -49, -49, 32, -49, -12, -49, -49, -49, 46, 6, |
| 650 | -49, -49, -8, 26, 13, -49, -49, 50, -49, -49, |
| 651 | -49, -49, -49, -49, -7, 40, 0, -49, -49, -49, |
| 652 | 42, -49, 52, 43, 45, 48, 54, 57, -49, -49, |
| 653 | -49, -49, -49, -49, -49, -49, -49, -49, 21, 49, |
| 654 | 59, 60, 53, 55, 62, -49, -49, 56, 63, -49, |
| 655 | 61, 58, -49, -49, 64, -49, -49, -49 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 656 | }; |
| 657 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 658 | /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. |
| 659 | Performed when YYTABLE does not specify something else to do. Zero |
| 660 | means the default is an error. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 661 | static const yytype_int8 yydefact[] = |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 662 | { |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 663 | 2, 0, 1, 0, 48, 3, 4, 25, 0, 0, |
| 664 | 46, 0, 47, 0, 0, 0, 0, 0, 5, 11, |
| 665 | 7, 6, 58, 0, 0, 0, 0, 13, 26, 12, |
| 666 | 56, 53, 50, 0, 31, 0, 0, 9, 10, 8, |
| 667 | 51, 50, 0, 54, 0, 33, 34, 29, 0, 0, |
| 668 | 37, 36, 0, 0, 53, 50, 59, 0, 49, 24, |
| 669 | 32, 27, 57, 52, 0, 0, 0, 24, 55, 60, |
| 670 | 0, 30, 0, 0, 0, 0, 0, 0, 15, 14, |
| 671 | 16, 21, 17, 18, 19, 20, 22, 23, 0, 0, |
| 672 | 0, 45, 0, 0, 0, 62, 28, 0, 43, 44, |
| 673 | 38, 0, 61, 35, 42, 39, 40, 41 |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 674 | }; |
| 675 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 676 | /* YYPGOTO[NTERM-NUM]. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 677 | static const yytype_int8 yypgoto[] = |
| 678 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 679 | -49, -49, 65, -49, -49, 66, 17, -1, -49, -28, |
| 680 | -49, -49, -49, 36, -49, -49, -48, -49, -49, -49, |
| 681 | -49, -49, -49, -32, 67, 35, -49, -49, -49, -49, |
| 682 | -49, -49, -49 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 683 | }; |
| 684 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 685 | /* YYDEFGOTO[NTERM-NUM]. */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 686 | static const yytype_int8 yydefgoto[] = |
| 687 | { |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 688 | 0, 1, 16, 38, 29, 17, 66, 18, 9, 19, |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 689 | 67, 59, 49, 47, 80, 20, 21, 82, 83, 84, |
| 690 | 85, 6, 8, 44, 31, 43, 12, 55, 41, 32, |
| 691 | 58, 86, 87 |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 692 | }; |
| 693 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 694 | /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If |
| 695 | positive, shift that token. If negative, reduce the rule whose |
| 696 | number is the opposite. If YYTABLE_NINF, syntax error. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 697 | static const yytype_int8 yytable[] = |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 698 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 699 | 5, 39, 56, 3, 13, 14, 62, 68, 2, 52, |
| 700 | 10, 3, 23, 70, 71, 45, 46, 24, 81, 7, |
| 701 | 22, 25, 35, 64, 3, 13, 14, 72, 73, 26, |
| 702 | 28, 74, 57, 75, 70, 96, 57, 57, 79, 11, |
| 703 | 81, 30, 3, 13, 14, 76, 15, 77, 72, 73, |
| 704 | 4, 33, 74, 34, 75, 36, 40, 48, 50, 42, |
| 705 | 79, 51, 53, 60, 97, 78, 76, 65, 77, 90, |
| 706 | 69, 94, 89, 91, 95, 92, 98, 99, 93, 102, |
| 707 | 104, 107, 27, 100, 88, 61, 103, 78, 106, 63, |
| 708 | 101, 0, 0, 105, 37, 0, 0, 0, 0, 0, |
| 709 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 54 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 710 | }; |
| 711 | |
Patrick Georgi | 8f625f6 | 2010-05-05 13:13:47 +0000 | [diff] [blame] | 712 | static const yytype_int8 yycheck[] = |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 713 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 714 | 1, 29, 14, 3, 4, 5, 14, 14, 0, 41, |
| 715 | 14, 3, 7, 13, 14, 9, 10, 12, 66, 17, |
| 716 | 17, 17, 15, 55, 3, 4, 5, 27, 28, 17, |
| 717 | 14, 31, 44, 33, 13, 14, 44, 44, 66, 43, |
| 718 | 88, 30, 3, 4, 5, 45, 7, 47, 27, 28, |
| 719 | 42, 17, 31, 30, 33, 8, 30, 6, 17, 46, |
| 720 | 88, 17, 30, 17, 15, 66, 45, 17, 47, 17, |
| 721 | 30, 17, 30, 30, 17, 30, 17, 17, 30, 17, |
| 722 | 17, 17, 16, 30, 67, 49, 30, 88, 30, 54, |
| 723 | 35, -1, -1, 32, 29, -1, -1, -1, -1, -1, |
| 724 | -1, -1, -1, -1, -1, -1, -1, -1, -1, 42 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 725 | }; |
| 726 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 727 | /* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of |
| 728 | state STATE-NUM. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 729 | static const yytype_int8 yystos[] = |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 730 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 731 | 0, 49, 0, 3, 42, 55, 69, 17, 70, 56, |
| 732 | 14, 43, 74, 4, 5, 7, 50, 53, 55, 57, |
| 733 | 63, 64, 17, 7, 12, 17, 17, 53, 14, 52, |
| 734 | 30, 72, 77, 17, 30, 15, 8, 50, 51, 57, |
| 735 | 30, 76, 46, 73, 71, 9, 10, 61, 6, 60, |
| 736 | 17, 17, 71, 30, 72, 75, 14, 44, 78, 59, |
| 737 | 17, 61, 14, 73, 71, 17, 54, 58, 14, 30, |
| 738 | 13, 14, 27, 28, 31, 33, 45, 47, 55, 57, |
| 739 | 62, 64, 65, 66, 67, 68, 79, 80, 54, 30, |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 740 | 17, 30, 30, 30, 17, 17, 14, 15, 17, 17, |
| 741 | 30, 35, 17, 30, 17, 32, 30, 17 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 742 | }; |
| 743 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 744 | /* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 745 | static const yytype_int8 yyr1[] = |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 746 | { |
Mario Scheithauer | 67f63e7 | 2022-11-02 15:57:10 +0100 | [diff] [blame] | 747 | 0, 48, 49, 49, 49, 50, 50, 50, 51, 51, |
| 748 | 52, 52, 53, 53, 54, 54, 54, 54, 54, 54, |
| 749 | 54, 54, 54, 54, 54, 56, 55, 58, 57, 59, |
| 750 | 57, 60, 60, 61, 61, 62, 63, 64, 65, 65, |
| 751 | 66, 67, 67, 67, 68, 68, 69, 70, 70, 71, |
| 752 | 71, 72, 73, 73, 75, 74, 76, 74, 77, 74, |
| 753 | 78, 79, 80 |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 754 | }; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 755 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 756 | /* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 757 | static const yytype_int8 yyr2[] = |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 758 | { |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 759 | 0, 2, 0, 2, 2, 1, 1, 1, 1, 1, |
| 760 | 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 761 | 2, 2, 2, 2, 0, 0, 5, 0, 8, 0, |
| 762 | 7, 0, 2, 1, 1, 4, 4, 4, 3, 4, |
| 763 | 4, 5, 4, 3, 3, 2, 3, 2, 0, 2, |
| 764 | 0, 2, 3, 0, 0, 7, 0, 6, 0, 5, |
| 765 | 3, 3, 2 |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 766 | }; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 767 | |
| 768 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 769 | enum { YYENOMEM = -2 }; |
| 770 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 771 | #define yyerrok (yyerrstatus = 0) |
| 772 | #define yyclearin (yychar = YYEMPTY) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 773 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 774 | #define YYACCEPT goto yyacceptlab |
| 775 | #define YYABORT goto yyabortlab |
| 776 | #define YYERROR goto yyerrorlab |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 777 | #define YYNOMEM goto yyexhaustedlab |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 778 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 779 | |
| 780 | #define YYRECOVERING() (!!yyerrstatus) |
| 781 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 782 | #define YYBACKUP(Token, Value) \ |
| 783 | do \ |
| 784 | if (yychar == YYEMPTY) \ |
| 785 | { \ |
| 786 | yychar = (Token); \ |
| 787 | yylval = (Value); \ |
| 788 | YYPOPSTACK (yylen); \ |
| 789 | yystate = *yyssp; \ |
| 790 | goto yybackup; \ |
| 791 | } \ |
| 792 | else \ |
| 793 | { \ |
| 794 | yyerror (YY_("syntax error: cannot back up")); \ |
| 795 | YYERROR; \ |
| 796 | } \ |
| 797 | while (0) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 798 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 799 | /* Backward compatibility with an undocumented macro. |
| 800 | Use YYerror or YYUNDEF. */ |
| 801 | #define YYERRCODE YYUNDEF |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 802 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 803 | |
| 804 | /* Enable debugging if requested. */ |
| 805 | #if YYDEBUG |
| 806 | |
| 807 | # ifndef YYFPRINTF |
| 808 | # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ |
| 809 | # define YYFPRINTF fprintf |
| 810 | # endif |
| 811 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 812 | # define YYDPRINTF(Args) \ |
| 813 | do { \ |
| 814 | if (yydebug) \ |
| 815 | YYFPRINTF Args; \ |
| 816 | } while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 817 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 818 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 819 | |
| 820 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 821 | # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 822 | do { \ |
| 823 | if (yydebug) \ |
| 824 | { \ |
| 825 | YYFPRINTF (stderr, "%s ", Title); \ |
| 826 | yy_symbol_print (stderr, \ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 827 | Kind, Value); \ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 828 | YYFPRINTF (stderr, "\n"); \ |
| 829 | } \ |
| 830 | } while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 831 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 832 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 833 | /*-----------------------------------. |
| 834 | | Print this symbol's value on YYO. | |
| 835 | `-----------------------------------*/ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 836 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 837 | static void |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 838 | yy_symbol_value_print (FILE *yyo, |
| 839 | yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 840 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 841 | FILE *yyoutput = yyo; |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 842 | YY_USE (yyoutput); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 843 | if (!yyvaluep) |
| 844 | return; |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 845 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 846 | YY_USE (yykind); |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 847 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 848 | } |
| 849 | |
| 850 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 851 | /*---------------------------. |
| 852 | | Print this symbol on YYO. | |
| 853 | `---------------------------*/ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 854 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 855 | static void |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 856 | yy_symbol_print (FILE *yyo, |
| 857 | yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 858 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 859 | YYFPRINTF (yyo, "%s %s (", |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 860 | yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 861 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 862 | yy_symbol_value_print (yyo, yykind, yyvaluep); |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 863 | YYFPRINTF (yyo, ")"); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 864 | } |
| 865 | |
| 866 | /*------------------------------------------------------------------. |
| 867 | | yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| 868 | | TOP (included). | |
| 869 | `------------------------------------------------------------------*/ |
| 870 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 871 | static void |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 872 | yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 873 | { |
| 874 | YYFPRINTF (stderr, "Stack now"); |
| 875 | for (; yybottom <= yytop; yybottom++) |
| 876 | { |
| 877 | int yybot = *yybottom; |
| 878 | YYFPRINTF (stderr, " %d", yybot); |
| 879 | } |
| 880 | YYFPRINTF (stderr, "\n"); |
| 881 | } |
| 882 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 883 | # define YY_STACK_PRINT(Bottom, Top) \ |
| 884 | do { \ |
| 885 | if (yydebug) \ |
| 886 | yy_stack_print ((Bottom), (Top)); \ |
| 887 | } while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 888 | |
| 889 | |
| 890 | /*------------------------------------------------. |
| 891 | | Report that the YYRULE is going to be reduced. | |
| 892 | `------------------------------------------------*/ |
| 893 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 894 | static void |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 895 | yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, |
| 896 | int yyrule) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 897 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 898 | int yylno = yyrline[yyrule]; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 899 | int yynrhs = yyr2[yyrule]; |
| 900 | int yyi; |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 901 | YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 902 | yyrule - 1, yylno); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 903 | /* The symbols being reduced. */ |
| 904 | for (yyi = 0; yyi < yynrhs; yyi++) |
| 905 | { |
| 906 | YYFPRINTF (stderr, " $%d = ", yyi + 1); |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 907 | yy_symbol_print (stderr, |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 908 | YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), |
| 909 | &yyvsp[(yyi + 1) - (yynrhs)]); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 910 | YYFPRINTF (stderr, "\n"); |
| 911 | } |
| 912 | } |
| 913 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 914 | # define YY_REDUCE_PRINT(Rule) \ |
| 915 | do { \ |
| 916 | if (yydebug) \ |
| 917 | yy_reduce_print (yyssp, yyvsp, Rule); \ |
| 918 | } while (0) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 919 | |
| 920 | /* Nonzero means print parse trace. It is left uninitialized so that |
| 921 | multiple parsers can coexist. */ |
| 922 | int yydebug; |
| 923 | #else /* !YYDEBUG */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 924 | # define YYDPRINTF(Args) ((void) 0) |
| 925 | # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 926 | # define YY_STACK_PRINT(Bottom, Top) |
| 927 | # define YY_REDUCE_PRINT(Rule) |
| 928 | #endif /* !YYDEBUG */ |
| 929 | |
| 930 | |
| 931 | /* YYINITDEPTH -- initial size of the parser's stacks. */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 932 | #ifndef YYINITDEPTH |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 933 | # define YYINITDEPTH 200 |
| 934 | #endif |
| 935 | |
| 936 | /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only |
| 937 | if the built-in stack extension method is used). |
| 938 | |
| 939 | Do not make this value too large; the results are undefined if |
| 940 | YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) |
| 941 | evaluated with infinite-precision integer arithmetic. */ |
| 942 | |
| 943 | #ifndef YYMAXDEPTH |
| 944 | # define YYMAXDEPTH 10000 |
| 945 | #endif |
| 946 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 947 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 948 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 949 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 950 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 951 | |
| 952 | /*-----------------------------------------------. |
| 953 | | Release the memory associated to this symbol. | |
| 954 | `-----------------------------------------------*/ |
| 955 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 956 | static void |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 957 | yydestruct (const char *yymsg, |
| 958 | yysymbol_kind_t yykind, YYSTYPE *yyvaluep) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 959 | { |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 960 | YY_USE (yyvaluep); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 961 | if (!yymsg) |
| 962 | yymsg = "Deleting"; |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 963 | YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 964 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 965 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 966 | YY_USE (yykind); |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 967 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 968 | } |
| 969 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 970 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 971 | /* Lookahead token kind. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 972 | int yychar; |
| 973 | |
| 974 | /* The semantic value of the lookahead symbol. */ |
| 975 | YYSTYPE yylval; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 976 | /* Number of syntax errors so far. */ |
| 977 | int yynerrs; |
| 978 | |
| 979 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 980 | |
| 981 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 982 | /*----------. |
| 983 | | yyparse. | |
| 984 | `----------*/ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 985 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 986 | int |
| 987 | yyparse (void) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 988 | { |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 989 | yy_state_fast_t yystate = 0; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 990 | /* Number of tokens to shift before error messages enabled. */ |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 991 | int yyerrstatus = 0; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 992 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 993 | /* Refer to the stacks through separate pointers, to allow yyoverflow |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 994 | to reallocate them elsewhere. */ |
| 995 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 996 | /* Their size. */ |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 997 | YYPTRDIFF_T yystacksize = YYINITDEPTH; |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 998 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 999 | /* The state stack: array, bottom, top. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1000 | yy_state_t yyssa[YYINITDEPTH]; |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1001 | yy_state_t *yyss = yyssa; |
| 1002 | yy_state_t *yyssp = yyss; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1003 | |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1004 | /* The semantic value stack: array, bottom, top. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1005 | YYSTYPE yyvsa[YYINITDEPTH]; |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1006 | YYSTYPE *yyvs = yyvsa; |
| 1007 | YYSTYPE *yyvsp = yyvs; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1008 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1009 | int yyn; |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1010 | /* The return value of yyparse. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1011 | int yyresult; |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1012 | /* Lookahead symbol kind. */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1013 | yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1014 | /* The variables used to return semantic value and location from the |
| 1015 | action routines. */ |
| 1016 | YYSTYPE yyval; |
| 1017 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1018 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1019 | |
| 1020 | #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| 1021 | |
| 1022 | /* The number of symbols on the RHS of the reduced rule. |
| 1023 | Keep to zero when no symbol should be popped. */ |
| 1024 | int yylen = 0; |
| 1025 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1026 | YYDPRINTF ((stderr, "Starting parse\n")); |
| 1027 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1028 | yychar = YYEMPTY; /* Cause a token to be read. */ |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1029 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1030 | goto yysetstate; |
| 1031 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1032 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1033 | /*------------------------------------------------------------. |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1034 | | yynewstate -- push a new state, which is found in yystate. | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1035 | `------------------------------------------------------------*/ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1036 | yynewstate: |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1037 | /* In all cases, when you get here, the value and location stacks |
| 1038 | have just been pushed. So pushing a state here evens the stacks. */ |
| 1039 | yyssp++; |
| 1040 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1041 | |
| 1042 | /*--------------------------------------------------------------------. |
| 1043 | | yysetstate -- set current state (the top of the stack) to yystate. | |
| 1044 | `--------------------------------------------------------------------*/ |
| 1045 | yysetstate: |
| 1046 | YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
| 1047 | YY_ASSERT (0 <= yystate && yystate < YYNSTATES); |
| 1048 | YY_IGNORE_USELESS_CAST_BEGIN |
| 1049 | *yyssp = YY_CAST (yy_state_t, yystate); |
| 1050 | YY_IGNORE_USELESS_CAST_END |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1051 | YY_STACK_PRINT (yyss, yyssp); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1052 | |
| 1053 | if (yyss + yystacksize - 1 <= yyssp) |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1054 | #if !defined yyoverflow && !defined YYSTACK_RELOCATE |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1055 | YYNOMEM; |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1056 | #else |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1057 | { |
| 1058 | /* Get the current used size of the three stacks, in elements. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1059 | YYPTRDIFF_T yysize = yyssp - yyss + 1; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1060 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1061 | # if defined yyoverflow |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1062 | { |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1063 | /* Give user a chance to reallocate the stack. Use copies of |
| 1064 | these so that the &'s don't force the real ones into |
| 1065 | memory. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1066 | yy_state_t *yyss1 = yyss; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1067 | YYSTYPE *yyvs1 = yyvs; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1068 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1069 | /* Each stack pointer address is followed by the size of the |
| 1070 | data in use in that stack, in bytes. This used to be a |
| 1071 | conditional around just the two extra args, but that might |
| 1072 | be undefined if yyoverflow is a macro. */ |
| 1073 | yyoverflow (YY_("memory exhausted"), |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1074 | &yyss1, yysize * YYSIZEOF (*yyssp), |
| 1075 | &yyvs1, yysize * YYSIZEOF (*yyvsp), |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1076 | &yystacksize); |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1077 | yyss = yyss1; |
| 1078 | yyvs = yyvs1; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1079 | } |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1080 | # else /* defined YYSTACK_RELOCATE */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1081 | /* Extend the stack our own way. */ |
| 1082 | if (YYMAXDEPTH <= yystacksize) |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1083 | YYNOMEM; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1084 | yystacksize *= 2; |
| 1085 | if (YYMAXDEPTH < yystacksize) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1086 | yystacksize = YYMAXDEPTH; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1087 | |
| 1088 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1089 | yy_state_t *yyss1 = yyss; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1090 | union yyalloc *yyptr = |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1091 | YY_CAST (union yyalloc *, |
| 1092 | YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1093 | if (! yyptr) |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1094 | YYNOMEM; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1095 | YYSTACK_RELOCATE (yyss_alloc, yyss); |
| 1096 | YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1097 | # undef YYSTACK_RELOCATE |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1098 | if (yyss1 != yyssa) |
| 1099 | YYSTACK_FREE (yyss1); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1100 | } |
| 1101 | # endif |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1102 | |
| 1103 | yyssp = yyss + yysize - 1; |
| 1104 | yyvsp = yyvs + yysize - 1; |
| 1105 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1106 | YY_IGNORE_USELESS_CAST_BEGIN |
| 1107 | YYDPRINTF ((stderr, "Stack size increased to %ld\n", |
| 1108 | YY_CAST (long, yystacksize))); |
| 1109 | YY_IGNORE_USELESS_CAST_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1110 | |
| 1111 | if (yyss + yystacksize - 1 <= yyssp) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1112 | YYABORT; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1113 | } |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1114 | #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1115 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1116 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1117 | if (yystate == YYFINAL) |
| 1118 | YYACCEPT; |
| 1119 | |
| 1120 | goto yybackup; |
| 1121 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1122 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1123 | /*-----------. |
| 1124 | | yybackup. | |
| 1125 | `-----------*/ |
| 1126 | yybackup: |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1127 | /* Do appropriate processing given the current state. Read a |
| 1128 | lookahead token if we need one and don't already have one. */ |
| 1129 | |
| 1130 | /* First try to decide what to do without reference to lookahead token. */ |
| 1131 | yyn = yypact[yystate]; |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1132 | if (yypact_value_is_default (yyn)) |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1133 | goto yydefault; |
| 1134 | |
| 1135 | /* Not known => get a lookahead token if don't already have one. */ |
| 1136 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1137 | /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1138 | if (yychar == YYEMPTY) |
| 1139 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1140 | YYDPRINTF ((stderr, "Reading a token\n")); |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1141 | yychar = yylex (); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1142 | } |
| 1143 | |
| 1144 | if (yychar <= YYEOF) |
| 1145 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1146 | yychar = YYEOF; |
| 1147 | yytoken = YYSYMBOL_YYEOF; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1148 | YYDPRINTF ((stderr, "Now at end of input.\n")); |
| 1149 | } |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1150 | else if (yychar == YYerror) |
| 1151 | { |
| 1152 | /* The scanner already issued an error message, process directly |
| 1153 | to error recovery. But do not keep the error token as |
| 1154 | lookahead, it is too special and may lead us to an endless |
| 1155 | loop in error recovery. */ |
| 1156 | yychar = YYUNDEF; |
| 1157 | yytoken = YYSYMBOL_YYerror; |
| 1158 | goto yyerrlab1; |
| 1159 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1160 | else |
| 1161 | { |
| 1162 | yytoken = YYTRANSLATE (yychar); |
| 1163 | YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); |
| 1164 | } |
| 1165 | |
| 1166 | /* If the proper action on seeing token YYTOKEN is to reduce or to |
| 1167 | detect an error, take that action. */ |
| 1168 | yyn += yytoken; |
| 1169 | if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
| 1170 | goto yydefault; |
| 1171 | yyn = yytable[yyn]; |
| 1172 | if (yyn <= 0) |
| 1173 | { |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1174 | if (yytable_value_is_error (yyn)) |
| 1175 | goto yyerrlab; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1176 | yyn = -yyn; |
| 1177 | goto yyreduce; |
| 1178 | } |
| 1179 | |
| 1180 | /* Count tokens shifted since error; after three, turn off error |
| 1181 | status. */ |
| 1182 | if (yyerrstatus) |
| 1183 | yyerrstatus--; |
| 1184 | |
| 1185 | /* Shift the lookahead token. */ |
| 1186 | YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1187 | yystate = yyn; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1188 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1189 | *++yyvsp = yylval; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1190 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1191 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1192 | /* Discard the shifted token. */ |
| 1193 | yychar = YYEMPTY; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1194 | goto yynewstate; |
| 1195 | |
| 1196 | |
| 1197 | /*-----------------------------------------------------------. |
| 1198 | | yydefault -- do the default action for the current state. | |
| 1199 | `-----------------------------------------------------------*/ |
| 1200 | yydefault: |
| 1201 | yyn = yydefact[yystate]; |
| 1202 | if (yyn == 0) |
| 1203 | goto yyerrlab; |
| 1204 | goto yyreduce; |
| 1205 | |
| 1206 | |
| 1207 | /*-----------------------------. |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1208 | | yyreduce -- do a reduction. | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1209 | `-----------------------------*/ |
| 1210 | yyreduce: |
| 1211 | /* yyn is the number of a rule to reduce with. */ |
| 1212 | yylen = yyr2[yyn]; |
| 1213 | |
| 1214 | /* If YYLEN is nonzero, implement the default value of the action: |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1215 | '$$ = $1'. |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1216 | |
| 1217 | Otherwise, the following line sets YYVAL to garbage. |
| 1218 | This behavior is undocumented and Bison |
| 1219 | users should not rely upon it. Assigning to YYVAL |
| 1220 | unconditionally makes the parser a bit smaller, and it avoids a |
| 1221 | GCC warning that YYVAL may be used uninitialized. */ |
| 1222 | yyval = yyvsp[1-yylen]; |
| 1223 | |
| 1224 | |
| 1225 | YY_REDUCE_PRINT (yyn); |
| 1226 | switch (yyn) |
| 1227 | { |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1228 | case 2: /* devtree: %empty */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1229 | { cur_parent = root_parent; } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1230 | break; |
| 1231 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1232 | case 25: /* @1: %empty */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1233 | { |
Furquan Shaikh | c56ae2f | 2018-05-31 10:33:16 -0700 | [diff] [blame] | 1234 | (yyval.chip_instance) = new_chip_instance((yyvsp[0].string)); |
| 1235 | chip_enqueue_tail(cur_chip_instance); |
| 1236 | cur_chip_instance = (yyval.chip_instance); |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1237 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1238 | break; |
| 1239 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1240 | case 26: /* chip: CHIP STRING @1 chipchildren_dev END */ |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 1241 | { |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1242 | cur_chip_instance = chip_dequeue_tail(); |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1243 | } |
| 1244 | break; |
| 1245 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1246 | case 27: /* @2: %empty */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1247 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1248 | (yyval.dev) = new_device_raw(cur_parent, cur_chip_instance, (yyvsp[-3].number), (yyvsp[-2].string), (yyvsp[-1].string), (yyvsp[0].number)); |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1249 | cur_parent = (yyval.dev)->last_bus; |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1250 | } |
Patrick Georgi | 68befd5 | 2010-05-05 12:05:25 +0000 | [diff] [blame] | 1251 | break; |
| 1252 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1253 | case 28: /* device: DEVICE BUS NUMBER alias status @2 devicechildren END */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1254 | { |
| 1255 | cur_parent = (yyvsp[-2].dev)->parent; |
| 1256 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1257 | break; |
| 1258 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1259 | case 29: /* @3: %empty */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1260 | { |
| 1261 | (yyval.dev) = new_device_reference(cur_parent, cur_chip_instance, (yyvsp[-1].string), (yyvsp[0].number)); |
| 1262 | cur_parent = (yyval.dev)->last_bus; |
| 1263 | } |
| 1264 | break; |
| 1265 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1266 | case 30: /* device: DEVICE REFERENCE STRING status @3 devicechildren END */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1267 | { |
| 1268 | cur_parent = (yyvsp[-2].dev)->parent; |
| 1269 | } |
| 1270 | break; |
| 1271 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1272 | case 31: /* alias: %empty */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1273 | { |
| 1274 | (yyval.string) = NULL; |
| 1275 | } |
| 1276 | break; |
| 1277 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1278 | case 32: /* alias: ALIAS STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1279 | { |
| 1280 | (yyval.string) = (yyvsp[0].string); |
| 1281 | } |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1282 | break; |
| 1283 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1284 | case 35: /* resource: RESOURCE NUMBER EQUALS NUMBER */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1285 | { add_resource(cur_parent, (yyvsp[-3].number), strtol((yyvsp[-2].string), NULL, 0), strtol((yyvsp[0].string), NULL, 0)); } |
Sven Schnelle | 270a908 | 2011-03-01 19:58:15 +0000 | [diff] [blame] | 1286 | break; |
| 1287 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1288 | case 36: /* reference: REFERENCE STRING ASSOCIATION STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1289 | { add_reference(cur_chip_instance, (yyvsp[0].string), (yyvsp[-2].string)); } |
Patrick Rudolph | ac24d3c | 2019-04-12 14:42:17 +0200 | [diff] [blame] | 1290 | break; |
| 1291 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1292 | case 37: /* registers: REGISTER STRING EQUALS STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1293 | { add_register(cur_chip_instance, (yyvsp[-2].string), (yyvsp[0].string)); } |
Patrick Rudolph | ac24d3c | 2019-04-12 14:42:17 +0200 | [diff] [blame] | 1294 | break; |
| 1295 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1296 | case 38: /* subsystemid: SUBSYSTEMID NUMBER NUMBER */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1297 | { add_pci_subsystem_ids(cur_parent, strtol((yyvsp[-1].string), NULL, 16), strtol((yyvsp[0].string), NULL, 16), 0); } |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1298 | break; |
Patrick Rudolph | ac24d3c | 2019-04-12 14:42:17 +0200 | [diff] [blame] | 1299 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1300 | case 39: /* subsystemid: SUBSYSTEMID NUMBER NUMBER INHERIT */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1301 | { add_pci_subsystem_ids(cur_parent, strtol((yyvsp[-2].string), NULL, 16), strtol((yyvsp[-1].string), NULL, 16), 1); } |
Patrick Rudolph | ac24d3c | 2019-04-12 14:42:17 +0200 | [diff] [blame] | 1302 | break; |
| 1303 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1304 | case 40: /* ioapic_irq: IOAPIC_IRQ NUMBER PCIINT NUMBER */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1305 | { add_ioapic_info(cur_parent, strtol((yyvsp[-2].string), NULL, 16), (yyvsp[-1].string), strtol((yyvsp[0].string), NULL, 16)); } |
| 1306 | break; |
| 1307 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1308 | case 41: /* smbios_slot_desc: SLOT_DESC STRING STRING STRING STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1309 | { add_slot_desc(cur_parent, (yyvsp[-3].string), (yyvsp[-2].string), (yyvsp[-1].string), (yyvsp[0].string)); } |
| 1310 | break; |
| 1311 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1312 | case 42: /* smbios_slot_desc: SLOT_DESC STRING STRING STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1313 | { add_slot_desc(cur_parent, (yyvsp[-2].string), (yyvsp[-1].string), (yyvsp[0].string), NULL); } |
| 1314 | break; |
| 1315 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1316 | case 43: /* smbios_slot_desc: SLOT_DESC STRING STRING */ |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1317 | { add_slot_desc(cur_parent, (yyvsp[-1].string), (yyvsp[0].string), NULL, NULL); } |
| 1318 | break; |
| 1319 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1320 | case 44: /* smbios_dev_info: SMBIOS_DEV_INFO NUMBER STRING */ |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1321 | { add_smbios_dev_info(cur_parent, strtol((yyvsp[-1].string), NULL, 0), (yyvsp[0].string)); } |
| 1322 | break; |
| 1323 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1324 | case 45: /* smbios_dev_info: SMBIOS_DEV_INFO NUMBER */ |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1325 | { add_smbios_dev_info(cur_parent, strtol((yyvsp[0].string), NULL, 0), NULL); } |
| 1326 | break; |
| 1327 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1328 | case 46: /* fw_config_table: FW_CONFIG_TABLE fw_config_table_children END */ |
Duncan Laurie | 47b7b34 | 2020-05-15 15:39:08 -0700 | [diff] [blame] | 1329 | { } |
| 1330 | break; |
| 1331 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1332 | case 51: /* fw_config_field_bits: NUMBER NUMBER */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1333 | { |
| 1334 | append_fw_config_bits(&cur_bits, strtoul((yyvsp[-1].string), NULL, 0), strtoul((yyvsp[0].string), NULL, 0)); |
Duncan Laurie | 47b7b34 | 2020-05-15 15:39:08 -0700 | [diff] [blame] | 1335 | } |
| 1336 | break; |
| 1337 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1338 | case 54: /* $@4: %empty */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1339 | { cur_field = new_fw_config_field((yyvsp[-2].string), cur_bits); } |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1340 | break; |
| 1341 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1342 | case 55: /* fw_config_field: FW_CONFIG_FIELD STRING fw_config_field_bits fw_config_field_bits_repeating $@4 fw_config_field_children END */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1343 | { cur_bits = NULL; } |
| 1344 | break; |
| 1345 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1346 | case 56: /* $@5: %empty */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1347 | { |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1348 | cur_bits = NULL; |
| 1349 | append_fw_config_bits(&cur_bits, strtoul((yyvsp[0].string), NULL, 0), strtoul((yyvsp[0].string), NULL, 0)); |
| 1350 | cur_field = new_fw_config_field((yyvsp[-1].string), cur_bits); |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1351 | } |
| 1352 | break; |
| 1353 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1354 | case 57: /* fw_config_field: FW_CONFIG_FIELD STRING NUMBER $@5 fw_config_field_children END */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1355 | { cur_bits = NULL; } |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1356 | break; |
| 1357 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1358 | case 58: /* $@6: %empty */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1359 | { |
| 1360 | cur_field = get_fw_config_field((yyvsp[0].string)); |
| 1361 | } |
Nico Huber | 8e1ea52 | 2020-06-03 10:20:07 -0700 | [diff] [blame] | 1362 | break; |
| 1363 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1364 | case 59: /* fw_config_field: FW_CONFIG_FIELD STRING $@6 fw_config_field_children END */ |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 1365 | { cur_bits = NULL; } |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1366 | break; |
| 1367 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1368 | case 60: /* fw_config_option: FW_CONFIG_OPTION STRING NUMBER */ |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 1369 | { add_fw_config_option(cur_field, (yyvsp[-1].string), strtoull((yyvsp[0].string), NULL, 0)); } |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1370 | break; |
| 1371 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1372 | case 61: /* fw_config_probe: FW_CONFIG_PROBE STRING STRING */ |
Duncan Laurie | 47b7b34 | 2020-05-15 15:39:08 -0700 | [diff] [blame] | 1373 | { add_fw_config_probe(cur_parent, (yyvsp[-1].string), (yyvsp[0].string)); } |
| 1374 | break; |
| 1375 | |
Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1376 | case 62: /* ops: OPS STRING */ |
| 1377 | { add_device_ops(cur_parent, (yyvsp[0].string)); } |
| 1378 | break; |
| 1379 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1380 | |
| 1381 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1382 | default: break; |
| 1383 | } |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1384 | /* User semantic actions sometimes alter yychar, and that requires |
| 1385 | that yytoken be updated with the new translation. We take the |
| 1386 | approach of translating immediately before every use of yytoken. |
| 1387 | One alternative is translating here after every semantic action, |
| 1388 | but that translation would be missed if the semantic action invokes |
| 1389 | YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or |
| 1390 | if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an |
| 1391 | incorrect destructor might then be invoked immediately. In the |
| 1392 | case of YYERROR or YYBACKUP, subsequent parser actions might lead |
| 1393 | to an incorrect destructor call or verbose syntax error message |
| 1394 | before the lookahead is translated. */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1395 | YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1396 | |
| 1397 | YYPOPSTACK (yylen); |
| 1398 | yylen = 0; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1399 | |
| 1400 | *++yyvsp = yyval; |
| 1401 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1402 | /* Now 'shift' the result of the reduction. Determine what state |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1403 | that goes to, based on the state we popped back to and the rule |
| 1404 | number reduced by. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1405 | { |
| 1406 | const int yylhs = yyr1[yyn] - YYNTOKENS; |
| 1407 | const int yyi = yypgoto[yylhs] + *yyssp; |
| 1408 | yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp |
| 1409 | ? yytable[yyi] |
| 1410 | : yydefgoto[yylhs]); |
| 1411 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1412 | |
| 1413 | goto yynewstate; |
| 1414 | |
| 1415 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1416 | /*--------------------------------------. |
| 1417 | | yyerrlab -- here on detecting error. | |
| 1418 | `--------------------------------------*/ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1419 | yyerrlab: |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1420 | /* Make sure we have latest lookahead translation. See comments at |
| 1421 | user semantic actions for why this is necessary. */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1422 | yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1423 | /* If not already recovering from an error, report this error. */ |
| 1424 | if (!yyerrstatus) |
| 1425 | { |
| 1426 | ++yynerrs; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1427 | yyerror (YY_("syntax error")); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1428 | } |
| 1429 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1430 | if (yyerrstatus == 3) |
| 1431 | { |
| 1432 | /* If just tried and failed to reuse lookahead token after an |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1433 | error, discard it. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1434 | |
| 1435 | if (yychar <= YYEOF) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1436 | { |
| 1437 | /* Return failure if at end of input. */ |
| 1438 | if (yychar == YYEOF) |
| 1439 | YYABORT; |
| 1440 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1441 | else |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1442 | { |
| 1443 | yydestruct ("Error: discarding", |
| 1444 | yytoken, &yylval); |
| 1445 | yychar = YYEMPTY; |
| 1446 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1447 | } |
| 1448 | |
| 1449 | /* Else will try to reuse lookahead token after shifting the error |
| 1450 | token. */ |
| 1451 | goto yyerrlab1; |
| 1452 | |
| 1453 | |
| 1454 | /*---------------------------------------------------. |
| 1455 | | yyerrorlab -- error raised explicitly by YYERROR. | |
| 1456 | `---------------------------------------------------*/ |
| 1457 | yyerrorlab: |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1458 | /* Pacify compilers when the user code never invokes YYERROR and the |
| 1459 | label yyerrorlab therefore never appears in user code. */ |
| 1460 | if (0) |
| 1461 | YYERROR; |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1462 | ++yynerrs; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1463 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1464 | /* Do not reclaim the symbols of the rule whose action triggered |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1465 | this YYERROR. */ |
| 1466 | YYPOPSTACK (yylen); |
| 1467 | yylen = 0; |
| 1468 | YY_STACK_PRINT (yyss, yyssp); |
| 1469 | yystate = *yyssp; |
| 1470 | goto yyerrlab1; |
| 1471 | |
| 1472 | |
| 1473 | /*-------------------------------------------------------------. |
| 1474 | | yyerrlab1 -- common code for both syntax error and YYERROR. | |
| 1475 | `-------------------------------------------------------------*/ |
| 1476 | yyerrlab1: |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1477 | yyerrstatus = 3; /* Each real token shifted decrements this. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1478 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1479 | /* Pop stack until we find a state that shifts the error token. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1480 | for (;;) |
| 1481 | { |
| 1482 | yyn = yypact[yystate]; |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1483 | if (!yypact_value_is_default (yyn)) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1484 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1485 | yyn += YYSYMBOL_YYerror; |
| 1486 | if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1487 | { |
| 1488 | yyn = yytable[yyn]; |
| 1489 | if (0 < yyn) |
| 1490 | break; |
| 1491 | } |
| 1492 | } |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1493 | |
| 1494 | /* Pop the current state because it cannot handle the error token. */ |
| 1495 | if (yyssp == yyss) |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1496 | YYABORT; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1497 | |
| 1498 | |
| 1499 | yydestruct ("Error: popping", |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1500 | YY_ACCESSING_SYMBOL (yystate), yyvsp); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1501 | YYPOPSTACK (1); |
| 1502 | yystate = *yyssp; |
| 1503 | YY_STACK_PRINT (yyss, yyssp); |
| 1504 | } |
| 1505 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1506 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1507 | *++yyvsp = yylval; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1508 | YY_IGNORE_MAYBE_UNINITIALIZED_END |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1509 | |
| 1510 | |
| 1511 | /* Shift the error token. */ |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1512 | YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1513 | |
| 1514 | yystate = yyn; |
| 1515 | goto yynewstate; |
| 1516 | |
| 1517 | |
| 1518 | /*-------------------------------------. |
| 1519 | | yyacceptlab -- YYACCEPT comes here. | |
| 1520 | `-------------------------------------*/ |
| 1521 | yyacceptlab: |
| 1522 | yyresult = 0; |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1523 | goto yyreturnlab; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1524 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1525 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1526 | /*-----------------------------------. |
| 1527 | | yyabortlab -- YYABORT comes here. | |
| 1528 | `-----------------------------------*/ |
| 1529 | yyabortlab: |
| 1530 | yyresult = 1; |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1531 | goto yyreturnlab; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1532 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1533 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1534 | /*-----------------------------------------------------------. |
| 1535 | | yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | |
| 1536 | `-----------------------------------------------------------*/ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1537 | yyexhaustedlab: |
| 1538 | yyerror (YY_("memory exhausted")); |
| 1539 | yyresult = 2; |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1540 | goto yyreturnlab; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1541 | |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 1542 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 1543 | /*----------------------------------------------------------. |
| 1544 | | yyreturnlab -- parsing is finished, clean up and return. | |
| 1545 | `----------------------------------------------------------*/ |
| 1546 | yyreturnlab: |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1547 | if (yychar != YYEMPTY) |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 1548 | { |
| 1549 | /* Make sure we have latest lookahead translation. See comments at |
| 1550 | user semantic actions for why this is necessary. */ |
| 1551 | yytoken = YYTRANSLATE (yychar); |
| 1552 | yydestruct ("Cleanup: discarding lookahead", |
| 1553 | yytoken, &yylval); |
| 1554 | } |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1555 | /* Do not reclaim the symbols of the rule whose action triggered |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1556 | this YYABORT or YYACCEPT. */ |
| 1557 | YYPOPSTACK (yylen); |
| 1558 | YY_STACK_PRINT (yyss, yyssp); |
| 1559 | while (yyssp != yyss) |
| 1560 | { |
| 1561 | yydestruct ("Cleanup: popping", |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1562 | YY_ACCESSING_SYMBOL (+*yyssp), yyvsp); |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1563 | YYPOPSTACK (1); |
| 1564 | } |
| 1565 | #ifndef yyoverflow |
| 1566 | if (yyss != yyssa) |
| 1567 | YYSTACK_FREE (yyss); |
| 1568 | #endif |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1569 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1570 | return yyresult; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 1571 | } |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 1572 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 1573 | |