1*276da39aSCy Schubert /* A Bison parser, made by GNU Bison 2.7.12-4996. */ 22b15cb3dSCy Schubert 32b15cb3dSCy Schubert /* Bison implementation for Yacc-like parsers in C 42b15cb3dSCy Schubert 52b15cb3dSCy Schubert Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. 62b15cb3dSCy Schubert 72b15cb3dSCy Schubert This program is free software: you can redistribute it and/or modify 82b15cb3dSCy Schubert it under the terms of the GNU General Public License as published by 92b15cb3dSCy Schubert the Free Software Foundation, either version 3 of the License, or 102b15cb3dSCy Schubert (at your option) any later version. 112b15cb3dSCy Schubert 122b15cb3dSCy Schubert This program is distributed in the hope that it will be useful, 132b15cb3dSCy Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 142b15cb3dSCy Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 152b15cb3dSCy Schubert GNU General Public License for more details. 162b15cb3dSCy Schubert 172b15cb3dSCy Schubert You should have received a copy of the GNU General Public License 182b15cb3dSCy Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 192b15cb3dSCy Schubert 202b15cb3dSCy Schubert /* As a special exception, you may create a larger work that contains 212b15cb3dSCy Schubert part or all of the Bison parser skeleton and distribute that work 222b15cb3dSCy Schubert under terms of your choice, so long as that work isn't itself a 232b15cb3dSCy Schubert parser generator using the skeleton or a modified version thereof 242b15cb3dSCy Schubert as a parser skeleton. Alternatively, if you modify or redistribute 252b15cb3dSCy Schubert the parser skeleton itself, you may (at your option) remove this 262b15cb3dSCy Schubert special exception, which will cause the skeleton and the resulting 272b15cb3dSCy Schubert Bison output files to be licensed under the GNU General Public 282b15cb3dSCy Schubert License without this special exception. 292b15cb3dSCy Schubert 302b15cb3dSCy Schubert This special exception was added by the Free Software Foundation in 312b15cb3dSCy Schubert version 2.2 of Bison. */ 322b15cb3dSCy Schubert 332b15cb3dSCy Schubert /* C LALR(1) parser skeleton written by Richard Stallman, by 342b15cb3dSCy Schubert simplifying the original so-called "semantic" parser. */ 352b15cb3dSCy Schubert 362b15cb3dSCy Schubert /* All symbols defined below should begin with yy or YY, to avoid 372b15cb3dSCy Schubert infringing on user name space. This should be done even for local 382b15cb3dSCy Schubert variables, as they might otherwise be expanded by user macros. 392b15cb3dSCy Schubert There are some unavoidable exceptions within include files to 402b15cb3dSCy Schubert define necessary library symbols; they are noted "INFRINGES ON 412b15cb3dSCy Schubert USER NAME SPACE" below. */ 422b15cb3dSCy Schubert 432b15cb3dSCy Schubert /* Identify Bison output. */ 442b15cb3dSCy Schubert #define YYBISON 1 452b15cb3dSCy Schubert 462b15cb3dSCy Schubert /* Bison version. */ 47*276da39aSCy Schubert #define YYBISON_VERSION "2.7.12-4996" 482b15cb3dSCy Schubert 492b15cb3dSCy Schubert /* Skeleton name. */ 502b15cb3dSCy Schubert #define YYSKELETON_NAME "yacc.c" 512b15cb3dSCy Schubert 522b15cb3dSCy Schubert /* Pure parsers. */ 532b15cb3dSCy Schubert #define YYPURE 0 542b15cb3dSCy Schubert 552b15cb3dSCy Schubert /* Push parsers. */ 562b15cb3dSCy Schubert #define YYPUSH 0 572b15cb3dSCy Schubert 582b15cb3dSCy Schubert /* Pull parsers. */ 592b15cb3dSCy Schubert #define YYPULL 1 602b15cb3dSCy Schubert 612b15cb3dSCy Schubert 622b15cb3dSCy Schubert 632b15cb3dSCy Schubert 642b15cb3dSCy Schubert /* Copy the first part of user declarations. */ 65*276da39aSCy Schubert /* Line 371 of yacc.c */ 66*276da39aSCy Schubert #line 11 "../../ntpd/ntp_parser.y" 672b15cb3dSCy Schubert 682b15cb3dSCy Schubert #ifdef HAVE_CONFIG_H 692b15cb3dSCy Schubert # include <config.h> 702b15cb3dSCy Schubert #endif 712b15cb3dSCy Schubert 722b15cb3dSCy Schubert #include "ntp.h" 732b15cb3dSCy Schubert #include "ntpd.h" 742b15cb3dSCy Schubert #include "ntp_machine.h" 752b15cb3dSCy Schubert #include "ntp_stdlib.h" 762b15cb3dSCy Schubert #include "ntp_filegen.h" 772b15cb3dSCy Schubert #include "ntp_scanner.h" 782b15cb3dSCy Schubert #include "ntp_config.h" 792b15cb3dSCy Schubert #include "ntp_crypto.h" 802b15cb3dSCy Schubert 812b15cb3dSCy Schubert #include "ntpsim.h" /* HMS: Do we really want this all the time? */ 822b15cb3dSCy Schubert /* SK: It might be a good idea to always 832b15cb3dSCy Schubert include the simulator code. That way 842b15cb3dSCy Schubert someone can use the same configuration file 852b15cb3dSCy Schubert for both the simulator and the daemon 862b15cb3dSCy Schubert */ 872b15cb3dSCy Schubert 882b15cb3dSCy Schubert #define YYMALLOC emalloc 892b15cb3dSCy Schubert #define YYFREE free 902b15cb3dSCy Schubert #define YYERROR_VERBOSE 912b15cb3dSCy Schubert #define YYMAXDEPTH 1000 /* stop the madness sooner */ 92*276da39aSCy Schubert void yyerror(const char *msg); 932b15cb3dSCy Schubert 942b15cb3dSCy Schubert #ifdef SIM 952b15cb3dSCy Schubert # define ONLY_SIM(a) (a) 962b15cb3dSCy Schubert #else 972b15cb3dSCy Schubert # define ONLY_SIM(a) NULL 982b15cb3dSCy Schubert #endif 992b15cb3dSCy Schubert 100*276da39aSCy Schubert /* Line 371 of yacc.c */ 101*276da39aSCy Schubert #line 102 "ntp_parser.c" 1022b15cb3dSCy Schubert 103*276da39aSCy Schubert # ifndef YY_NULL 1042b15cb3dSCy Schubert # if defined __cplusplus && 201103L <= __cplusplus 105*276da39aSCy Schubert # define YY_NULL nullptr 1062b15cb3dSCy Schubert # else 107*276da39aSCy Schubert # define YY_NULL 0 1082b15cb3dSCy Schubert # endif 1092b15cb3dSCy Schubert # endif 1102b15cb3dSCy Schubert 1112b15cb3dSCy Schubert /* Enabling verbose error messages. */ 1122b15cb3dSCy Schubert #ifdef YYERROR_VERBOSE 1132b15cb3dSCy Schubert # undef YYERROR_VERBOSE 1142b15cb3dSCy Schubert # define YYERROR_VERBOSE 1 1152b15cb3dSCy Schubert #else 1162b15cb3dSCy Schubert # define YYERROR_VERBOSE 0 1172b15cb3dSCy Schubert #endif 1182b15cb3dSCy Schubert 1192b15cb3dSCy Schubert /* In a future release of Bison, this section will be replaced 1202b15cb3dSCy Schubert by #include "y.tab.h". */ 121*276da39aSCy Schubert #ifndef YY_YY_NTP_PARSER_H_INCLUDED 122*276da39aSCy Schubert # define YY_YY_NTP_PARSER_H_INCLUDED 123*276da39aSCy Schubert /* Enabling traces. */ 1242b15cb3dSCy Schubert #ifndef YYDEBUG 1252b15cb3dSCy Schubert # define YYDEBUG 1 1262b15cb3dSCy Schubert #endif 1272b15cb3dSCy Schubert #if YYDEBUG 1282b15cb3dSCy Schubert extern int yydebug; 1292b15cb3dSCy Schubert #endif 1302b15cb3dSCy Schubert 131*276da39aSCy Schubert /* Tokens. */ 1322b15cb3dSCy Schubert #ifndef YYTOKENTYPE 1332b15cb3dSCy Schubert # define YYTOKENTYPE 134*276da39aSCy Schubert /* Put the tokens into the symbol table, so that GDB and other debuggers 135*276da39aSCy Schubert know about them. */ 136*276da39aSCy Schubert enum yytokentype { 1372b15cb3dSCy Schubert T_Abbrev = 258, 1382b15cb3dSCy Schubert T_Age = 259, 1392b15cb3dSCy Schubert T_All = 260, 1402b15cb3dSCy Schubert T_Allan = 261, 1412b15cb3dSCy Schubert T_Allpeers = 262, 1422b15cb3dSCy Schubert T_Auth = 263, 1432b15cb3dSCy Schubert T_Autokey = 264, 1442b15cb3dSCy Schubert T_Automax = 265, 1452b15cb3dSCy Schubert T_Average = 266, 1462b15cb3dSCy Schubert T_Bclient = 267, 1472b15cb3dSCy Schubert T_Beacon = 268, 1482b15cb3dSCy Schubert T_Broadcast = 269, 1492b15cb3dSCy Schubert T_Broadcastclient = 270, 1502b15cb3dSCy Schubert T_Broadcastdelay = 271, 1512b15cb3dSCy Schubert T_Burst = 272, 1522b15cb3dSCy Schubert T_Calibrate = 273, 1532b15cb3dSCy Schubert T_Ceiling = 274, 1542b15cb3dSCy Schubert T_Clockstats = 275, 1552b15cb3dSCy Schubert T_Cohort = 276, 1562b15cb3dSCy Schubert T_ControlKey = 277, 1572b15cb3dSCy Schubert T_Crypto = 278, 1582b15cb3dSCy Schubert T_Cryptostats = 279, 1592b15cb3dSCy Schubert T_Ctl = 280, 1602b15cb3dSCy Schubert T_Day = 281, 1612b15cb3dSCy Schubert T_Default = 282, 1622b15cb3dSCy Schubert T_Digest = 283, 1632b15cb3dSCy Schubert T_Disable = 284, 1642b15cb3dSCy Schubert T_Discard = 285, 1652b15cb3dSCy Schubert T_Dispersion = 286, 1662b15cb3dSCy Schubert T_Double = 287, 1672b15cb3dSCy Schubert T_Driftfile = 288, 1682b15cb3dSCy Schubert T_Drop = 289, 169*276da39aSCy Schubert T_Dscp = 290, 170*276da39aSCy Schubert T_Ellipsis = 291, 171*276da39aSCy Schubert T_Enable = 292, 172*276da39aSCy Schubert T_End = 293, 173*276da39aSCy Schubert T_False = 294, 174*276da39aSCy Schubert T_File = 295, 175*276da39aSCy Schubert T_Filegen = 296, 176*276da39aSCy Schubert T_Filenum = 297, 177*276da39aSCy Schubert T_Flag1 = 298, 178*276da39aSCy Schubert T_Flag2 = 299, 179*276da39aSCy Schubert T_Flag3 = 300, 180*276da39aSCy Schubert T_Flag4 = 301, 181*276da39aSCy Schubert T_Flake = 302, 182*276da39aSCy Schubert T_Floor = 303, 183*276da39aSCy Schubert T_Freq = 304, 184*276da39aSCy Schubert T_Fudge = 305, 185*276da39aSCy Schubert T_Host = 306, 186*276da39aSCy Schubert T_Huffpuff = 307, 187*276da39aSCy Schubert T_Iburst = 308, 188*276da39aSCy Schubert T_Ident = 309, 189*276da39aSCy Schubert T_Ignore = 310, 190*276da39aSCy Schubert T_Incalloc = 311, 191*276da39aSCy Schubert T_Incmem = 312, 192*276da39aSCy Schubert T_Initalloc = 313, 193*276da39aSCy Schubert T_Initmem = 314, 194*276da39aSCy Schubert T_Includefile = 315, 195*276da39aSCy Schubert T_Integer = 316, 196*276da39aSCy Schubert T_Interface = 317, 197*276da39aSCy Schubert T_Intrange = 318, 198*276da39aSCy Schubert T_Io = 319, 199*276da39aSCy Schubert T_Ipv4 = 320, 200*276da39aSCy Schubert T_Ipv4_flag = 321, 201*276da39aSCy Schubert T_Ipv6 = 322, 202*276da39aSCy Schubert T_Ipv6_flag = 323, 203*276da39aSCy Schubert T_Kernel = 324, 204*276da39aSCy Schubert T_Key = 325, 205*276da39aSCy Schubert T_Keys = 326, 206*276da39aSCy Schubert T_Keysdir = 327, 207*276da39aSCy Schubert T_Kod = 328, 208*276da39aSCy Schubert T_Mssntp = 329, 209*276da39aSCy Schubert T_Leapfile = 330, 210*276da39aSCy Schubert T_Leapsmearinterval = 331, 211*276da39aSCy Schubert T_Limited = 332, 212*276da39aSCy Schubert T_Link = 333, 213*276da39aSCy Schubert T_Listen = 334, 214*276da39aSCy Schubert T_Logconfig = 335, 215*276da39aSCy Schubert T_Logfile = 336, 216*276da39aSCy Schubert T_Loopstats = 337, 217*276da39aSCy Schubert T_Lowpriotrap = 338, 218*276da39aSCy Schubert T_Manycastclient = 339, 219*276da39aSCy Schubert T_Manycastserver = 340, 220*276da39aSCy Schubert T_Mask = 341, 221*276da39aSCy Schubert T_Maxage = 342, 222*276da39aSCy Schubert T_Maxclock = 343, 223*276da39aSCy Schubert T_Maxdepth = 344, 224*276da39aSCy Schubert T_Maxdist = 345, 225*276da39aSCy Schubert T_Maxmem = 346, 226*276da39aSCy Schubert T_Maxpoll = 347, 227*276da39aSCy Schubert T_Mdnstries = 348, 228*276da39aSCy Schubert T_Mem = 349, 229*276da39aSCy Schubert T_Memlock = 350, 230*276da39aSCy Schubert T_Minclock = 351, 231*276da39aSCy Schubert T_Mindepth = 352, 232*276da39aSCy Schubert T_Mindist = 353, 233*276da39aSCy Schubert T_Minimum = 354, 234*276da39aSCy Schubert T_Minpoll = 355, 235*276da39aSCy Schubert T_Minsane = 356, 236*276da39aSCy Schubert T_Mode = 357, 237*276da39aSCy Schubert T_Mode7 = 358, 238*276da39aSCy Schubert T_Monitor = 359, 239*276da39aSCy Schubert T_Month = 360, 240*276da39aSCy Schubert T_Mru = 361, 241*276da39aSCy Schubert T_Multicastclient = 362, 242*276da39aSCy Schubert T_Nic = 363, 243*276da39aSCy Schubert T_Nolink = 364, 244*276da39aSCy Schubert T_Nomodify = 365, 245*276da39aSCy Schubert T_Nomrulist = 366, 246*276da39aSCy Schubert T_None = 367, 247*276da39aSCy Schubert T_Nonvolatile = 368, 248*276da39aSCy Schubert T_Nopeer = 369, 249*276da39aSCy Schubert T_Noquery = 370, 250*276da39aSCy Schubert T_Noselect = 371, 251*276da39aSCy Schubert T_Noserve = 372, 252*276da39aSCy Schubert T_Notrap = 373, 253*276da39aSCy Schubert T_Notrust = 374, 254*276da39aSCy Schubert T_Ntp = 375, 255*276da39aSCy Schubert T_Ntpport = 376, 256*276da39aSCy Schubert T_NtpSignDsocket = 377, 257*276da39aSCy Schubert T_Orphan = 378, 258*276da39aSCy Schubert T_Orphanwait = 379, 259*276da39aSCy Schubert T_Panic = 380, 260*276da39aSCy Schubert T_Peer = 381, 261*276da39aSCy Schubert T_Peerstats = 382, 262*276da39aSCy Schubert T_Phone = 383, 263*276da39aSCy Schubert T_Pid = 384, 264*276da39aSCy Schubert T_Pidfile = 385, 265*276da39aSCy Schubert T_Pool = 386, 266*276da39aSCy Schubert T_Port = 387, 267*276da39aSCy Schubert T_Preempt = 388, 268*276da39aSCy Schubert T_Prefer = 389, 269*276da39aSCy Schubert T_Protostats = 390, 270*276da39aSCy Schubert T_Pw = 391, 271*276da39aSCy Schubert T_Randfile = 392, 272*276da39aSCy Schubert T_Rawstats = 393, 273*276da39aSCy Schubert T_Refid = 394, 274*276da39aSCy Schubert T_Requestkey = 395, 275*276da39aSCy Schubert T_Reset = 396, 276*276da39aSCy Schubert T_Restrict = 397, 277*276da39aSCy Schubert T_Revoke = 398, 278*276da39aSCy Schubert T_Rlimit = 399, 279*276da39aSCy Schubert T_Saveconfigdir = 400, 280*276da39aSCy Schubert T_Server = 401, 281*276da39aSCy Schubert T_Setvar = 402, 282*276da39aSCy Schubert T_Source = 403, 283*276da39aSCy Schubert T_Stacksize = 404, 284*276da39aSCy Schubert T_Statistics = 405, 285*276da39aSCy Schubert T_Stats = 406, 286*276da39aSCy Schubert T_Statsdir = 407, 287*276da39aSCy Schubert T_Step = 408, 288*276da39aSCy Schubert T_Stepback = 409, 289*276da39aSCy Schubert T_Stepfwd = 410, 290*276da39aSCy Schubert T_Stepout = 411, 291*276da39aSCy Schubert T_Stratum = 412, 292*276da39aSCy Schubert T_String = 413, 293*276da39aSCy Schubert T_Sys = 414, 294*276da39aSCy Schubert T_Sysstats = 415, 295*276da39aSCy Schubert T_Tick = 416, 296*276da39aSCy Schubert T_Time1 = 417, 297*276da39aSCy Schubert T_Time2 = 418, 298*276da39aSCy Schubert T_Timer = 419, 299*276da39aSCy Schubert T_Timingstats = 420, 300*276da39aSCy Schubert T_Tinker = 421, 301*276da39aSCy Schubert T_Tos = 422, 302*276da39aSCy Schubert T_Trap = 423, 303*276da39aSCy Schubert T_True = 424, 304*276da39aSCy Schubert T_Trustedkey = 425, 305*276da39aSCy Schubert T_Ttl = 426, 306*276da39aSCy Schubert T_Type = 427, 307*276da39aSCy Schubert T_U_int = 428, 308*276da39aSCy Schubert T_Unconfig = 429, 309*276da39aSCy Schubert T_Unpeer = 430, 310*276da39aSCy Schubert T_Version = 431, 311*276da39aSCy Schubert T_WanderThreshold = 432, 312*276da39aSCy Schubert T_Week = 433, 313*276da39aSCy Schubert T_Wildcard = 434, 314*276da39aSCy Schubert T_Xleave = 435, 315*276da39aSCy Schubert T_Year = 436, 316*276da39aSCy Schubert T_Flag = 437, 317*276da39aSCy Schubert T_EOC = 438, 318*276da39aSCy Schubert T_Simulate = 439, 319*276da39aSCy Schubert T_Beep_Delay = 440, 320*276da39aSCy Schubert T_Sim_Duration = 441, 321*276da39aSCy Schubert T_Server_Offset = 442, 322*276da39aSCy Schubert T_Duration = 443, 323*276da39aSCy Schubert T_Freq_Offset = 444, 324*276da39aSCy Schubert T_Wander = 445, 325*276da39aSCy Schubert T_Jitter = 446, 326*276da39aSCy Schubert T_Prop_Delay = 447, 327*276da39aSCy Schubert T_Proc_Delay = 448 3282b15cb3dSCy Schubert }; 3292b15cb3dSCy Schubert #endif 3302b15cb3dSCy Schubert /* Tokens. */ 3312b15cb3dSCy Schubert #define T_Abbrev 258 3322b15cb3dSCy Schubert #define T_Age 259 3332b15cb3dSCy Schubert #define T_All 260 3342b15cb3dSCy Schubert #define T_Allan 261 3352b15cb3dSCy Schubert #define T_Allpeers 262 3362b15cb3dSCy Schubert #define T_Auth 263 3372b15cb3dSCy Schubert #define T_Autokey 264 3382b15cb3dSCy Schubert #define T_Automax 265 3392b15cb3dSCy Schubert #define T_Average 266 3402b15cb3dSCy Schubert #define T_Bclient 267 3412b15cb3dSCy Schubert #define T_Beacon 268 3422b15cb3dSCy Schubert #define T_Broadcast 269 3432b15cb3dSCy Schubert #define T_Broadcastclient 270 3442b15cb3dSCy Schubert #define T_Broadcastdelay 271 3452b15cb3dSCy Schubert #define T_Burst 272 3462b15cb3dSCy Schubert #define T_Calibrate 273 3472b15cb3dSCy Schubert #define T_Ceiling 274 3482b15cb3dSCy Schubert #define T_Clockstats 275 3492b15cb3dSCy Schubert #define T_Cohort 276 3502b15cb3dSCy Schubert #define T_ControlKey 277 3512b15cb3dSCy Schubert #define T_Crypto 278 3522b15cb3dSCy Schubert #define T_Cryptostats 279 3532b15cb3dSCy Schubert #define T_Ctl 280 3542b15cb3dSCy Schubert #define T_Day 281 3552b15cb3dSCy Schubert #define T_Default 282 3562b15cb3dSCy Schubert #define T_Digest 283 3572b15cb3dSCy Schubert #define T_Disable 284 3582b15cb3dSCy Schubert #define T_Discard 285 3592b15cb3dSCy Schubert #define T_Dispersion 286 3602b15cb3dSCy Schubert #define T_Double 287 3612b15cb3dSCy Schubert #define T_Driftfile 288 3622b15cb3dSCy Schubert #define T_Drop 289 363*276da39aSCy Schubert #define T_Dscp 290 364*276da39aSCy Schubert #define T_Ellipsis 291 365*276da39aSCy Schubert #define T_Enable 292 366*276da39aSCy Schubert #define T_End 293 367*276da39aSCy Schubert #define T_False 294 368*276da39aSCy Schubert #define T_File 295 369*276da39aSCy Schubert #define T_Filegen 296 370*276da39aSCy Schubert #define T_Filenum 297 371*276da39aSCy Schubert #define T_Flag1 298 372*276da39aSCy Schubert #define T_Flag2 299 373*276da39aSCy Schubert #define T_Flag3 300 374*276da39aSCy Schubert #define T_Flag4 301 375*276da39aSCy Schubert #define T_Flake 302 376*276da39aSCy Schubert #define T_Floor 303 377*276da39aSCy Schubert #define T_Freq 304 378*276da39aSCy Schubert #define T_Fudge 305 379*276da39aSCy Schubert #define T_Host 306 380*276da39aSCy Schubert #define T_Huffpuff 307 381*276da39aSCy Schubert #define T_Iburst 308 382*276da39aSCy Schubert #define T_Ident 309 383*276da39aSCy Schubert #define T_Ignore 310 384*276da39aSCy Schubert #define T_Incalloc 311 385*276da39aSCy Schubert #define T_Incmem 312 386*276da39aSCy Schubert #define T_Initalloc 313 387*276da39aSCy Schubert #define T_Initmem 314 388*276da39aSCy Schubert #define T_Includefile 315 389*276da39aSCy Schubert #define T_Integer 316 390*276da39aSCy Schubert #define T_Interface 317 391*276da39aSCy Schubert #define T_Intrange 318 392*276da39aSCy Schubert #define T_Io 319 393*276da39aSCy Schubert #define T_Ipv4 320 394*276da39aSCy Schubert #define T_Ipv4_flag 321 395*276da39aSCy Schubert #define T_Ipv6 322 396*276da39aSCy Schubert #define T_Ipv6_flag 323 397*276da39aSCy Schubert #define T_Kernel 324 398*276da39aSCy Schubert #define T_Key 325 399*276da39aSCy Schubert #define T_Keys 326 400*276da39aSCy Schubert #define T_Keysdir 327 401*276da39aSCy Schubert #define T_Kod 328 402*276da39aSCy Schubert #define T_Mssntp 329 403*276da39aSCy Schubert #define T_Leapfile 330 404*276da39aSCy Schubert #define T_Leapsmearinterval 331 405*276da39aSCy Schubert #define T_Limited 332 406*276da39aSCy Schubert #define T_Link 333 407*276da39aSCy Schubert #define T_Listen 334 408*276da39aSCy Schubert #define T_Logconfig 335 409*276da39aSCy Schubert #define T_Logfile 336 410*276da39aSCy Schubert #define T_Loopstats 337 411*276da39aSCy Schubert #define T_Lowpriotrap 338 412*276da39aSCy Schubert #define T_Manycastclient 339 413*276da39aSCy Schubert #define T_Manycastserver 340 414*276da39aSCy Schubert #define T_Mask 341 415*276da39aSCy Schubert #define T_Maxage 342 416*276da39aSCy Schubert #define T_Maxclock 343 417*276da39aSCy Schubert #define T_Maxdepth 344 418*276da39aSCy Schubert #define T_Maxdist 345 419*276da39aSCy Schubert #define T_Maxmem 346 420*276da39aSCy Schubert #define T_Maxpoll 347 421*276da39aSCy Schubert #define T_Mdnstries 348 422*276da39aSCy Schubert #define T_Mem 349 423*276da39aSCy Schubert #define T_Memlock 350 424*276da39aSCy Schubert #define T_Minclock 351 425*276da39aSCy Schubert #define T_Mindepth 352 426*276da39aSCy Schubert #define T_Mindist 353 427*276da39aSCy Schubert #define T_Minimum 354 428*276da39aSCy Schubert #define T_Minpoll 355 429*276da39aSCy Schubert #define T_Minsane 356 430*276da39aSCy Schubert #define T_Mode 357 431*276da39aSCy Schubert #define T_Mode7 358 432*276da39aSCy Schubert #define T_Monitor 359 433*276da39aSCy Schubert #define T_Month 360 434*276da39aSCy Schubert #define T_Mru 361 435*276da39aSCy Schubert #define T_Multicastclient 362 436*276da39aSCy Schubert #define T_Nic 363 437*276da39aSCy Schubert #define T_Nolink 364 438*276da39aSCy Schubert #define T_Nomodify 365 439*276da39aSCy Schubert #define T_Nomrulist 366 440*276da39aSCy Schubert #define T_None 367 441*276da39aSCy Schubert #define T_Nonvolatile 368 442*276da39aSCy Schubert #define T_Nopeer 369 443*276da39aSCy Schubert #define T_Noquery 370 444*276da39aSCy Schubert #define T_Noselect 371 445*276da39aSCy Schubert #define T_Noserve 372 446*276da39aSCy Schubert #define T_Notrap 373 447*276da39aSCy Schubert #define T_Notrust 374 448*276da39aSCy Schubert #define T_Ntp 375 449*276da39aSCy Schubert #define T_Ntpport 376 450*276da39aSCy Schubert #define T_NtpSignDsocket 377 451*276da39aSCy Schubert #define T_Orphan 378 452*276da39aSCy Schubert #define T_Orphanwait 379 453*276da39aSCy Schubert #define T_Panic 380 454*276da39aSCy Schubert #define T_Peer 381 455*276da39aSCy Schubert #define T_Peerstats 382 456*276da39aSCy Schubert #define T_Phone 383 457*276da39aSCy Schubert #define T_Pid 384 458*276da39aSCy Schubert #define T_Pidfile 385 459*276da39aSCy Schubert #define T_Pool 386 460*276da39aSCy Schubert #define T_Port 387 461*276da39aSCy Schubert #define T_Preempt 388 462*276da39aSCy Schubert #define T_Prefer 389 463*276da39aSCy Schubert #define T_Protostats 390 464*276da39aSCy Schubert #define T_Pw 391 465*276da39aSCy Schubert #define T_Randfile 392 466*276da39aSCy Schubert #define T_Rawstats 393 467*276da39aSCy Schubert #define T_Refid 394 468*276da39aSCy Schubert #define T_Requestkey 395 469*276da39aSCy Schubert #define T_Reset 396 470*276da39aSCy Schubert #define T_Restrict 397 471*276da39aSCy Schubert #define T_Revoke 398 472*276da39aSCy Schubert #define T_Rlimit 399 473*276da39aSCy Schubert #define T_Saveconfigdir 400 474*276da39aSCy Schubert #define T_Server 401 475*276da39aSCy Schubert #define T_Setvar 402 476*276da39aSCy Schubert #define T_Source 403 477*276da39aSCy Schubert #define T_Stacksize 404 478*276da39aSCy Schubert #define T_Statistics 405 479*276da39aSCy Schubert #define T_Stats 406 480*276da39aSCy Schubert #define T_Statsdir 407 481*276da39aSCy Schubert #define T_Step 408 482*276da39aSCy Schubert #define T_Stepback 409 483*276da39aSCy Schubert #define T_Stepfwd 410 484*276da39aSCy Schubert #define T_Stepout 411 485*276da39aSCy Schubert #define T_Stratum 412 486*276da39aSCy Schubert #define T_String 413 487*276da39aSCy Schubert #define T_Sys 414 488*276da39aSCy Schubert #define T_Sysstats 415 489*276da39aSCy Schubert #define T_Tick 416 490*276da39aSCy Schubert #define T_Time1 417 491*276da39aSCy Schubert #define T_Time2 418 492*276da39aSCy Schubert #define T_Timer 419 493*276da39aSCy Schubert #define T_Timingstats 420 494*276da39aSCy Schubert #define T_Tinker 421 495*276da39aSCy Schubert #define T_Tos 422 496*276da39aSCy Schubert #define T_Trap 423 497*276da39aSCy Schubert #define T_True 424 498*276da39aSCy Schubert #define T_Trustedkey 425 499*276da39aSCy Schubert #define T_Ttl 426 500*276da39aSCy Schubert #define T_Type 427 501*276da39aSCy Schubert #define T_U_int 428 502*276da39aSCy Schubert #define T_Unconfig 429 503*276da39aSCy Schubert #define T_Unpeer 430 504*276da39aSCy Schubert #define T_Version 431 505*276da39aSCy Schubert #define T_WanderThreshold 432 506*276da39aSCy Schubert #define T_Week 433 507*276da39aSCy Schubert #define T_Wildcard 434 508*276da39aSCy Schubert #define T_Xleave 435 509*276da39aSCy Schubert #define T_Year 436 510*276da39aSCy Schubert #define T_Flag 437 511*276da39aSCy Schubert #define T_EOC 438 512*276da39aSCy Schubert #define T_Simulate 439 513*276da39aSCy Schubert #define T_Beep_Delay 440 514*276da39aSCy Schubert #define T_Sim_Duration 441 515*276da39aSCy Schubert #define T_Server_Offset 442 516*276da39aSCy Schubert #define T_Duration 443 517*276da39aSCy Schubert #define T_Freq_Offset 444 518*276da39aSCy Schubert #define T_Wander 445 519*276da39aSCy Schubert #define T_Jitter 446 520*276da39aSCy Schubert #define T_Prop_Delay 447 521*276da39aSCy Schubert #define T_Proc_Delay 448 5222b15cb3dSCy Schubert 523*276da39aSCy Schubert 524*276da39aSCy Schubert 5252b15cb3dSCy Schubert #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 526*276da39aSCy Schubert typedef union YYSTYPE 5272b15cb3dSCy Schubert { 528*276da39aSCy Schubert /* Line 387 of yacc.c */ 529*276da39aSCy Schubert #line 51 "../../ntpd/ntp_parser.y" 5302b15cb3dSCy Schubert 5312b15cb3dSCy Schubert char * String; 5322b15cb3dSCy Schubert double Double; 5332b15cb3dSCy Schubert int Integer; 5342b15cb3dSCy Schubert unsigned U_int; 5352b15cb3dSCy Schubert gen_fifo * Generic_fifo; 5362b15cb3dSCy Schubert attr_val * Attr_val; 5372b15cb3dSCy Schubert attr_val_fifo * Attr_val_fifo; 5382b15cb3dSCy Schubert int_fifo * Int_fifo; 5392b15cb3dSCy Schubert string_fifo * String_fifo; 5402b15cb3dSCy Schubert address_node * Address_node; 5412b15cb3dSCy Schubert address_fifo * Address_fifo; 5422b15cb3dSCy Schubert setvar_node * Set_var; 5432b15cb3dSCy Schubert server_info * Sim_server; 5442b15cb3dSCy Schubert server_info_fifo * Sim_server_fifo; 5452b15cb3dSCy Schubert script_info * Sim_script; 5462b15cb3dSCy Schubert script_info_fifo * Sim_script_fifo; 5472b15cb3dSCy Schubert 548*276da39aSCy Schubert 549*276da39aSCy Schubert /* Line 387 of yacc.c */ 550*276da39aSCy Schubert #line 551 "ntp_parser.c" 551*276da39aSCy Schubert } YYSTYPE; 5522b15cb3dSCy Schubert # define YYSTYPE_IS_TRIVIAL 1 553*276da39aSCy Schubert # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 5542b15cb3dSCy Schubert # define YYSTYPE_IS_DECLARED 1 5552b15cb3dSCy Schubert #endif 5562b15cb3dSCy Schubert 5572b15cb3dSCy Schubert extern YYSTYPE yylval; 5582b15cb3dSCy Schubert 559*276da39aSCy Schubert #ifdef YYPARSE_PARAM 560*276da39aSCy Schubert #if defined __STDC__ || defined __cplusplus 561*276da39aSCy Schubert int yyparse (void *YYPARSE_PARAM); 562*276da39aSCy Schubert #else 563*276da39aSCy Schubert int yyparse (); 564*276da39aSCy Schubert #endif 565*276da39aSCy Schubert #else /* ! YYPARSE_PARAM */ 566*276da39aSCy Schubert #if defined __STDC__ || defined __cplusplus 567*276da39aSCy Schubert int yyparse (void); 568*276da39aSCy Schubert #else 569*276da39aSCy Schubert int yyparse (); 570*276da39aSCy Schubert #endif 571*276da39aSCy Schubert #endif /* ! YYPARSE_PARAM */ 5722b15cb3dSCy Schubert 573*276da39aSCy Schubert #endif /* !YY_YY_NTP_PARSER_H_INCLUDED */ 5742b15cb3dSCy Schubert 5752b15cb3dSCy Schubert /* Copy the second part of user declarations. */ 5762b15cb3dSCy Schubert 577*276da39aSCy Schubert /* Line 390 of yacc.c */ 578*276da39aSCy Schubert #line 579 "ntp_parser.c" 5792b15cb3dSCy Schubert 5802b15cb3dSCy Schubert #ifdef short 5812b15cb3dSCy Schubert # undef short 5822b15cb3dSCy Schubert #endif 5832b15cb3dSCy Schubert 5842b15cb3dSCy Schubert #ifdef YYTYPE_UINT8 5852b15cb3dSCy Schubert typedef YYTYPE_UINT8 yytype_uint8; 5862b15cb3dSCy Schubert #else 5872b15cb3dSCy Schubert typedef unsigned char yytype_uint8; 5882b15cb3dSCy Schubert #endif 5892b15cb3dSCy Schubert 5902b15cb3dSCy Schubert #ifdef YYTYPE_INT8 5912b15cb3dSCy Schubert typedef YYTYPE_INT8 yytype_int8; 592*276da39aSCy Schubert #elif (defined __STDC__ || defined __C99__FUNC__ \ 593*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 5942b15cb3dSCy Schubert typedef signed char yytype_int8; 595*276da39aSCy Schubert #else 596*276da39aSCy Schubert typedef short int yytype_int8; 5972b15cb3dSCy Schubert #endif 5982b15cb3dSCy Schubert 5992b15cb3dSCy Schubert #ifdef YYTYPE_UINT16 6002b15cb3dSCy Schubert typedef YYTYPE_UINT16 yytype_uint16; 6012b15cb3dSCy Schubert #else 6022b15cb3dSCy Schubert typedef unsigned short int yytype_uint16; 6032b15cb3dSCy Schubert #endif 6042b15cb3dSCy Schubert 6052b15cb3dSCy Schubert #ifdef YYTYPE_INT16 6062b15cb3dSCy Schubert typedef YYTYPE_INT16 yytype_int16; 6072b15cb3dSCy Schubert #else 6082b15cb3dSCy Schubert typedef short int yytype_int16; 6092b15cb3dSCy Schubert #endif 6102b15cb3dSCy Schubert 6112b15cb3dSCy Schubert #ifndef YYSIZE_T 6122b15cb3dSCy Schubert # ifdef __SIZE_TYPE__ 6132b15cb3dSCy Schubert # define YYSIZE_T __SIZE_TYPE__ 6142b15cb3dSCy Schubert # elif defined size_t 6152b15cb3dSCy Schubert # define YYSIZE_T size_t 616*276da39aSCy Schubert # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ 617*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 6182b15cb3dSCy Schubert # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 6192b15cb3dSCy Schubert # define YYSIZE_T size_t 6202b15cb3dSCy Schubert # else 6212b15cb3dSCy Schubert # define YYSIZE_T unsigned int 6222b15cb3dSCy Schubert # endif 6232b15cb3dSCy Schubert #endif 6242b15cb3dSCy Schubert 6252b15cb3dSCy Schubert #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 6262b15cb3dSCy Schubert 6272b15cb3dSCy Schubert #ifndef YY_ 6282b15cb3dSCy Schubert # if defined YYENABLE_NLS && YYENABLE_NLS 6292b15cb3dSCy Schubert # if ENABLE_NLS 6302b15cb3dSCy Schubert # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ 6312b15cb3dSCy Schubert # define YY_(Msgid) dgettext ("bison-runtime", Msgid) 6322b15cb3dSCy Schubert # endif 6332b15cb3dSCy Schubert # endif 6342b15cb3dSCy Schubert # ifndef YY_ 6352b15cb3dSCy Schubert # define YY_(Msgid) Msgid 6362b15cb3dSCy Schubert # endif 6372b15cb3dSCy Schubert #endif 6382b15cb3dSCy Schubert 639*276da39aSCy Schubert #ifndef __attribute__ 640*276da39aSCy Schubert /* This feature is available in gcc versions 2.5 and later. */ 641*276da39aSCy Schubert # if (! defined __GNUC__ || __GNUC__ < 2 \ 642*276da39aSCy Schubert || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) 643*276da39aSCy Schubert # define __attribute__(Spec) /* empty */ 6442b15cb3dSCy Schubert # endif 6452b15cb3dSCy Schubert #endif 6462b15cb3dSCy Schubert 6472b15cb3dSCy Schubert /* Suppress unused-variable warnings by "using" E. */ 6482b15cb3dSCy Schubert #if ! defined lint || defined __GNUC__ 6492b15cb3dSCy Schubert # define YYUSE(E) ((void) (E)) 6502b15cb3dSCy Schubert #else 6512b15cb3dSCy Schubert # define YYUSE(E) /* empty */ 6522b15cb3dSCy Schubert #endif 6532b15cb3dSCy Schubert 6542b15cb3dSCy Schubert 655*276da39aSCy Schubert /* Identity function, used to suppress warnings about constant conditions. */ 656*276da39aSCy Schubert #ifndef lint 657*276da39aSCy Schubert # define YYID(N) (N) 658*276da39aSCy Schubert #else 659*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 660*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 661*276da39aSCy Schubert static int 662*276da39aSCy Schubert YYID (int yyi) 663*276da39aSCy Schubert #else 664*276da39aSCy Schubert static int 665*276da39aSCy Schubert YYID (yyi) 666*276da39aSCy Schubert int yyi; 667*276da39aSCy Schubert #endif 668*276da39aSCy Schubert { 669*276da39aSCy Schubert return yyi; 670*276da39aSCy Schubert } 671*276da39aSCy Schubert #endif 6722b15cb3dSCy Schubert 6732b15cb3dSCy Schubert #if ! defined yyoverflow || YYERROR_VERBOSE 6742b15cb3dSCy Schubert 6752b15cb3dSCy Schubert /* The parser invokes alloca or malloc; define the necessary symbols. */ 6762b15cb3dSCy Schubert 6772b15cb3dSCy Schubert # ifdef YYSTACK_USE_ALLOCA 6782b15cb3dSCy Schubert # if YYSTACK_USE_ALLOCA 6792b15cb3dSCy Schubert # ifdef __GNUC__ 6802b15cb3dSCy Schubert # define YYSTACK_ALLOC __builtin_alloca 6812b15cb3dSCy Schubert # elif defined __BUILTIN_VA_ARG_INCR 6822b15cb3dSCy Schubert # include <alloca.h> /* INFRINGES ON USER NAME SPACE */ 6832b15cb3dSCy Schubert # elif defined _AIX 6842b15cb3dSCy Schubert # define YYSTACK_ALLOC __alloca 6852b15cb3dSCy Schubert # elif defined _MSC_VER 6862b15cb3dSCy Schubert # include <malloc.h> /* INFRINGES ON USER NAME SPACE */ 6872b15cb3dSCy Schubert # define alloca _alloca 6882b15cb3dSCy Schubert # else 6892b15cb3dSCy Schubert # define YYSTACK_ALLOC alloca 690*276da39aSCy Schubert # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 691*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 6922b15cb3dSCy Schubert # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 6932b15cb3dSCy Schubert /* Use EXIT_SUCCESS as a witness for stdlib.h. */ 6942b15cb3dSCy Schubert # ifndef EXIT_SUCCESS 6952b15cb3dSCy Schubert # define EXIT_SUCCESS 0 6962b15cb3dSCy Schubert # endif 6972b15cb3dSCy Schubert # endif 6982b15cb3dSCy Schubert # endif 6992b15cb3dSCy Schubert # endif 7002b15cb3dSCy Schubert # endif 7012b15cb3dSCy Schubert 7022b15cb3dSCy Schubert # ifdef YYSTACK_ALLOC 703*276da39aSCy Schubert /* Pacify GCC's `empty if-body' warning. */ 704*276da39aSCy Schubert # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) 7052b15cb3dSCy Schubert # ifndef YYSTACK_ALLOC_MAXIMUM 7062b15cb3dSCy Schubert /* The OS might guarantee only one guard page at the bottom of the stack, 7072b15cb3dSCy Schubert and a page size can be as small as 4096 bytes. So we cannot safely 7082b15cb3dSCy Schubert invoke alloca (N) if N exceeds 4096. Use a slightly smaller number 7092b15cb3dSCy Schubert to allow for a few compiler-allocated temporary stack slots. */ 7102b15cb3dSCy Schubert # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ 7112b15cb3dSCy Schubert # endif 7122b15cb3dSCy Schubert # else 7132b15cb3dSCy Schubert # define YYSTACK_ALLOC YYMALLOC 7142b15cb3dSCy Schubert # define YYSTACK_FREE YYFREE 7152b15cb3dSCy Schubert # ifndef YYSTACK_ALLOC_MAXIMUM 7162b15cb3dSCy Schubert # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 7172b15cb3dSCy Schubert # endif 7182b15cb3dSCy Schubert # if (defined __cplusplus && ! defined EXIT_SUCCESS \ 7192b15cb3dSCy Schubert && ! ((defined YYMALLOC || defined malloc) \ 7202b15cb3dSCy Schubert && (defined YYFREE || defined free))) 7212b15cb3dSCy Schubert # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 7222b15cb3dSCy Schubert # ifndef EXIT_SUCCESS 7232b15cb3dSCy Schubert # define EXIT_SUCCESS 0 7242b15cb3dSCy Schubert # endif 7252b15cb3dSCy Schubert # endif 7262b15cb3dSCy Schubert # ifndef YYMALLOC 7272b15cb3dSCy Schubert # define YYMALLOC malloc 728*276da39aSCy Schubert # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 729*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 7302b15cb3dSCy Schubert void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ 7312b15cb3dSCy Schubert # endif 7322b15cb3dSCy Schubert # endif 7332b15cb3dSCy Schubert # ifndef YYFREE 7342b15cb3dSCy Schubert # define YYFREE free 735*276da39aSCy Schubert # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 736*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 7372b15cb3dSCy Schubert void free (void *); /* INFRINGES ON USER NAME SPACE */ 7382b15cb3dSCy Schubert # endif 7392b15cb3dSCy Schubert # endif 7402b15cb3dSCy Schubert # endif 7412b15cb3dSCy Schubert #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ 7422b15cb3dSCy Schubert 7432b15cb3dSCy Schubert 7442b15cb3dSCy Schubert #if (! defined yyoverflow \ 7452b15cb3dSCy Schubert && (! defined __cplusplus \ 7462b15cb3dSCy Schubert || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 7472b15cb3dSCy Schubert 7482b15cb3dSCy Schubert /* A type that is properly aligned for any stack member. */ 7492b15cb3dSCy Schubert union yyalloc 7502b15cb3dSCy Schubert { 7512b15cb3dSCy Schubert yytype_int16 yyss_alloc; 7522b15cb3dSCy Schubert YYSTYPE yyvs_alloc; 7532b15cb3dSCy Schubert }; 7542b15cb3dSCy Schubert 7552b15cb3dSCy Schubert /* The size of the maximum gap between one aligned stack and the next. */ 7562b15cb3dSCy Schubert # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 7572b15cb3dSCy Schubert 7582b15cb3dSCy Schubert /* The size of an array large to enough to hold all stacks, each with 7592b15cb3dSCy Schubert N elements. */ 7602b15cb3dSCy Schubert # define YYSTACK_BYTES(N) \ 7612b15cb3dSCy Schubert ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ 7622b15cb3dSCy Schubert + YYSTACK_GAP_MAXIMUM) 7632b15cb3dSCy Schubert 7642b15cb3dSCy Schubert # define YYCOPY_NEEDED 1 7652b15cb3dSCy Schubert 7662b15cb3dSCy Schubert /* Relocate STACK from its old location to the new one. The 7672b15cb3dSCy Schubert local variables YYSIZE and YYSTACKSIZE give the old and new number of 7682b15cb3dSCy Schubert elements in the stack, and YYPTR gives the new location of the 7692b15cb3dSCy Schubert stack. Advance YYPTR to a properly aligned location for the next 7702b15cb3dSCy Schubert stack. */ 7712b15cb3dSCy Schubert # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ 7722b15cb3dSCy Schubert do \ 7732b15cb3dSCy Schubert { \ 7742b15cb3dSCy Schubert YYSIZE_T yynewbytes; \ 7752b15cb3dSCy Schubert YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ 7762b15cb3dSCy Schubert Stack = &yyptr->Stack_alloc; \ 7772b15cb3dSCy Schubert yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 7782b15cb3dSCy Schubert yyptr += yynewbytes / sizeof (*yyptr); \ 7792b15cb3dSCy Schubert } \ 780*276da39aSCy Schubert while (YYID (0)) 7812b15cb3dSCy Schubert 7822b15cb3dSCy Schubert #endif 7832b15cb3dSCy Schubert 7842b15cb3dSCy Schubert #if defined YYCOPY_NEEDED && YYCOPY_NEEDED 7852b15cb3dSCy Schubert /* Copy COUNT objects from SRC to DST. The source and destination do 7862b15cb3dSCy Schubert not overlap. */ 7872b15cb3dSCy Schubert # ifndef YYCOPY 7882b15cb3dSCy Schubert # if defined __GNUC__ && 1 < __GNUC__ 7892b15cb3dSCy Schubert # define YYCOPY(Dst, Src, Count) \ 7902b15cb3dSCy Schubert __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) 7912b15cb3dSCy Schubert # else 7922b15cb3dSCy Schubert # define YYCOPY(Dst, Src, Count) \ 7932b15cb3dSCy Schubert do \ 7942b15cb3dSCy Schubert { \ 7952b15cb3dSCy Schubert YYSIZE_T yyi; \ 7962b15cb3dSCy Schubert for (yyi = 0; yyi < (Count); yyi++) \ 7972b15cb3dSCy Schubert (Dst)[yyi] = (Src)[yyi]; \ 7982b15cb3dSCy Schubert } \ 799*276da39aSCy Schubert while (YYID (0)) 8002b15cb3dSCy Schubert # endif 8012b15cb3dSCy Schubert # endif 8022b15cb3dSCy Schubert #endif /* !YYCOPY_NEEDED */ 8032b15cb3dSCy Schubert 8042b15cb3dSCy Schubert /* YYFINAL -- State number of the termination state. */ 805*276da39aSCy Schubert #define YYFINAL 210 8062b15cb3dSCy Schubert /* YYLAST -- Last index in YYTABLE. */ 807*276da39aSCy Schubert #define YYLAST 647 8082b15cb3dSCy Schubert 8092b15cb3dSCy Schubert /* YYNTOKENS -- Number of terminals. */ 810*276da39aSCy Schubert #define YYNTOKENS 199 8112b15cb3dSCy Schubert /* YYNNTS -- Number of nonterminals. */ 812*276da39aSCy Schubert #define YYNNTS 105 8132b15cb3dSCy Schubert /* YYNRULES -- Number of rules. */ 814*276da39aSCy Schubert #define YYNRULES 313 815*276da39aSCy Schubert /* YYNRULES -- Number of states. */ 816*276da39aSCy Schubert #define YYNSTATES 419 8172b15cb3dSCy Schubert 818*276da39aSCy Schubert /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ 8192b15cb3dSCy Schubert #define YYUNDEFTOK 2 820*276da39aSCy Schubert #define YYMAXUTOK 448 8212b15cb3dSCy Schubert 8222b15cb3dSCy Schubert #define YYTRANSLATE(YYX) \ 8232b15cb3dSCy Schubert ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 8242b15cb3dSCy Schubert 825*276da39aSCy Schubert /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ 8262b15cb3dSCy Schubert static const yytype_uint8 yytranslate[] = 8272b15cb3dSCy Schubert { 8282b15cb3dSCy Schubert 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8292b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8302b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8312b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 832*276da39aSCy Schubert 195, 196, 2, 2, 2, 2, 2, 2, 2, 2, 8332b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 834*276da39aSCy Schubert 2, 194, 2, 2, 2, 2, 2, 2, 2, 2, 8352b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8362b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8372b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8382b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8392b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 840*276da39aSCy Schubert 2, 2, 2, 197, 2, 198, 2, 2, 2, 2, 8412b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8422b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8432b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8442b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8452b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8462b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8472b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8482b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8492b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8502b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8512b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8522b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8532b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 8542b15cb3dSCy Schubert 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 8552b15cb3dSCy Schubert 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 8562b15cb3dSCy Schubert 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 8572b15cb3dSCy Schubert 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 8582b15cb3dSCy Schubert 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 8592b15cb3dSCy Schubert 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 8602b15cb3dSCy Schubert 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 8612b15cb3dSCy Schubert 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 8622b15cb3dSCy Schubert 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 8632b15cb3dSCy Schubert 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 8642b15cb3dSCy Schubert 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 8652b15cb3dSCy Schubert 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 8662b15cb3dSCy Schubert 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 8672b15cb3dSCy Schubert 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 8682b15cb3dSCy Schubert 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 8692b15cb3dSCy Schubert 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 8702b15cb3dSCy Schubert 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 8712b15cb3dSCy Schubert 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 872*276da39aSCy Schubert 185, 186, 187, 188, 189, 190, 191, 192, 193 8732b15cb3dSCy Schubert }; 8742b15cb3dSCy Schubert 8752b15cb3dSCy Schubert #if YYDEBUG 876*276da39aSCy Schubert /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in 877*276da39aSCy Schubert YYRHS. */ 878*276da39aSCy Schubert static const yytype_uint16 yyprhs[] = 879*276da39aSCy Schubert { 880*276da39aSCy Schubert 0, 0, 3, 5, 9, 12, 15, 16, 18, 20, 881*276da39aSCy Schubert 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 882*276da39aSCy Schubert 42, 46, 48, 50, 52, 54, 56, 58, 61, 63, 883*276da39aSCy Schubert 65, 67, 68, 71, 73, 75, 77, 79, 81, 83, 884*276da39aSCy Schubert 85, 87, 89, 91, 93, 95, 98, 101, 103, 105, 885*276da39aSCy Schubert 107, 109, 111, 113, 116, 118, 121, 123, 125, 127, 886*276da39aSCy Schubert 130, 133, 136, 139, 142, 145, 148, 151, 154, 157, 887*276da39aSCy Schubert 160, 163, 164, 167, 170, 173, 175, 177, 179, 181, 888*276da39aSCy Schubert 183, 186, 189, 191, 194, 197, 200, 202, 204, 206, 889*276da39aSCy Schubert 208, 210, 212, 214, 216, 218, 220, 223, 226, 230, 890*276da39aSCy Schubert 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 891*276da39aSCy Schubert 252, 255, 258, 261, 263, 265, 267, 269, 271, 273, 892*276da39aSCy Schubert 275, 277, 279, 281, 283, 285, 287, 290, 293, 297, 893*276da39aSCy Schubert 303, 307, 312, 317, 321, 322, 325, 327, 329, 331, 894*276da39aSCy Schubert 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 895*276da39aSCy Schubert 353, 355, 358, 360, 363, 365, 367, 369, 372, 374, 896*276da39aSCy Schubert 377, 379, 381, 383, 385, 387, 389, 391, 393, 397, 897*276da39aSCy Schubert 400, 402, 405, 408, 411, 414, 417, 419, 421, 423, 898*276da39aSCy Schubert 425, 427, 429, 432, 435, 437, 440, 442, 444, 446, 899*276da39aSCy Schubert 449, 452, 455, 457, 459, 461, 463, 465, 467, 469, 900*276da39aSCy Schubert 471, 473, 475, 477, 480, 483, 485, 488, 490, 492, 901*276da39aSCy Schubert 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 902*276da39aSCy Schubert 515, 518, 521, 524, 528, 530, 533, 536, 539, 542, 903*276da39aSCy Schubert 546, 549, 551, 553, 555, 557, 559, 561, 563, 565, 904*276da39aSCy Schubert 567, 569, 571, 574, 575, 580, 582, 583, 584, 587, 905*276da39aSCy Schubert 590, 593, 596, 598, 600, 604, 608, 610, 612, 614, 906*276da39aSCy Schubert 616, 618, 620, 622, 624, 626, 629, 632, 634, 636, 907*276da39aSCy Schubert 638, 640, 642, 644, 646, 648, 651, 653, 656, 658, 908*276da39aSCy Schubert 660, 662, 668, 671, 673, 676, 678, 680, 682, 684, 909*276da39aSCy Schubert 686, 688, 694, 696, 700, 703, 707, 709, 711, 714, 910*276da39aSCy Schubert 716, 722, 727, 731, 734, 736, 743, 747, 750, 754, 911*276da39aSCy Schubert 756, 758, 760, 762 912*276da39aSCy Schubert }; 913*276da39aSCy Schubert 914*276da39aSCy Schubert /* YYRHS -- A `-1'-separated list of the rules' RHS. */ 915*276da39aSCy Schubert static const yytype_int16 yyrhs[] = 916*276da39aSCy Schubert { 917*276da39aSCy Schubert 200, 0, -1, 201, -1, 201, 202, 183, -1, 202, 918*276da39aSCy Schubert 183, -1, 1, 183, -1, -1, 203, -1, 216, -1, 919*276da39aSCy Schubert 218, -1, 219, -1, 228, -1, 236, -1, 223, -1, 920*276da39aSCy Schubert 245, -1, 250, -1, 254, -1, 259, -1, 263, -1, 921*276da39aSCy Schubert 290, -1, 204, 205, 208, -1, 146, -1, 131, -1, 922*276da39aSCy Schubert 126, -1, 14, -1, 84, -1, 206, -1, 207, 158, 923*276da39aSCy Schubert -1, 158, -1, 66, -1, 68, -1, -1, 208, 209, 924*276da39aSCy Schubert -1, 210, -1, 212, -1, 214, -1, 211, -1, 9, 925*276da39aSCy Schubert -1, 17, -1, 53, -1, 116, -1, 133, -1, 134, 926*276da39aSCy Schubert -1, 169, -1, 180, -1, 213, 61, -1, 213, 173, 927*276da39aSCy Schubert -1, 70, -1, 100, -1, 92, -1, 171, -1, 102, 928*276da39aSCy Schubert -1, 176, -1, 215, 158, -1, 54, -1, 217, 205, 929*276da39aSCy Schubert -1, 174, -1, 175, -1, 15, -1, 85, 287, -1, 930*276da39aSCy Schubert 107, 287, -1, 93, 61, -1, 10, 61, -1, 22, 931*276da39aSCy Schubert 61, -1, 23, 220, -1, 71, 158, -1, 72, 158, 932*276da39aSCy Schubert -1, 140, 61, -1, 143, 61, -1, 170, 283, -1, 933*276da39aSCy Schubert 122, 158, -1, -1, 220, 221, -1, 222, 158, -1, 934*276da39aSCy Schubert 143, 61, -1, 51, -1, 54, -1, 136, -1, 137, 935*276da39aSCy Schubert -1, 28, -1, 167, 224, -1, 224, 225, -1, 225, 936*276da39aSCy Schubert -1, 226, 61, -1, 227, 289, -1, 21, 288, -1, 937*276da39aSCy Schubert 19, -1, 48, -1, 123, -1, 124, -1, 101, -1, 938*276da39aSCy Schubert 13, -1, 98, -1, 90, -1, 96, -1, 88, -1, 939*276da39aSCy Schubert 150, 229, -1, 152, 158, -1, 41, 230, 231, -1, 940*276da39aSCy Schubert 229, 230, -1, 230, -1, 20, -1, 24, -1, 82, 941*276da39aSCy Schubert -1, 127, -1, 138, -1, 160, -1, 165, -1, 135, 942*276da39aSCy Schubert -1, -1, 231, 232, -1, 40, 158, -1, 172, 235, 943*276da39aSCy Schubert -1, 233, -1, 234, -1, 78, -1, 109, -1, 37, 944*276da39aSCy Schubert -1, 29, -1, 112, -1, 129, -1, 26, -1, 178, 945*276da39aSCy Schubert -1, 105, -1, 181, -1, 4, -1, 30, 239, -1, 946*276da39aSCy Schubert 106, 242, -1, 142, 205, 237, -1, 142, 206, 86, 947*276da39aSCy Schubert 206, 237, -1, 142, 27, 237, -1, 142, 66, 27, 948*276da39aSCy Schubert 237, -1, 142, 68, 27, 237, -1, 142, 148, 237, 949*276da39aSCy Schubert -1, -1, 237, 238, -1, 47, -1, 55, -1, 73, 950*276da39aSCy Schubert -1, 74, -1, 77, -1, 83, -1, 110, -1, 111, 951*276da39aSCy Schubert -1, 114, -1, 115, -1, 117, -1, 118, -1, 119, 952*276da39aSCy Schubert -1, 121, -1, 176, -1, 239, 240, -1, 240, -1, 953*276da39aSCy Schubert 241, 61, -1, 11, -1, 99, -1, 104, -1, 242, 954*276da39aSCy Schubert 243, -1, 243, -1, 244, 61, -1, 56, -1, 57, 955*276da39aSCy Schubert -1, 58, -1, 59, -1, 87, -1, 89, -1, 91, 956*276da39aSCy Schubert -1, 97, -1, 50, 205, 246, -1, 246, 247, -1, 957*276da39aSCy Schubert 247, -1, 248, 289, -1, 249, 288, -1, 157, 61, 958*276da39aSCy Schubert -1, 3, 158, -1, 139, 158, -1, 162, -1, 163, 959*276da39aSCy Schubert -1, 43, -1, 44, -1, 45, -1, 46, -1, 144, 960*276da39aSCy Schubert 251, -1, 251, 252, -1, 252, -1, 253, 61, -1, 961*276da39aSCy Schubert 95, -1, 149, -1, 42, -1, 37, 255, -1, 29, 962*276da39aSCy Schubert 255, -1, 255, 256, -1, 256, -1, 257, -1, 258, 963*276da39aSCy Schubert -1, 8, -1, 12, -1, 18, -1, 69, -1, 104, 964*276da39aSCy Schubert -1, 120, -1, 103, -1, 151, -1, 166, 260, -1, 965*276da39aSCy Schubert 260, 261, -1, 261, -1, 262, 289, -1, 6, -1, 966*276da39aSCy Schubert 31, -1, 49, -1, 52, -1, 125, -1, 153, -1, 967*276da39aSCy Schubert 154, -1, 155, -1, 156, -1, 161, -1, 275, -1, 968*276da39aSCy Schubert 279, -1, 264, 289, -1, 265, 61, -1, 266, 158, 969*276da39aSCy Schubert -1, 267, 158, -1, 60, 158, 202, -1, 38, -1, 970*276da39aSCy Schubert 33, 268, -1, 80, 273, -1, 128, 286, -1, 147, 971*276da39aSCy Schubert 269, -1, 168, 206, 271, -1, 171, 282, -1, 16, 972*276da39aSCy Schubert -1, 113, -1, 161, -1, 35, -1, 76, -1, 54, 973*276da39aSCy Schubert -1, 75, -1, 130, -1, 81, -1, 145, -1, 158, 974*276da39aSCy Schubert -1, 158, 32, -1, -1, 158, 194, 158, 270, -1, 975*276da39aSCy Schubert 27, -1, -1, -1, 271, 272, -1, 132, 61, -1, 976*276da39aSCy Schubert 62, 206, -1, 273, 274, -1, 274, -1, 158, -1, 977*276da39aSCy Schubert 276, 278, 277, -1, 276, 278, 158, -1, 62, -1, 978*276da39aSCy Schubert 108, -1, 5, -1, 65, -1, 67, -1, 179, -1, 979*276da39aSCy Schubert 79, -1, 55, -1, 34, -1, 141, 280, -1, 280, 980*276da39aSCy Schubert 281, -1, 281, -1, 7, -1, 8, -1, 25, -1, 981*276da39aSCy Schubert 64, -1, 94, -1, 159, -1, 164, -1, 282, 61, 982*276da39aSCy Schubert -1, 61, -1, 283, 284, -1, 284, -1, 61, -1, 983*276da39aSCy Schubert 285, -1, 195, 61, 36, 61, 196, -1, 286, 158, 984*276da39aSCy Schubert -1, 158, -1, 287, 205, -1, 205, -1, 61, -1, 985*276da39aSCy Schubert 169, -1, 39, -1, 61, -1, 32, -1, 291, 197, 986*276da39aSCy Schubert 292, 295, 198, -1, 184, -1, 292, 293, 183, -1, 987*276da39aSCy Schubert 293, 183, -1, 294, 194, 289, -1, 185, -1, 186, 988*276da39aSCy Schubert -1, 295, 296, -1, 296, -1, 298, 197, 297, 299, 989*276da39aSCy Schubert 198, -1, 187, 194, 289, 183, -1, 146, 194, 205, 990*276da39aSCy Schubert -1, 299, 300, -1, 300, -1, 188, 194, 289, 197, 991*276da39aSCy Schubert 301, 198, -1, 301, 302, 183, -1, 302, 183, -1, 992*276da39aSCy Schubert 303, 194, 289, -1, 189, -1, 190, -1, 191, -1, 993*276da39aSCy Schubert 192, -1, 193, -1 994*276da39aSCy Schubert }; 995*276da39aSCy Schubert 996*276da39aSCy Schubert /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 9972b15cb3dSCy Schubert static const yytype_uint16 yyrline[] = 9982b15cb3dSCy Schubert { 999*276da39aSCy Schubert 0, 366, 366, 370, 371, 372, 387, 388, 389, 390, 1000*276da39aSCy Schubert 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 1001*276da39aSCy Schubert 408, 418, 419, 420, 421, 422, 426, 427, 432, 437, 1002*276da39aSCy Schubert 439, 445, 446, 454, 455, 456, 460, 465, 466, 467, 1003*276da39aSCy Schubert 468, 469, 470, 471, 472, 476, 478, 483, 484, 485, 1004*276da39aSCy Schubert 486, 487, 488, 492, 497, 506, 516, 517, 527, 529, 1005*276da39aSCy Schubert 531, 533, 544, 551, 553, 558, 560, 562, 564, 566, 1006*276da39aSCy Schubert 575, 581, 582, 590, 592, 604, 605, 606, 607, 608, 1007*276da39aSCy Schubert 617, 622, 627, 635, 637, 639, 644, 645, 646, 647, 1008*276da39aSCy Schubert 648, 649, 653, 654, 655, 656, 665, 667, 676, 686, 1009*276da39aSCy Schubert 691, 699, 700, 701, 702, 703, 704, 705, 706, 711, 1010*276da39aSCy Schubert 712, 720, 730, 739, 754, 759, 760, 764, 765, 769, 1011*276da39aSCy Schubert 770, 771, 772, 773, 774, 775, 784, 788, 792, 800, 1012*276da39aSCy Schubert 808, 816, 831, 846, 859, 860, 868, 869, 870, 871, 1013*276da39aSCy Schubert 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 1014*276da39aSCy Schubert 882, 886, 891, 899, 904, 905, 906, 910, 915, 923, 1015*276da39aSCy Schubert 928, 929, 930, 931, 932, 933, 934, 935, 943, 953, 1016*276da39aSCy Schubert 958, 966, 968, 970, 972, 974, 979, 980, 984, 985, 1017*276da39aSCy Schubert 986, 987, 995, 1000, 1005, 1013, 1018, 1019, 1020, 1029, 1018*276da39aSCy Schubert 1031, 1036, 1041, 1049, 1051, 1068, 1069, 1070, 1071, 1072, 1019*276da39aSCy Schubert 1073, 1077, 1078, 1086, 1091, 1096, 1104, 1109, 1110, 1111, 1020*276da39aSCy Schubert 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1127, 1128, 1129, 1021*276da39aSCy Schubert 1136, 1143, 1150, 1166, 1185, 1187, 1189, 1191, 1193, 1195, 1022*276da39aSCy Schubert 1202, 1207, 1208, 1209, 1213, 1217, 1226, 1227, 1228, 1232, 1023*276da39aSCy Schubert 1233, 1237, 1244, 1254, 1263, 1268, 1270, 1275, 1276, 1284, 1024*276da39aSCy Schubert 1286, 1294, 1299, 1307, 1332, 1339, 1349, 1350, 1354, 1355, 1025*276da39aSCy Schubert 1356, 1357, 1361, 1362, 1363, 1367, 1372, 1377, 1385, 1386, 1026*276da39aSCy Schubert 1387, 1388, 1389, 1390, 1391, 1401, 1406, 1414, 1419, 1427, 1027*276da39aSCy Schubert 1429, 1433, 1438, 1443, 1451, 1456, 1464, 1473, 1474, 1478, 1028*276da39aSCy Schubert 1479, 1488, 1506, 1510, 1515, 1523, 1528, 1529, 1533, 1538, 1029*276da39aSCy Schubert 1546, 1551, 1556, 1561, 1566, 1574, 1579, 1584, 1592, 1597, 1030*276da39aSCy Schubert 1598, 1599, 1600, 1601 10312b15cb3dSCy Schubert }; 10322b15cb3dSCy Schubert #endif 10332b15cb3dSCy Schubert 10342b15cb3dSCy Schubert #if YYDEBUG || YYERROR_VERBOSE || 1 10352b15cb3dSCy Schubert /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 10362b15cb3dSCy Schubert First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 10372b15cb3dSCy Schubert static const char *const yytname[] = 10382b15cb3dSCy Schubert { 10392b15cb3dSCy Schubert "$end", "error", "$undefined", "T_Abbrev", "T_Age", "T_All", "T_Allan", 10402b15cb3dSCy Schubert "T_Allpeers", "T_Auth", "T_Autokey", "T_Automax", "T_Average", 10412b15cb3dSCy Schubert "T_Bclient", "T_Beacon", "T_Broadcast", "T_Broadcastclient", 10422b15cb3dSCy Schubert "T_Broadcastdelay", "T_Burst", "T_Calibrate", "T_Ceiling", 10432b15cb3dSCy Schubert "T_Clockstats", "T_Cohort", "T_ControlKey", "T_Crypto", "T_Cryptostats", 10442b15cb3dSCy Schubert "T_Ctl", "T_Day", "T_Default", "T_Digest", "T_Disable", "T_Discard", 1045*276da39aSCy Schubert "T_Dispersion", "T_Double", "T_Driftfile", "T_Drop", "T_Dscp", 1046*276da39aSCy Schubert "T_Ellipsis", "T_Enable", "T_End", "T_False", "T_File", "T_Filegen", 1047*276da39aSCy Schubert "T_Filenum", "T_Flag1", "T_Flag2", "T_Flag3", "T_Flag4", "T_Flake", 1048*276da39aSCy Schubert "T_Floor", "T_Freq", "T_Fudge", "T_Host", "T_Huffpuff", "T_Iburst", 1049*276da39aSCy Schubert "T_Ident", "T_Ignore", "T_Incalloc", "T_Incmem", "T_Initalloc", 1050*276da39aSCy Schubert "T_Initmem", "T_Includefile", "T_Integer", "T_Interface", "T_Intrange", 1051*276da39aSCy Schubert "T_Io", "T_Ipv4", "T_Ipv4_flag", "T_Ipv6", "T_Ipv6_flag", "T_Kernel", 1052*276da39aSCy Schubert "T_Key", "T_Keys", "T_Keysdir", "T_Kod", "T_Mssntp", "T_Leapfile", 1053*276da39aSCy Schubert "T_Leapsmearinterval", "T_Limited", "T_Link", "T_Listen", "T_Logconfig", 1054*276da39aSCy Schubert "T_Logfile", "T_Loopstats", "T_Lowpriotrap", "T_Manycastclient", 1055*276da39aSCy Schubert "T_Manycastserver", "T_Mask", "T_Maxage", "T_Maxclock", "T_Maxdepth", 1056*276da39aSCy Schubert "T_Maxdist", "T_Maxmem", "T_Maxpoll", "T_Mdnstries", "T_Mem", 1057*276da39aSCy Schubert "T_Memlock", "T_Minclock", "T_Mindepth", "T_Mindist", "T_Minimum", 1058*276da39aSCy Schubert "T_Minpoll", "T_Minsane", "T_Mode", "T_Mode7", "T_Monitor", "T_Month", 1059*276da39aSCy Schubert "T_Mru", "T_Multicastclient", "T_Nic", "T_Nolink", "T_Nomodify", 1060*276da39aSCy Schubert "T_Nomrulist", "T_None", "T_Nonvolatile", "T_Nopeer", "T_Noquery", 1061*276da39aSCy Schubert "T_Noselect", "T_Noserve", "T_Notrap", "T_Notrust", "T_Ntp", "T_Ntpport", 10622b15cb3dSCy Schubert "T_NtpSignDsocket", "T_Orphan", "T_Orphanwait", "T_Panic", "T_Peer", 10632b15cb3dSCy Schubert "T_Peerstats", "T_Phone", "T_Pid", "T_Pidfile", "T_Pool", "T_Port", 10642b15cb3dSCy Schubert "T_Preempt", "T_Prefer", "T_Protostats", "T_Pw", "T_Randfile", 10652b15cb3dSCy Schubert "T_Rawstats", "T_Refid", "T_Requestkey", "T_Reset", "T_Restrict", 10662b15cb3dSCy Schubert "T_Revoke", "T_Rlimit", "T_Saveconfigdir", "T_Server", "T_Setvar", 10672b15cb3dSCy Schubert "T_Source", "T_Stacksize", "T_Statistics", "T_Stats", "T_Statsdir", 1068a25439b6SCy Schubert "T_Step", "T_Stepback", "T_Stepfwd", "T_Stepout", "T_Stratum", 1069a25439b6SCy Schubert "T_String", "T_Sys", "T_Sysstats", "T_Tick", "T_Time1", "T_Time2", 1070a25439b6SCy Schubert "T_Timer", "T_Timingstats", "T_Tinker", "T_Tos", "T_Trap", "T_True", 1071a25439b6SCy Schubert "T_Trustedkey", "T_Ttl", "T_Type", "T_U_int", "T_Unconfig", "T_Unpeer", 1072a25439b6SCy Schubert "T_Version", "T_WanderThreshold", "T_Week", "T_Wildcard", "T_Xleave", 1073a25439b6SCy Schubert "T_Year", "T_Flag", "T_EOC", "T_Simulate", "T_Beep_Delay", 1074a25439b6SCy Schubert "T_Sim_Duration", "T_Server_Offset", "T_Duration", "T_Freq_Offset", 1075a25439b6SCy Schubert "T_Wander", "T_Jitter", "T_Prop_Delay", "T_Proc_Delay", "'='", "'('", 1076a25439b6SCy Schubert "')'", "'{'", "'}'", "$accept", "configuration", "command_list", 1077a25439b6SCy Schubert "command", "server_command", "client_type", "address", "ip_address", 1078a25439b6SCy Schubert "address_fam", "option_list", "option", "option_flag", 1079a25439b6SCy Schubert "option_flag_keyword", "option_int", "option_int_keyword", "option_str", 1080a25439b6SCy Schubert "option_str_keyword", "unpeer_command", "unpeer_keyword", 1081a25439b6SCy Schubert "other_mode_command", "authentication_command", "crypto_command_list", 1082a25439b6SCy Schubert "crypto_command", "crypto_str_keyword", "orphan_mode_command", 1083a25439b6SCy Schubert "tos_option_list", "tos_option", "tos_option_int_keyword", 1084a25439b6SCy Schubert "tos_option_dbl_keyword", "monitoring_command", "stats_list", "stat", 1085a25439b6SCy Schubert "filegen_option_list", "filegen_option", "link_nolink", "enable_disable", 1086a25439b6SCy Schubert "filegen_type", "access_control_command", "ac_flag_list", 1087a25439b6SCy Schubert "access_control_flag", "discard_option_list", "discard_option", 1088a25439b6SCy Schubert "discard_option_keyword", "mru_option_list", "mru_option", 1089a25439b6SCy Schubert "mru_option_keyword", "fudge_command", "fudge_factor_list", 1090a25439b6SCy Schubert "fudge_factor", "fudge_factor_dbl_keyword", "fudge_factor_bool_keyword", 1091a25439b6SCy Schubert "rlimit_command", "rlimit_option_list", "rlimit_option", 1092a25439b6SCy Schubert "rlimit_option_keyword", "system_option_command", "system_option_list", 1093a25439b6SCy Schubert "system_option", "system_option_flag_keyword", 10942b15cb3dSCy Schubert "system_option_local_flag_keyword", "tinker_command", 10952b15cb3dSCy Schubert "tinker_option_list", "tinker_option", "tinker_option_keyword", 1096*276da39aSCy Schubert "miscellaneous_command", "misc_cmd_dbl_keyword", "misc_cmd_int_keyword", 1097*276da39aSCy Schubert "misc_cmd_str_keyword", "misc_cmd_str_lcl_keyword", "drift_parm", 1098*276da39aSCy Schubert "variable_assign", "t_default_or_zero", "trap_option_list", 1099*276da39aSCy Schubert "trap_option", "log_config_list", "log_config_command", 1100*276da39aSCy Schubert "interface_command", "interface_nic", "nic_rule_class", 1101*276da39aSCy Schubert "nic_rule_action", "reset_command", "counter_set_list", 1102*276da39aSCy Schubert "counter_set_keyword", "integer_list", "integer_list_range", 1103*276da39aSCy Schubert "integer_list_range_elt", "integer_range", "string_list", "address_list", 1104*276da39aSCy Schubert "boolean", "number", "simulate_command", "sim_conf_start", 1105*276da39aSCy Schubert "sim_init_statement_list", "sim_init_statement", "sim_init_keyword", 1106*276da39aSCy Schubert "sim_server_list", "sim_server", "sim_server_offset", "sim_server_name", 1107*276da39aSCy Schubert "sim_act_list", "sim_act", "sim_act_stmt_list", "sim_act_stmt", 1108*276da39aSCy Schubert "sim_act_keyword", YY_NULL 11092b15cb3dSCy Schubert }; 11102b15cb3dSCy Schubert #endif 11112b15cb3dSCy Schubert 11122b15cb3dSCy Schubert # ifdef YYPRINT 1113*276da39aSCy Schubert /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to 1114*276da39aSCy Schubert token YYLEX-NUM. */ 11152b15cb3dSCy Schubert static const yytype_uint16 yytoknum[] = 11162b15cb3dSCy Schubert { 11172b15cb3dSCy Schubert 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 11182b15cb3dSCy Schubert 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 11192b15cb3dSCy Schubert 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 11202b15cb3dSCy Schubert 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 11212b15cb3dSCy Schubert 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 11222b15cb3dSCy Schubert 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 11232b15cb3dSCy Schubert 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 11242b15cb3dSCy Schubert 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 11252b15cb3dSCy Schubert 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 11262b15cb3dSCy Schubert 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 11272b15cb3dSCy Schubert 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 11282b15cb3dSCy Schubert 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 11292b15cb3dSCy Schubert 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 11302b15cb3dSCy Schubert 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 11312b15cb3dSCy Schubert 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 11322b15cb3dSCy Schubert 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 11332b15cb3dSCy Schubert 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 11342b15cb3dSCy Schubert 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 11352b15cb3dSCy Schubert 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 1136*276da39aSCy Schubert 445, 446, 447, 448, 61, 40, 41, 123, 125 11372b15cb3dSCy Schubert }; 11382b15cb3dSCy Schubert # endif 11392b15cb3dSCy Schubert 11402b15cb3dSCy Schubert /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 11412b15cb3dSCy Schubert static const yytype_uint16 yyr1[] = 11422b15cb3dSCy Schubert { 1143*276da39aSCy Schubert 0, 199, 200, 201, 201, 201, 202, 202, 202, 202, 1144*276da39aSCy Schubert 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 1145*276da39aSCy Schubert 203, 204, 204, 204, 204, 204, 205, 205, 206, 207, 1146*276da39aSCy Schubert 207, 208, 208, 209, 209, 209, 210, 211, 211, 211, 1147*276da39aSCy Schubert 211, 211, 211, 211, 211, 212, 212, 213, 213, 213, 1148*276da39aSCy Schubert 213, 213, 213, 214, 215, 216, 217, 217, 218, 218, 1149*276da39aSCy Schubert 218, 218, 219, 219, 219, 219, 219, 219, 219, 219, 1150*276da39aSCy Schubert 219, 220, 220, 221, 221, 222, 222, 222, 222, 222, 1151*276da39aSCy Schubert 223, 224, 224, 225, 225, 225, 226, 226, 226, 226, 1152*276da39aSCy Schubert 226, 226, 227, 227, 227, 227, 228, 228, 228, 229, 1153*276da39aSCy Schubert 229, 230, 230, 230, 230, 230, 230, 230, 230, 231, 1154*276da39aSCy Schubert 231, 232, 232, 232, 232, 233, 233, 234, 234, 235, 1155*276da39aSCy Schubert 235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 1156*276da39aSCy Schubert 236, 236, 236, 236, 237, 237, 238, 238, 238, 238, 1157*276da39aSCy Schubert 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 1158*276da39aSCy Schubert 238, 239, 239, 240, 241, 241, 241, 242, 242, 243, 1159*276da39aSCy Schubert 244, 244, 244, 244, 244, 244, 244, 244, 245, 246, 1160*276da39aSCy Schubert 246, 247, 247, 247, 247, 247, 248, 248, 249, 249, 1161*276da39aSCy Schubert 249, 249, 250, 251, 251, 252, 253, 253, 253, 254, 1162*276da39aSCy Schubert 254, 255, 255, 256, 256, 257, 257, 257, 257, 257, 1163*276da39aSCy Schubert 257, 258, 258, 259, 260, 260, 261, 262, 262, 262, 1164*276da39aSCy Schubert 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 1165*276da39aSCy Schubert 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 1166*276da39aSCy Schubert 263, 264, 264, 264, 265, 265, 266, 266, 266, 267, 1167*276da39aSCy Schubert 267, 268, 268, 268, 269, 270, 270, 271, 271, 272, 1168*276da39aSCy Schubert 272, 273, 273, 274, 275, 275, 276, 276, 277, 277, 1169*276da39aSCy Schubert 277, 277, 278, 278, 278, 279, 280, 280, 281, 281, 1170*276da39aSCy Schubert 281, 281, 281, 281, 281, 282, 282, 283, 283, 284, 1171*276da39aSCy Schubert 284, 285, 286, 286, 287, 287, 288, 288, 288, 289, 1172*276da39aSCy Schubert 289, 290, 291, 292, 292, 293, 294, 294, 295, 295, 1173*276da39aSCy Schubert 296, 297, 298, 299, 299, 300, 301, 301, 302, 303, 1174*276da39aSCy Schubert 303, 303, 303, 303 11752b15cb3dSCy Schubert }; 11762b15cb3dSCy Schubert 1177*276da39aSCy Schubert /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 11782b15cb3dSCy Schubert static const yytype_uint8 yyr2[] = 11792b15cb3dSCy Schubert { 11802b15cb3dSCy Schubert 0, 2, 1, 3, 2, 2, 0, 1, 1, 1, 11812b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11822b15cb3dSCy Schubert 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 11832b15cb3dSCy Schubert 1, 0, 2, 1, 1, 1, 1, 1, 1, 1, 11842b15cb3dSCy Schubert 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 11852b15cb3dSCy Schubert 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 11862b15cb3dSCy Schubert 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 11872b15cb3dSCy Schubert 2, 0, 2, 2, 2, 1, 1, 1, 1, 1, 11882b15cb3dSCy Schubert 2, 2, 1, 2, 2, 2, 1, 1, 1, 1, 11892b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 2, 2, 3, 2, 11902b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 11912b15cb3dSCy Schubert 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 11922b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 2, 2, 3, 5, 11932b15cb3dSCy Schubert 3, 4, 4, 3, 0, 2, 1, 1, 1, 1, 11942b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11952b15cb3dSCy Schubert 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 11962b15cb3dSCy Schubert 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 11972b15cb3dSCy Schubert 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 11982b15cb3dSCy Schubert 1, 1, 2, 2, 1, 2, 1, 1, 1, 2, 11992b15cb3dSCy Schubert 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 12002b15cb3dSCy Schubert 1, 1, 1, 2, 2, 1, 2, 1, 1, 1, 1201a25439b6SCy Schubert 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1202*276da39aSCy Schubert 2, 2, 2, 3, 1, 2, 2, 2, 2, 3, 1203*276da39aSCy Schubert 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1204*276da39aSCy Schubert 1, 1, 2, 0, 4, 1, 0, 0, 2, 2, 1205*276da39aSCy Schubert 2, 2, 1, 1, 3, 3, 1, 1, 1, 1, 1206*276da39aSCy Schubert 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1207*276da39aSCy Schubert 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1208*276da39aSCy Schubert 1, 5, 2, 1, 2, 1, 1, 1, 1, 1, 1209*276da39aSCy Schubert 1, 5, 1, 3, 2, 3, 1, 1, 2, 1, 1210*276da39aSCy Schubert 5, 4, 3, 2, 1, 6, 3, 2, 3, 1, 1211*276da39aSCy Schubert 1, 1, 1, 1 12122b15cb3dSCy Schubert }; 12132b15cb3dSCy Schubert 1214*276da39aSCy Schubert /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. 1215*276da39aSCy Schubert Performed when YYTABLE doesn't specify something else to do. Zero 1216*276da39aSCy Schubert means the default is an error. */ 1217*276da39aSCy Schubert static const yytype_uint16 yydefact[] = 1218*276da39aSCy Schubert { 1219*276da39aSCy Schubert 0, 0, 0, 24, 58, 231, 0, 71, 0, 0, 1220*276da39aSCy Schubert 243, 234, 0, 224, 0, 0, 236, 0, 256, 0, 1221*276da39aSCy Schubert 0, 237, 235, 0, 239, 25, 0, 0, 0, 0, 1222*276da39aSCy Schubert 257, 232, 0, 23, 0, 238, 22, 0, 0, 0, 1223*276da39aSCy Schubert 0, 0, 240, 21, 0, 0, 0, 233, 0, 0, 1224*276da39aSCy Schubert 0, 0, 0, 56, 57, 292, 0, 2, 0, 7, 1225*276da39aSCy Schubert 0, 8, 0, 9, 10, 13, 11, 12, 14, 15, 1226*276da39aSCy Schubert 16, 17, 18, 0, 0, 0, 0, 217, 0, 218, 1227*276da39aSCy Schubert 19, 0, 5, 62, 63, 64, 195, 196, 197, 198, 1228*276da39aSCy Schubert 201, 199, 200, 202, 190, 192, 193, 194, 154, 155, 1229*276da39aSCy Schubert 156, 126, 152, 0, 241, 225, 189, 101, 102, 103, 1230*276da39aSCy Schubert 104, 108, 105, 106, 107, 109, 29, 30, 28, 0, 1231*276da39aSCy Schubert 26, 0, 6, 65, 66, 253, 226, 252, 285, 59, 1232*276da39aSCy Schubert 61, 160, 161, 162, 163, 164, 165, 166, 167, 127, 1233*276da39aSCy Schubert 158, 0, 60, 70, 283, 227, 67, 268, 269, 270, 1234*276da39aSCy Schubert 271, 272, 273, 274, 265, 267, 134, 29, 30, 134, 1235*276da39aSCy Schubert 134, 26, 68, 188, 186, 187, 182, 184, 0, 0, 1236*276da39aSCy Schubert 228, 96, 100, 97, 207, 208, 209, 210, 211, 212, 1237*276da39aSCy Schubert 213, 214, 215, 216, 203, 205, 0, 91, 86, 0, 1238*276da39aSCy Schubert 87, 95, 93, 94, 92, 90, 88, 89, 80, 82, 1239*276da39aSCy Schubert 0, 0, 247, 279, 0, 69, 278, 280, 276, 230, 1240*276da39aSCy Schubert 1, 0, 4, 31, 55, 290, 289, 219, 220, 221, 1241*276da39aSCy Schubert 222, 264, 263, 262, 0, 0, 79, 75, 76, 77, 1242*276da39aSCy Schubert 78, 0, 72, 0, 191, 151, 153, 242, 98, 0, 1243*276da39aSCy Schubert 178, 179, 180, 181, 0, 0, 176, 177, 168, 170, 1244*276da39aSCy Schubert 0, 0, 27, 223, 251, 284, 157, 159, 282, 266, 1245*276da39aSCy Schubert 130, 134, 134, 133, 128, 0, 183, 185, 0, 99, 1246*276da39aSCy Schubert 204, 206, 288, 286, 287, 85, 81, 83, 84, 229, 1247*276da39aSCy Schubert 0, 277, 275, 3, 20, 258, 259, 260, 255, 261, 1248*276da39aSCy Schubert 254, 296, 297, 0, 0, 0, 74, 73, 118, 117, 1249*276da39aSCy Schubert 0, 115, 116, 0, 110, 113, 114, 174, 175, 173, 1250*276da39aSCy Schubert 169, 171, 172, 136, 137, 138, 139, 140, 141, 142, 1251*276da39aSCy Schubert 143, 144, 145, 146, 147, 148, 149, 150, 135, 131, 1252*276da39aSCy Schubert 132, 134, 246, 0, 0, 248, 0, 37, 38, 39, 1253*276da39aSCy Schubert 54, 47, 49, 48, 51, 40, 41, 42, 43, 50, 1254*276da39aSCy Schubert 52, 44, 32, 33, 36, 34, 0, 35, 0, 0, 1255*276da39aSCy Schubert 0, 0, 299, 0, 294, 0, 111, 125, 121, 123, 1256*276da39aSCy Schubert 119, 120, 122, 124, 112, 129, 245, 244, 250, 249, 1257*276da39aSCy Schubert 0, 45, 46, 53, 0, 293, 291, 298, 0, 295, 1258*276da39aSCy Schubert 281, 302, 0, 0, 0, 0, 0, 304, 0, 0, 1259*276da39aSCy Schubert 300, 303, 301, 0, 0, 309, 310, 311, 312, 313, 1260*276da39aSCy Schubert 0, 0, 0, 305, 0, 307, 0, 306, 308 1261*276da39aSCy Schubert }; 1262*276da39aSCy Schubert 1263*276da39aSCy Schubert /* YYDEFGOTO[NTERM-NUM]. */ 1264*276da39aSCy Schubert static const yytype_int16 yydefgoto[] = 1265*276da39aSCy Schubert { 1266*276da39aSCy Schubert -1, 56, 57, 58, 59, 60, 128, 120, 121, 284, 1267*276da39aSCy Schubert 352, 353, 354, 355, 356, 357, 358, 61, 62, 63, 1268*276da39aSCy Schubert 64, 85, 232, 233, 65, 198, 199, 200, 201, 66, 1269*276da39aSCy Schubert 171, 115, 238, 304, 305, 306, 374, 67, 260, 328, 1270*276da39aSCy Schubert 101, 102, 103, 139, 140, 141, 68, 248, 249, 250, 1271*276da39aSCy Schubert 251, 69, 166, 167, 168, 70, 94, 95, 96, 97, 1272*276da39aSCy Schubert 71, 184, 185, 186, 72, 73, 74, 75, 76, 105, 1273*276da39aSCy Schubert 170, 377, 279, 335, 126, 127, 77, 78, 290, 224, 1274*276da39aSCy Schubert 79, 154, 155, 209, 205, 206, 207, 145, 129, 275, 1275*276da39aSCy Schubert 217, 80, 81, 293, 294, 295, 361, 362, 393, 363, 1276*276da39aSCy Schubert 396, 397, 410, 411, 412 1277*276da39aSCy Schubert }; 1278*276da39aSCy Schubert 1279*276da39aSCy Schubert /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing 1280*276da39aSCy Schubert STATE-NUM. */ 1281*276da39aSCy Schubert #define YYPACT_NINF -185 1282*276da39aSCy Schubert static const yytype_int16 yypact[] = 1283*276da39aSCy Schubert { 1284*276da39aSCy Schubert 78, -169, -34, -185, -185, -185, -29, -185, 17, 43, 1285*276da39aSCy Schubert -124, -185, 17, -185, -5, -27, -185, -121, -185, -112, 1286*276da39aSCy Schubert -110, -185, -185, -100, -185, -185, -27, 0, 116, -27, 1287*276da39aSCy Schubert -185, -185, -91, -185, -89, -185, -185, 11, 35, 30, 1288*276da39aSCy Schubert 13, 31, -185, -185, -83, -5, -78, -185, 186, 523, 1289*276da39aSCy Schubert -76, -56, 15, -185, -185, -185, 83, 244, -99, -185, 1290*276da39aSCy Schubert -27, -185, -27, -185, -185, -185, -185, -185, -185, -185, 1291*276da39aSCy Schubert -185, -185, -185, -12, 24, -71, -69, -185, -11, -185, 1292*276da39aSCy Schubert -185, -107, -185, -185, -185, 8, -185, -185, -185, -185, 1293*276da39aSCy Schubert -185, -185, -185, -185, 17, -185, -185, -185, -185, -185, 1294*276da39aSCy Schubert -185, 43, -185, 34, 59, -185, 17, -185, -185, -185, 1295*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, 7, 1296*276da39aSCy Schubert -185, -61, 407, -185, -185, -185, -100, -185, -185, -27, 1297*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, 116, 1298*276da39aSCy Schubert -185, 44, -27, -185, -185, -52, -185, -185, -185, -185, 1299*276da39aSCy Schubert -185, -185, -185, -185, 35, -185, -185, 85, 96, -185, 1300*276da39aSCy Schubert -185, 39, -185, -185, -185, -185, 31, -185, 75, -46, 1301*276da39aSCy Schubert -185, -5, -185, -185, -185, -185, -185, -185, -185, -185, 1302*276da39aSCy Schubert -185, -185, -185, -185, 186, -185, -12, -185, -185, -35, 1303*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, 523, -185, 1304*276da39aSCy Schubert 82, -12, -185, -185, 91, -56, -185, -185, -185, 100, 1305*276da39aSCy Schubert -185, -26, -185, -185, -185, -185, -185, -185, -185, -185, 1306*276da39aSCy Schubert -185, -185, -185, -185, -2, -130, -185, -185, -185, -185, 1307*276da39aSCy Schubert -185, 105, -185, 9, -185, -185, -185, -185, -7, 18, 1308*276da39aSCy Schubert -185, -185, -185, -185, 25, 121, -185, -185, 7, -185, 1309*276da39aSCy Schubert -12, -35, -185, -185, -185, -185, -185, -185, -185, -185, 1310*276da39aSCy Schubert 391, -185, -185, 391, 391, -76, -185, -185, 29, -185, 1311*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, -51, 1312*276da39aSCy Schubert 153, -185, -185, -185, 464, -185, -185, -185, -185, -185, 1313*276da39aSCy Schubert -185, -185, -185, -82, 14, 1, -185, -185, -185, -185, 1314*276da39aSCy Schubert 38, -185, -185, 12, -185, -185, -185, -185, -185, -185, 1315*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, -185, 1316*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, 391, 1317*276da39aSCy Schubert 391, -185, 171, -76, 140, -185, 141, -185, -185, -185, 1318*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, -185, 1319*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -55, -185, 53, 20, 1320*276da39aSCy Schubert 33, -128, -185, 32, -185, -12, -185, -185, -185, -185, 1321*276da39aSCy Schubert -185, -185, -185, -185, -185, 391, -185, -185, -185, -185, 1322*276da39aSCy Schubert 16, -185, -185, -185, -27, -185, -185, -185, 46, -185, 1323*276da39aSCy Schubert -185, -185, 37, 48, -12, 40, -167, -185, 54, -12, 1324*276da39aSCy Schubert -185, -185, -185, 45, 79, -185, -185, -185, -185, -185, 1325*276da39aSCy Schubert 98, 57, 47, -185, 60, -185, -12, -185, -185 1326*276da39aSCy Schubert }; 1327*276da39aSCy Schubert 1328*276da39aSCy Schubert /* YYPGOTO[NTERM-NUM]. */ 1329*276da39aSCy Schubert static const yytype_int16 yypgoto[] = 1330*276da39aSCy Schubert { 1331*276da39aSCy Schubert -185, -185, -185, -44, -185, -185, -15, -38, -185, -185, 1332*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, -185, -185, -185, -185, 1333*276da39aSCy Schubert -185, -185, -185, -185, -185, -185, 28, -185, -185, -185, 1334*276da39aSCy Schubert -185, -36, -185, -185, -185, -185, -185, -185, -152, -185, 1335*276da39aSCy Schubert -185, 146, -185, -185, 111, -185, -185, -185, 3, -185, 1336*276da39aSCy Schubert -185, -185, -185, 89, -185, -185, 245, -66, -185, -185, 1337*276da39aSCy Schubert -185, -185, 72, -185, -185, -185, -185, -185, -185, -185, 1338*276da39aSCy Schubert -185, -185, -185, -185, -185, 137, -185, -185, -185, -185, 1339*276da39aSCy Schubert -185, -185, 110, -185, -185, 70, -185, -185, 236, 27, 1340*276da39aSCy Schubert -184, -185, -185, -185, -17, -185, -185, -81, -185, -185, 1341*276da39aSCy Schubert -185, -113, -185, -126, -185 1342*276da39aSCy Schubert }; 1343*276da39aSCy Schubert 1344*276da39aSCy Schubert /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If 1345*276da39aSCy Schubert positive, shift that token. If negative, reduce the rule which 1346*276da39aSCy Schubert number is the opposite. If YYTABLE_NINF, syntax error. */ 1347*276da39aSCy Schubert #define YYTABLE_NINF -7 1348*276da39aSCy Schubert static const yytype_int16 yytable[] = 1349*276da39aSCy Schubert { 1350*276da39aSCy Schubert 119, 161, 271, 285, 272, 203, 381, 263, 264, 172, 1351*276da39aSCy Schubert 239, 333, 202, 211, 82, 107, 367, 278, 359, 108, 1352*276da39aSCy Schubert 215, 395, 298, 221, 160, 86, 273, 83, 234, 87, 1353*276da39aSCy Schubert 299, 400, 84, 300, 104, 88, 226, 122, 368, 116, 1354*276da39aSCy Schubert 234, 117, 147, 148, 222, 213, 123, 214, 124, 216, 1355*276da39aSCy Schubert 240, 241, 242, 243, 98, 291, 292, 156, 125, 227, 1356*276da39aSCy Schubert 149, 130, 228, 286, 359, 287, 311, 143, 223, 144, 1357*276da39aSCy Schubert 386, 301, 146, 163, 162, 169, 208, 109, 253, 1, 1358*276da39aSCy Schubert 173, 334, 118, 210, 212, 218, 89, 219, 2, 220, 1359*276da39aSCy Schubert 225, 237, 3, 4, 5, 236, 157, 252, 158, 150, 1360*276da39aSCy Schubert 6, 7, 302, 291, 292, 257, 258, 8, 9, 329, 1361*276da39aSCy Schubert 330, 10, 261, 11, 255, 12, 13, 369, 382, 14, 1362*276da39aSCy Schubert 90, 91, 110, 262, 370, 265, 164, 255, 15, 151, 1363*276da39aSCy Schubert 111, 118, 16, 112, 274, 269, 267, 92, 17, 204, 1364*276da39aSCy Schubert 18, 371, 99, 277, 229, 230, 244, 100, 268, 19, 1365*276da39aSCy Schubert 20, 231, 280, 21, 22, 113, 288, 283, 23, 24, 1366*276da39aSCy Schubert 114, 282, 25, 26, 245, 303, 296, 297, 93, 246, 1367*276da39aSCy Schubert 247, 27, 131, 132, 133, 134, 307, 289, 159, 375, 1368*276da39aSCy Schubert 165, 389, 309, 308, 28, 29, 30, 332, 118, 336, 1369*276da39aSCy Schubert 372, 31, 174, 373, 152, 365, 366, 364, 376, 153, 1370*276da39aSCy Schubert 32, 379, 380, 135, 33, 136, 34, 137, 35, 36, 1371*276da39aSCy Schubert 398, 383, 390, 138, 384, 403, 385, 175, 37, 38, 1372*276da39aSCy Schubert 39, 40, 41, 42, 43, 44, 276, 331, 45, 388, 1373*276da39aSCy Schubert 46, 394, 418, 392, 399, 176, 395, 402, 177, 47, 1374*276da39aSCy Schubert 415, 416, 404, 417, 48, 49, 50, 235, 51, 52, 1375*276da39aSCy Schubert 256, 310, 53, 54, 2, 266, 270, 106, 3, 4, 1376*276da39aSCy Schubert 5, -6, 55, 254, 259, 142, 6, 7, 405, 406, 1377*276da39aSCy Schubert 407, 408, 409, 8, 9, 281, 360, 10, 312, 11, 1378*276da39aSCy Schubert 387, 12, 13, 401, 414, 14, 0, 405, 406, 407, 1379*276da39aSCy Schubert 408, 409, 0, 0, 15, 378, 413, 0, 16, 0, 1380*276da39aSCy Schubert 0, 0, 0, 0, 17, 0, 18, 0, 0, 0, 1381*276da39aSCy Schubert 0, 178, 0, 0, 0, 19, 20, 0, 0, 21, 1382*276da39aSCy Schubert 22, 0, 0, 0, 23, 24, 0, 0, 25, 26, 1383*276da39aSCy Schubert 0, 0, 0, 0, 0, 0, 0, 27, 0, 179, 1384*276da39aSCy Schubert 180, 181, 182, 0, 0, 0, 0, 183, 0, 0, 1385*276da39aSCy Schubert 28, 29, 30, 0, 0, 0, 0, 31, 0, 0, 1386*276da39aSCy Schubert 0, 0, 0, 0, 0, 0, 32, 0, 0, 391, 1387*276da39aSCy Schubert 33, 0, 34, 0, 35, 36, 0, 0, 0, 0, 1388*276da39aSCy Schubert 0, 0, 0, 0, 37, 38, 39, 40, 41, 42, 1389*276da39aSCy Schubert 43, 44, 0, 0, 45, 0, 46, 0, 0, 0, 1390*276da39aSCy Schubert 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 1391*276da39aSCy Schubert 48, 49, 50, 0, 51, 52, 0, 2, 53, 54, 1392*276da39aSCy Schubert 0, 3, 4, 5, 0, 0, 0, -6, 55, 6, 1393*276da39aSCy Schubert 7, 0, 0, 0, 0, 0, 8, 9, 313, 0, 1394*276da39aSCy Schubert 10, 0, 11, 0, 12, 13, 314, 0, 14, 0, 1395*276da39aSCy Schubert 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 1396*276da39aSCy Schubert 0, 16, 0, 0, 315, 316, 0, 17, 317, 18, 1397*276da39aSCy Schubert 0, 0, 0, 337, 318, 0, 0, 0, 19, 20, 1398*276da39aSCy Schubert 0, 338, 21, 22, 0, 0, 0, 23, 24, 0, 1399*276da39aSCy Schubert 0, 25, 26, 0, 0, 0, 0, 0, 0, 0, 1400*276da39aSCy Schubert 27, 319, 320, 0, 0, 321, 322, 0, 323, 324, 1401*276da39aSCy Schubert 325, 0, 326, 28, 29, 30, 0, 339, 340, 0, 1402*276da39aSCy Schubert 31, 0, 0, 0, 0, 0, 0, 0, 0, 32, 1403*276da39aSCy Schubert 0, 0, 0, 33, 341, 34, 187, 35, 36, 0, 1404*276da39aSCy Schubert 0, 0, 188, 0, 189, 0, 0, 37, 38, 39, 1405*276da39aSCy Schubert 40, 41, 42, 43, 44, 0, 342, 45, 0, 46, 1406*276da39aSCy Schubert 0, 0, 0, 0, 343, 0, 344, 327, 47, 0, 1407*276da39aSCy Schubert 0, 190, 0, 48, 49, 50, 0, 51, 52, 0, 1408*276da39aSCy Schubert 345, 53, 54, 0, 0, 0, 0, 0, 0, 0, 1409*276da39aSCy Schubert 0, 55, 0, 0, 0, 0, 0, 346, 347, 0, 1410*276da39aSCy Schubert 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1411*276da39aSCy Schubert 0, 191, 0, 192, 0, 0, 0, 0, 0, 193, 1412*276da39aSCy Schubert 0, 194, 0, 0, 195, 0, 0, 0, 0, 0, 1413*276da39aSCy Schubert 0, 0, 0, 348, 0, 349, 0, 0, 0, 0, 1414*276da39aSCy Schubert 350, 0, 0, 0, 351, 0, 196, 197 1415*276da39aSCy Schubert }; 1416*276da39aSCy Schubert 1417*276da39aSCy Schubert #define yypact_value_is_default(Yystate) \ 1418*276da39aSCy Schubert (!!((Yystate) == (-185))) 1419*276da39aSCy Schubert 1420*276da39aSCy Schubert #define yytable_value_is_error(Yytable_value) \ 1421*276da39aSCy Schubert YYID (0) 1422*276da39aSCy Schubert 1423*276da39aSCy Schubert static const yytype_int16 yycheck[] = 1424*276da39aSCy Schubert { 1425*276da39aSCy Schubert 15, 39, 186, 5, 39, 61, 61, 159, 160, 45, 1426*276da39aSCy Schubert 3, 62, 50, 57, 183, 20, 4, 201, 146, 24, 1427*276da39aSCy Schubert 32, 188, 29, 34, 39, 8, 61, 61, 94, 12, 1428*276da39aSCy Schubert 37, 198, 61, 40, 158, 18, 28, 158, 26, 66, 1429*276da39aSCy Schubert 106, 68, 7, 8, 55, 60, 158, 62, 158, 61, 1430*276da39aSCy Schubert 43, 44, 45, 46, 11, 185, 186, 27, 158, 51, 1431*276da39aSCy Schubert 25, 61, 54, 65, 146, 67, 250, 158, 79, 158, 1432*276da39aSCy Schubert 198, 78, 61, 42, 61, 158, 61, 82, 122, 1, 1433*276da39aSCy Schubert 158, 132, 158, 0, 183, 61, 69, 158, 10, 158, 1434*276da39aSCy Schubert 197, 32, 14, 15, 16, 61, 66, 158, 68, 64, 1435*276da39aSCy Schubert 22, 23, 109, 185, 186, 61, 158, 29, 30, 261, 1436*276da39aSCy Schubert 262, 33, 27, 35, 129, 37, 38, 105, 173, 41, 1437*276da39aSCy Schubert 103, 104, 127, 27, 112, 86, 95, 142, 50, 94, 1438*276da39aSCy Schubert 135, 158, 54, 138, 169, 171, 61, 120, 60, 195, 1439*276da39aSCy Schubert 62, 129, 99, 61, 136, 137, 139, 104, 194, 71, 1440*276da39aSCy Schubert 72, 143, 61, 75, 76, 160, 158, 183, 80, 81, 1441*276da39aSCy Schubert 165, 61, 84, 85, 157, 172, 61, 158, 151, 162, 1442*276da39aSCy Schubert 163, 93, 56, 57, 58, 59, 158, 179, 148, 331, 1443*276da39aSCy Schubert 149, 365, 61, 158, 106, 107, 108, 158, 158, 36, 1444*276da39aSCy Schubert 178, 113, 6, 181, 159, 194, 158, 183, 27, 164, 1445*276da39aSCy Schubert 122, 61, 61, 87, 126, 89, 128, 91, 130, 131, 1446*276da39aSCy Schubert 394, 158, 196, 97, 194, 399, 183, 31, 140, 141, 1447*276da39aSCy Schubert 142, 143, 144, 145, 146, 147, 198, 265, 150, 197, 1448*276da39aSCy Schubert 152, 194, 416, 187, 194, 49, 188, 183, 52, 161, 1449*276da39aSCy Schubert 183, 194, 197, 183, 166, 167, 168, 101, 170, 171, 1450*276da39aSCy Schubert 139, 248, 174, 175, 10, 166, 184, 12, 14, 15, 1451*276da39aSCy Schubert 16, 183, 184, 126, 154, 29, 22, 23, 189, 190, 1452*276da39aSCy Schubert 191, 192, 193, 29, 30, 205, 293, 33, 251, 35, 1453*276da39aSCy Schubert 361, 37, 38, 396, 410, 41, -1, 189, 190, 191, 1454*276da39aSCy Schubert 192, 193, -1, -1, 50, 333, 198, -1, 54, -1, 1455*276da39aSCy Schubert -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, 1456*276da39aSCy Schubert -1, 125, -1, -1, -1, 71, 72, -1, -1, 75, 1457*276da39aSCy Schubert 76, -1, -1, -1, 80, 81, -1, -1, 84, 85, 1458*276da39aSCy Schubert -1, -1, -1, -1, -1, -1, -1, 93, -1, 153, 1459*276da39aSCy Schubert 154, 155, 156, -1, -1, -1, -1, 161, -1, -1, 1460*276da39aSCy Schubert 106, 107, 108, -1, -1, -1, -1, 113, -1, -1, 1461*276da39aSCy Schubert -1, -1, -1, -1, -1, -1, 122, -1, -1, 384, 1462*276da39aSCy Schubert 126, -1, 128, -1, 130, 131, -1, -1, -1, -1, 1463*276da39aSCy Schubert -1, -1, -1, -1, 140, 141, 142, 143, 144, 145, 1464*276da39aSCy Schubert 146, 147, -1, -1, 150, -1, 152, -1, -1, -1, 1465*276da39aSCy Schubert -1, -1, -1, -1, -1, 161, -1, -1, -1, -1, 1466*276da39aSCy Schubert 166, 167, 168, -1, 170, 171, -1, 10, 174, 175, 1467*276da39aSCy Schubert -1, 14, 15, 16, -1, -1, -1, 183, 184, 22, 1468*276da39aSCy Schubert 23, -1, -1, -1, -1, -1, 29, 30, 47, -1, 1469*276da39aSCy Schubert 33, -1, 35, -1, 37, 38, 55, -1, 41, -1, 1470*276da39aSCy Schubert -1, -1, -1, -1, -1, -1, -1, 50, -1, -1, 1471*276da39aSCy Schubert -1, 54, -1, -1, 73, 74, -1, 60, 77, 62, 1472*276da39aSCy Schubert -1, -1, -1, 9, 83, -1, -1, -1, 71, 72, 1473*276da39aSCy Schubert -1, 17, 75, 76, -1, -1, -1, 80, 81, -1, 1474*276da39aSCy Schubert -1, 84, 85, -1, -1, -1, -1, -1, -1, -1, 1475*276da39aSCy Schubert 93, 110, 111, -1, -1, 114, 115, -1, 117, 118, 1476*276da39aSCy Schubert 119, -1, 121, 106, 107, 108, -1, 53, 54, -1, 1477*276da39aSCy Schubert 113, -1, -1, -1, -1, -1, -1, -1, -1, 122, 1478*276da39aSCy Schubert -1, -1, -1, 126, 70, 128, 13, 130, 131, -1, 1479*276da39aSCy Schubert -1, -1, 19, -1, 21, -1, -1, 140, 141, 142, 1480*276da39aSCy Schubert 143, 144, 145, 146, 147, -1, 92, 150, -1, 152, 1481*276da39aSCy Schubert -1, -1, -1, -1, 100, -1, 102, 176, 161, -1, 1482*276da39aSCy Schubert -1, 48, -1, 166, 167, 168, -1, 170, 171, -1, 1483*276da39aSCy Schubert 116, 174, 175, -1, -1, -1, -1, -1, -1, -1, 1484*276da39aSCy Schubert -1, 184, -1, -1, -1, -1, -1, 133, 134, -1, 1485*276da39aSCy Schubert -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1486*276da39aSCy Schubert -1, 88, -1, 90, -1, -1, -1, -1, -1, 96, 1487*276da39aSCy Schubert -1, 98, -1, -1, 101, -1, -1, -1, -1, -1, 1488*276da39aSCy Schubert -1, -1, -1, 169, -1, 171, -1, -1, -1, -1, 1489*276da39aSCy Schubert 176, -1, -1, -1, 180, -1, 123, 124 1490*276da39aSCy Schubert }; 1491*276da39aSCy Schubert 1492*276da39aSCy Schubert /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing 1493*276da39aSCy Schubert symbol of state STATE-NUM. */ 1494*276da39aSCy Schubert static const yytype_uint16 yystos[] = 1495*276da39aSCy Schubert { 1496*276da39aSCy Schubert 0, 1, 10, 14, 15, 16, 22, 23, 29, 30, 1497*276da39aSCy Schubert 33, 35, 37, 38, 41, 50, 54, 60, 62, 71, 1498*276da39aSCy Schubert 72, 75, 76, 80, 81, 84, 85, 93, 106, 107, 1499*276da39aSCy Schubert 108, 113, 122, 126, 128, 130, 131, 140, 141, 142, 1500*276da39aSCy Schubert 143, 144, 145, 146, 147, 150, 152, 161, 166, 167, 1501*276da39aSCy Schubert 168, 170, 171, 174, 175, 184, 200, 201, 202, 203, 1502*276da39aSCy Schubert 204, 216, 217, 218, 219, 223, 228, 236, 245, 250, 1503*276da39aSCy Schubert 254, 259, 263, 264, 265, 266, 267, 275, 276, 279, 1504*276da39aSCy Schubert 290, 291, 183, 61, 61, 220, 8, 12, 18, 69, 1505*276da39aSCy Schubert 103, 104, 120, 151, 255, 256, 257, 258, 11, 99, 1506*276da39aSCy Schubert 104, 239, 240, 241, 158, 268, 255, 20, 24, 82, 1507*276da39aSCy Schubert 127, 135, 138, 160, 165, 230, 66, 68, 158, 205, 1508*276da39aSCy Schubert 206, 207, 158, 158, 158, 158, 273, 274, 205, 287, 1509*276da39aSCy Schubert 61, 56, 57, 58, 59, 87, 89, 91, 97, 242, 1510*276da39aSCy Schubert 243, 244, 287, 158, 158, 286, 61, 7, 8, 25, 1511*276da39aSCy Schubert 64, 94, 159, 164, 280, 281, 27, 66, 68, 148, 1512*276da39aSCy Schubert 205, 206, 61, 42, 95, 149, 251, 252, 253, 158, 1513*276da39aSCy Schubert 269, 229, 230, 158, 6, 31, 49, 52, 125, 153, 1514*276da39aSCy Schubert 154, 155, 156, 161, 260, 261, 262, 13, 19, 21, 1515*276da39aSCy Schubert 48, 88, 90, 96, 98, 101, 123, 124, 224, 225, 1516*276da39aSCy Schubert 226, 227, 206, 61, 195, 283, 284, 285, 61, 282, 1517*276da39aSCy Schubert 0, 202, 183, 205, 205, 32, 61, 289, 61, 158, 1518*276da39aSCy Schubert 158, 34, 55, 79, 278, 197, 28, 51, 54, 136, 1519*276da39aSCy Schubert 137, 143, 221, 222, 256, 240, 61, 32, 231, 3, 1520*276da39aSCy Schubert 43, 44, 45, 46, 139, 157, 162, 163, 246, 247, 1521*276da39aSCy Schubert 248, 249, 158, 202, 274, 205, 243, 61, 158, 281, 1522*276da39aSCy Schubert 237, 27, 27, 237, 237, 86, 252, 61, 194, 230, 1523*276da39aSCy Schubert 261, 289, 39, 61, 169, 288, 225, 61, 289, 271, 1524*276da39aSCy Schubert 61, 284, 61, 183, 208, 5, 65, 67, 158, 179, 1525*276da39aSCy Schubert 277, 185, 186, 292, 293, 294, 61, 158, 29, 37, 1526*276da39aSCy Schubert 40, 78, 109, 172, 232, 233, 234, 158, 158, 61, 1527*276da39aSCy Schubert 247, 289, 288, 47, 55, 73, 74, 77, 83, 110, 1528*276da39aSCy Schubert 111, 114, 115, 117, 118, 119, 121, 176, 238, 237, 1529*276da39aSCy Schubert 237, 206, 158, 62, 132, 272, 36, 9, 17, 53, 1530*276da39aSCy Schubert 54, 70, 92, 100, 102, 116, 133, 134, 169, 171, 1531*276da39aSCy Schubert 176, 180, 209, 210, 211, 212, 213, 214, 215, 146, 1532*276da39aSCy Schubert 293, 295, 296, 298, 183, 194, 158, 4, 26, 105, 1533*276da39aSCy Schubert 112, 129, 178, 181, 235, 237, 27, 270, 206, 61, 1534*276da39aSCy Schubert 61, 61, 173, 158, 194, 183, 198, 296, 197, 289, 1535*276da39aSCy Schubert 196, 205, 187, 297, 194, 188, 299, 300, 289, 194, 1536*276da39aSCy Schubert 198, 300, 183, 289, 197, 189, 190, 191, 192, 193, 1537*276da39aSCy Schubert 301, 302, 303, 198, 302, 183, 194, 183, 289 1538*276da39aSCy Schubert }; 15392b15cb3dSCy Schubert 15402b15cb3dSCy Schubert #define yyerrok (yyerrstatus = 0) 15412b15cb3dSCy Schubert #define yyclearin (yychar = YYEMPTY) 15422b15cb3dSCy Schubert #define YYEMPTY (-2) 15432b15cb3dSCy Schubert #define YYEOF 0 15442b15cb3dSCy Schubert 15452b15cb3dSCy Schubert #define YYACCEPT goto yyacceptlab 15462b15cb3dSCy Schubert #define YYABORT goto yyabortlab 15472b15cb3dSCy Schubert #define YYERROR goto yyerrorlab 15482b15cb3dSCy Schubert 15492b15cb3dSCy Schubert 1550*276da39aSCy Schubert /* Like YYERROR except do call yyerror. This remains here temporarily 1551*276da39aSCy Schubert to ease the transition to the new meaning of YYERROR, for GCC. 1552*276da39aSCy Schubert Once GCC version 2 has supplanted version 1, this can go. However, 1553*276da39aSCy Schubert YYFAIL appears to be in use. Nevertheless, it is formally deprecated 1554*276da39aSCy Schubert in Bison 2.4.2's NEWS entry, where a plan to phase it out is 1555*276da39aSCy Schubert discussed. */ 1556*276da39aSCy Schubert 1557*276da39aSCy Schubert #define YYFAIL goto yyerrlab 1558*276da39aSCy Schubert #if defined YYFAIL 1559*276da39aSCy Schubert /* This is here to suppress warnings from the GCC cpp's 1560*276da39aSCy Schubert -Wunused-macros. Normally we don't worry about that warning, but 1561*276da39aSCy Schubert some users do, and we want to make it easy for users to remove 1562*276da39aSCy Schubert YYFAIL uses, which will produce warnings from Bison 2.5. */ 1563*276da39aSCy Schubert #endif 1564*276da39aSCy Schubert 15652b15cb3dSCy Schubert #define YYRECOVERING() (!!yyerrstatus) 15662b15cb3dSCy Schubert 15672b15cb3dSCy Schubert #define YYBACKUP(Token, Value) \ 15682b15cb3dSCy Schubert do \ 15692b15cb3dSCy Schubert if (yychar == YYEMPTY) \ 15702b15cb3dSCy Schubert { \ 15712b15cb3dSCy Schubert yychar = (Token); \ 15722b15cb3dSCy Schubert yylval = (Value); \ 15732b15cb3dSCy Schubert YYPOPSTACK (yylen); \ 15742b15cb3dSCy Schubert yystate = *yyssp; \ 15752b15cb3dSCy Schubert goto yybackup; \ 15762b15cb3dSCy Schubert } \ 15772b15cb3dSCy Schubert else \ 15782b15cb3dSCy Schubert { \ 1579*276da39aSCy Schubert yyerror (YY_("syntax error: cannot back up")); \ 15802b15cb3dSCy Schubert YYERROR; \ 15812b15cb3dSCy Schubert } \ 1582*276da39aSCy Schubert while (YYID (0)) 15832b15cb3dSCy Schubert 15842b15cb3dSCy Schubert /* Error token number */ 15852b15cb3dSCy Schubert #define YYTERROR 1 15862b15cb3dSCy Schubert #define YYERRCODE 256 15872b15cb3dSCy Schubert 15882b15cb3dSCy Schubert 1589*276da39aSCy Schubert /* This macro is provided for backward compatibility. */ 1590*276da39aSCy Schubert #ifndef YY_LOCATION_PRINT 1591*276da39aSCy Schubert # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 1592*276da39aSCy Schubert #endif 1593*276da39aSCy Schubert 1594*276da39aSCy Schubert 1595*276da39aSCy Schubert /* YYLEX -- calling `yylex' with the right arguments. */ 1596*276da39aSCy Schubert #ifdef YYLEX_PARAM 1597*276da39aSCy Schubert # define YYLEX yylex (YYLEX_PARAM) 1598*276da39aSCy Schubert #else 1599*276da39aSCy Schubert # define YYLEX yylex () 1600*276da39aSCy Schubert #endif 16012b15cb3dSCy Schubert 16022b15cb3dSCy Schubert /* Enable debugging if requested. */ 16032b15cb3dSCy Schubert #if YYDEBUG 16042b15cb3dSCy Schubert 16052b15cb3dSCy Schubert # ifndef YYFPRINTF 16062b15cb3dSCy Schubert # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ 16072b15cb3dSCy Schubert # define YYFPRINTF fprintf 16082b15cb3dSCy Schubert # endif 16092b15cb3dSCy Schubert 16102b15cb3dSCy Schubert # define YYDPRINTF(Args) \ 16112b15cb3dSCy Schubert do { \ 16122b15cb3dSCy Schubert if (yydebug) \ 16132b15cb3dSCy Schubert YYFPRINTF Args; \ 1614*276da39aSCy Schubert } while (YYID (0)) 16152b15cb3dSCy Schubert 16162b15cb3dSCy Schubert # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 16172b15cb3dSCy Schubert do { \ 16182b15cb3dSCy Schubert if (yydebug) \ 16192b15cb3dSCy Schubert { \ 16202b15cb3dSCy Schubert YYFPRINTF (stderr, "%s ", Title); \ 16212b15cb3dSCy Schubert yy_symbol_print (stderr, \ 1622*276da39aSCy Schubert Type, Value); \ 16232b15cb3dSCy Schubert YYFPRINTF (stderr, "\n"); \ 16242b15cb3dSCy Schubert } \ 1625*276da39aSCy Schubert } while (YYID (0)) 16262b15cb3dSCy Schubert 16272b15cb3dSCy Schubert 1628*276da39aSCy Schubert /*--------------------------------. 1629*276da39aSCy Schubert | Print this symbol on YYOUTPUT. | 1630*276da39aSCy Schubert `--------------------------------*/ 16312b15cb3dSCy Schubert 1632*276da39aSCy Schubert /*ARGSUSED*/ 1633*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1634*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 16352b15cb3dSCy Schubert static void 1636*276da39aSCy Schubert yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) 1637*276da39aSCy Schubert #else 1638*276da39aSCy Schubert static void 1639*276da39aSCy Schubert yy_symbol_value_print (yyoutput, yytype, yyvaluep) 1640*276da39aSCy Schubert FILE *yyoutput; 1641*276da39aSCy Schubert int yytype; 1642*276da39aSCy Schubert YYSTYPE const * const yyvaluep; 1643*276da39aSCy Schubert #endif 16442b15cb3dSCy Schubert { 16452b15cb3dSCy Schubert FILE *yyo = yyoutput; 16462b15cb3dSCy Schubert YYUSE (yyo); 16472b15cb3dSCy Schubert if (!yyvaluep) 16482b15cb3dSCy Schubert return; 16492b15cb3dSCy Schubert # ifdef YYPRINT 16502b15cb3dSCy Schubert if (yytype < YYNTOKENS) 16512b15cb3dSCy Schubert YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); 1652*276da39aSCy Schubert # else 1653*276da39aSCy Schubert YYUSE (yyoutput); 16542b15cb3dSCy Schubert # endif 16552b15cb3dSCy Schubert YYUSE (yytype); 16562b15cb3dSCy Schubert } 16572b15cb3dSCy Schubert 16582b15cb3dSCy Schubert 16592b15cb3dSCy Schubert /*--------------------------------. 16602b15cb3dSCy Schubert | Print this symbol on YYOUTPUT. | 16612b15cb3dSCy Schubert `--------------------------------*/ 16622b15cb3dSCy Schubert 1663*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1664*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 16652b15cb3dSCy Schubert static void 1666*276da39aSCy Schubert yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) 1667*276da39aSCy Schubert #else 1668*276da39aSCy Schubert static void 1669*276da39aSCy Schubert yy_symbol_print (yyoutput, yytype, yyvaluep) 1670*276da39aSCy Schubert FILE *yyoutput; 1671*276da39aSCy Schubert int yytype; 1672*276da39aSCy Schubert YYSTYPE const * const yyvaluep; 1673*276da39aSCy Schubert #endif 16742b15cb3dSCy Schubert { 1675*276da39aSCy Schubert if (yytype < YYNTOKENS) 1676*276da39aSCy Schubert YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); 1677*276da39aSCy Schubert else 1678*276da39aSCy Schubert YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); 16792b15cb3dSCy Schubert 1680*276da39aSCy Schubert yy_symbol_value_print (yyoutput, yytype, yyvaluep); 16812b15cb3dSCy Schubert YYFPRINTF (yyoutput, ")"); 16822b15cb3dSCy Schubert } 16832b15cb3dSCy Schubert 16842b15cb3dSCy Schubert /*------------------------------------------------------------------. 16852b15cb3dSCy Schubert | yy_stack_print -- Print the state stack from its BOTTOM up to its | 16862b15cb3dSCy Schubert | TOP (included). | 16872b15cb3dSCy Schubert `------------------------------------------------------------------*/ 16882b15cb3dSCy Schubert 1689*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1690*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 16912b15cb3dSCy Schubert static void 16922b15cb3dSCy Schubert yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) 1693*276da39aSCy Schubert #else 1694*276da39aSCy Schubert static void 1695*276da39aSCy Schubert yy_stack_print (yybottom, yytop) 1696*276da39aSCy Schubert yytype_int16 *yybottom; 1697*276da39aSCy Schubert yytype_int16 *yytop; 1698*276da39aSCy Schubert #endif 16992b15cb3dSCy Schubert { 17002b15cb3dSCy Schubert YYFPRINTF (stderr, "Stack now"); 17012b15cb3dSCy Schubert for (; yybottom <= yytop; yybottom++) 17022b15cb3dSCy Schubert { 17032b15cb3dSCy Schubert int yybot = *yybottom; 17042b15cb3dSCy Schubert YYFPRINTF (stderr, " %d", yybot); 17052b15cb3dSCy Schubert } 17062b15cb3dSCy Schubert YYFPRINTF (stderr, "\n"); 17072b15cb3dSCy Schubert } 17082b15cb3dSCy Schubert 17092b15cb3dSCy Schubert # define YY_STACK_PRINT(Bottom, Top) \ 17102b15cb3dSCy Schubert do { \ 17112b15cb3dSCy Schubert if (yydebug) \ 17122b15cb3dSCy Schubert yy_stack_print ((Bottom), (Top)); \ 1713*276da39aSCy Schubert } while (YYID (0)) 17142b15cb3dSCy Schubert 17152b15cb3dSCy Schubert 17162b15cb3dSCy Schubert /*------------------------------------------------. 17172b15cb3dSCy Schubert | Report that the YYRULE is going to be reduced. | 17182b15cb3dSCy Schubert `------------------------------------------------*/ 17192b15cb3dSCy Schubert 1720*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1721*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 17222b15cb3dSCy Schubert static void 1723*276da39aSCy Schubert yy_reduce_print (YYSTYPE *yyvsp, int yyrule) 1724*276da39aSCy Schubert #else 1725*276da39aSCy Schubert static void 1726*276da39aSCy Schubert yy_reduce_print (yyvsp, yyrule) 1727*276da39aSCy Schubert YYSTYPE *yyvsp; 1728*276da39aSCy Schubert int yyrule; 1729*276da39aSCy Schubert #endif 17302b15cb3dSCy Schubert { 17312b15cb3dSCy Schubert int yynrhs = yyr2[yyrule]; 17322b15cb3dSCy Schubert int yyi; 1733*276da39aSCy Schubert unsigned long int yylno = yyrline[yyrule]; 17342b15cb3dSCy Schubert YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", 17352b15cb3dSCy Schubert yyrule - 1, yylno); 17362b15cb3dSCy Schubert /* The symbols being reduced. */ 17372b15cb3dSCy Schubert for (yyi = 0; yyi < yynrhs; yyi++) 17382b15cb3dSCy Schubert { 17392b15cb3dSCy Schubert YYFPRINTF (stderr, " $%d = ", yyi + 1); 1740*276da39aSCy Schubert yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], 17412b15cb3dSCy Schubert &(yyvsp[(yyi + 1) - (yynrhs)]) 1742*276da39aSCy Schubert ); 17432b15cb3dSCy Schubert YYFPRINTF (stderr, "\n"); 17442b15cb3dSCy Schubert } 17452b15cb3dSCy Schubert } 17462b15cb3dSCy Schubert 17472b15cb3dSCy Schubert # define YY_REDUCE_PRINT(Rule) \ 17482b15cb3dSCy Schubert do { \ 17492b15cb3dSCy Schubert if (yydebug) \ 1750*276da39aSCy Schubert yy_reduce_print (yyvsp, Rule); \ 1751*276da39aSCy Schubert } while (YYID (0)) 17522b15cb3dSCy Schubert 17532b15cb3dSCy Schubert /* Nonzero means print parse trace. It is left uninitialized so that 17542b15cb3dSCy Schubert multiple parsers can coexist. */ 17552b15cb3dSCy Schubert int yydebug; 17562b15cb3dSCy Schubert #else /* !YYDEBUG */ 17572b15cb3dSCy Schubert # define YYDPRINTF(Args) 17582b15cb3dSCy Schubert # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 17592b15cb3dSCy Schubert # define YY_STACK_PRINT(Bottom, Top) 17602b15cb3dSCy Schubert # define YY_REDUCE_PRINT(Rule) 17612b15cb3dSCy Schubert #endif /* !YYDEBUG */ 17622b15cb3dSCy Schubert 17632b15cb3dSCy Schubert 17642b15cb3dSCy Schubert /* YYINITDEPTH -- initial size of the parser's stacks. */ 17652b15cb3dSCy Schubert #ifndef YYINITDEPTH 17662b15cb3dSCy Schubert # define YYINITDEPTH 200 17672b15cb3dSCy Schubert #endif 17682b15cb3dSCy Schubert 17692b15cb3dSCy Schubert /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only 17702b15cb3dSCy Schubert if the built-in stack extension method is used). 17712b15cb3dSCy Schubert 17722b15cb3dSCy Schubert Do not make this value too large; the results are undefined if 17732b15cb3dSCy Schubert YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) 17742b15cb3dSCy Schubert evaluated with infinite-precision integer arithmetic. */ 17752b15cb3dSCy Schubert 17762b15cb3dSCy Schubert #ifndef YYMAXDEPTH 17772b15cb3dSCy Schubert # define YYMAXDEPTH 10000 17782b15cb3dSCy Schubert #endif 17792b15cb3dSCy Schubert 17802b15cb3dSCy Schubert 17812b15cb3dSCy Schubert #if YYERROR_VERBOSE 17822b15cb3dSCy Schubert 17832b15cb3dSCy Schubert # ifndef yystrlen 17842b15cb3dSCy Schubert # if defined __GLIBC__ && defined _STRING_H 17852b15cb3dSCy Schubert # define yystrlen strlen 17862b15cb3dSCy Schubert # else 17872b15cb3dSCy Schubert /* Return the length of YYSTR. */ 1788*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1789*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 17902b15cb3dSCy Schubert static YYSIZE_T 17912b15cb3dSCy Schubert yystrlen (const char *yystr) 1792*276da39aSCy Schubert #else 1793*276da39aSCy Schubert static YYSIZE_T 1794*276da39aSCy Schubert yystrlen (yystr) 1795*276da39aSCy Schubert const char *yystr; 1796*276da39aSCy Schubert #endif 17972b15cb3dSCy Schubert { 17982b15cb3dSCy Schubert YYSIZE_T yylen; 17992b15cb3dSCy Schubert for (yylen = 0; yystr[yylen]; yylen++) 18002b15cb3dSCy Schubert continue; 18012b15cb3dSCy Schubert return yylen; 18022b15cb3dSCy Schubert } 18032b15cb3dSCy Schubert # endif 18042b15cb3dSCy Schubert # endif 18052b15cb3dSCy Schubert 18062b15cb3dSCy Schubert # ifndef yystpcpy 18072b15cb3dSCy Schubert # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 18082b15cb3dSCy Schubert # define yystpcpy stpcpy 18092b15cb3dSCy Schubert # else 18102b15cb3dSCy Schubert /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in 18112b15cb3dSCy Schubert YYDEST. */ 1812*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 1813*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 18142b15cb3dSCy Schubert static char * 18152b15cb3dSCy Schubert yystpcpy (char *yydest, const char *yysrc) 1816*276da39aSCy Schubert #else 1817*276da39aSCy Schubert static char * 1818*276da39aSCy Schubert yystpcpy (yydest, yysrc) 1819*276da39aSCy Schubert char *yydest; 1820*276da39aSCy Schubert const char *yysrc; 1821*276da39aSCy Schubert #endif 18222b15cb3dSCy Schubert { 18232b15cb3dSCy Schubert char *yyd = yydest; 18242b15cb3dSCy Schubert const char *yys = yysrc; 18252b15cb3dSCy Schubert 18262b15cb3dSCy Schubert while ((*yyd++ = *yys++) != '\0') 18272b15cb3dSCy Schubert continue; 18282b15cb3dSCy Schubert 18292b15cb3dSCy Schubert return yyd - 1; 18302b15cb3dSCy Schubert } 18312b15cb3dSCy Schubert # endif 18322b15cb3dSCy Schubert # endif 18332b15cb3dSCy Schubert 18342b15cb3dSCy Schubert # ifndef yytnamerr 18352b15cb3dSCy Schubert /* Copy to YYRES the contents of YYSTR after stripping away unnecessary 18362b15cb3dSCy Schubert quotes and backslashes, so that it's suitable for yyerror. The 18372b15cb3dSCy Schubert heuristic is that double-quoting is unnecessary unless the string 18382b15cb3dSCy Schubert contains an apostrophe, a comma, or backslash (other than 18392b15cb3dSCy Schubert backslash-backslash). YYSTR is taken from yytname. If YYRES is 18402b15cb3dSCy Schubert null, do not copy; instead, return the length of what the result 18412b15cb3dSCy Schubert would have been. */ 18422b15cb3dSCy Schubert static YYSIZE_T 18432b15cb3dSCy Schubert yytnamerr (char *yyres, const char *yystr) 18442b15cb3dSCy Schubert { 18452b15cb3dSCy Schubert if (*yystr == '"') 18462b15cb3dSCy Schubert { 18472b15cb3dSCy Schubert YYSIZE_T yyn = 0; 18482b15cb3dSCy Schubert char const *yyp = yystr; 18492b15cb3dSCy Schubert 18502b15cb3dSCy Schubert for (;;) 18512b15cb3dSCy Schubert switch (*++yyp) 18522b15cb3dSCy Schubert { 18532b15cb3dSCy Schubert case '\'': 18542b15cb3dSCy Schubert case ',': 18552b15cb3dSCy Schubert goto do_not_strip_quotes; 18562b15cb3dSCy Schubert 18572b15cb3dSCy Schubert case '\\': 18582b15cb3dSCy Schubert if (*++yyp != '\\') 18592b15cb3dSCy Schubert goto do_not_strip_quotes; 18602b15cb3dSCy Schubert /* Fall through. */ 18612b15cb3dSCy Schubert default: 18622b15cb3dSCy Schubert if (yyres) 18632b15cb3dSCy Schubert yyres[yyn] = *yyp; 18642b15cb3dSCy Schubert yyn++; 18652b15cb3dSCy Schubert break; 18662b15cb3dSCy Schubert 18672b15cb3dSCy Schubert case '"': 18682b15cb3dSCy Schubert if (yyres) 18692b15cb3dSCy Schubert yyres[yyn] = '\0'; 18702b15cb3dSCy Schubert return yyn; 18712b15cb3dSCy Schubert } 18722b15cb3dSCy Schubert do_not_strip_quotes: ; 18732b15cb3dSCy Schubert } 18742b15cb3dSCy Schubert 18752b15cb3dSCy Schubert if (! yyres) 18762b15cb3dSCy Schubert return yystrlen (yystr); 18772b15cb3dSCy Schubert 18782b15cb3dSCy Schubert return yystpcpy (yyres, yystr) - yyres; 18792b15cb3dSCy Schubert } 18802b15cb3dSCy Schubert # endif 18812b15cb3dSCy Schubert 18822b15cb3dSCy Schubert /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message 18832b15cb3dSCy Schubert about the unexpected token YYTOKEN for the state stack whose top is 18842b15cb3dSCy Schubert YYSSP. 18852b15cb3dSCy Schubert 18862b15cb3dSCy Schubert Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is 18872b15cb3dSCy Schubert not large enough to hold the message. In that case, also set 18882b15cb3dSCy Schubert *YYMSG_ALLOC to the required number of bytes. Return 2 if the 18892b15cb3dSCy Schubert required number of bytes is too large to store. */ 18902b15cb3dSCy Schubert static int 18912b15cb3dSCy Schubert yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, 18922b15cb3dSCy Schubert yytype_int16 *yyssp, int yytoken) 18932b15cb3dSCy Schubert { 1894*276da39aSCy Schubert YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); 18952b15cb3dSCy Schubert YYSIZE_T yysize = yysize0; 18962b15cb3dSCy Schubert enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; 18972b15cb3dSCy Schubert /* Internationalized format string. */ 1898*276da39aSCy Schubert const char *yyformat = YY_NULL; 18992b15cb3dSCy Schubert /* Arguments of yyformat. */ 19002b15cb3dSCy Schubert char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 19012b15cb3dSCy Schubert /* Number of reported tokens (one for the "unexpected", one per 19022b15cb3dSCy Schubert "expected"). */ 19032b15cb3dSCy Schubert int yycount = 0; 19042b15cb3dSCy Schubert 19052b15cb3dSCy Schubert /* There are many possibilities here to consider: 1906*276da39aSCy Schubert - Assume YYFAIL is not used. It's too flawed to consider. See 1907*276da39aSCy Schubert <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> 1908*276da39aSCy Schubert for details. YYERROR is fine as it does not invoke this 1909*276da39aSCy Schubert function. 19102b15cb3dSCy Schubert - If this state is a consistent state with a default action, then 19112b15cb3dSCy Schubert the only way this function was invoked is if the default action 19122b15cb3dSCy Schubert is an error action. In that case, don't check for expected 19132b15cb3dSCy Schubert tokens because there are none. 19142b15cb3dSCy Schubert - The only way there can be no lookahead present (in yychar) is if 19152b15cb3dSCy Schubert this state is a consistent state with a default action. Thus, 19162b15cb3dSCy Schubert detecting the absence of a lookahead is sufficient to determine 19172b15cb3dSCy Schubert that there is no unexpected or expected token to report. In that 19182b15cb3dSCy Schubert case, just report a simple "syntax error". 19192b15cb3dSCy Schubert - Don't assume there isn't a lookahead just because this state is a 19202b15cb3dSCy Schubert consistent state with a default action. There might have been a 19212b15cb3dSCy Schubert previous inconsistent state, consistent state with a non-default 19222b15cb3dSCy Schubert action, or user semantic action that manipulated yychar. 19232b15cb3dSCy Schubert - Of course, the expected token list depends on states to have 19242b15cb3dSCy Schubert correct lookahead information, and it depends on the parser not 19252b15cb3dSCy Schubert to perform extra reductions after fetching a lookahead from the 19262b15cb3dSCy Schubert scanner and before detecting a syntax error. Thus, state merging 19272b15cb3dSCy Schubert (from LALR or IELR) and default reductions corrupt the expected 19282b15cb3dSCy Schubert token list. However, the list is correct for canonical LR with 19292b15cb3dSCy Schubert one exception: it will still contain any token that will not be 19302b15cb3dSCy Schubert accepted due to an error action in a later state. 19312b15cb3dSCy Schubert */ 19322b15cb3dSCy Schubert if (yytoken != YYEMPTY) 19332b15cb3dSCy Schubert { 19342b15cb3dSCy Schubert int yyn = yypact[*yyssp]; 19352b15cb3dSCy Schubert yyarg[yycount++] = yytname[yytoken]; 19362b15cb3dSCy Schubert if (!yypact_value_is_default (yyn)) 19372b15cb3dSCy Schubert { 19382b15cb3dSCy Schubert /* Start YYX at -YYN if negative to avoid negative indexes in 19392b15cb3dSCy Schubert YYCHECK. In other words, skip the first -YYN actions for 19402b15cb3dSCy Schubert this state because they are default actions. */ 19412b15cb3dSCy Schubert int yyxbegin = yyn < 0 ? -yyn : 0; 19422b15cb3dSCy Schubert /* Stay within bounds of both yycheck and yytname. */ 19432b15cb3dSCy Schubert int yychecklim = YYLAST - yyn + 1; 19442b15cb3dSCy Schubert int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 19452b15cb3dSCy Schubert int yyx; 19462b15cb3dSCy Schubert 19472b15cb3dSCy Schubert for (yyx = yyxbegin; yyx < yyxend; ++yyx) 19482b15cb3dSCy Schubert if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR 19492b15cb3dSCy Schubert && !yytable_value_is_error (yytable[yyx + yyn])) 19502b15cb3dSCy Schubert { 19512b15cb3dSCy Schubert if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 19522b15cb3dSCy Schubert { 19532b15cb3dSCy Schubert yycount = 1; 19542b15cb3dSCy Schubert yysize = yysize0; 19552b15cb3dSCy Schubert break; 19562b15cb3dSCy Schubert } 19572b15cb3dSCy Schubert yyarg[yycount++] = yytname[yyx]; 19582b15cb3dSCy Schubert { 1959*276da39aSCy Schubert YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); 19602b15cb3dSCy Schubert if (! (yysize <= yysize1 19612b15cb3dSCy Schubert && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) 19622b15cb3dSCy Schubert return 2; 19632b15cb3dSCy Schubert yysize = yysize1; 19642b15cb3dSCy Schubert } 19652b15cb3dSCy Schubert } 19662b15cb3dSCy Schubert } 19672b15cb3dSCy Schubert } 19682b15cb3dSCy Schubert 19692b15cb3dSCy Schubert switch (yycount) 19702b15cb3dSCy Schubert { 19712b15cb3dSCy Schubert # define YYCASE_(N, S) \ 19722b15cb3dSCy Schubert case N: \ 19732b15cb3dSCy Schubert yyformat = S; \ 19742b15cb3dSCy Schubert break 19752b15cb3dSCy Schubert YYCASE_(0, YY_("syntax error")); 19762b15cb3dSCy Schubert YYCASE_(1, YY_("syntax error, unexpected %s")); 19772b15cb3dSCy Schubert YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); 19782b15cb3dSCy Schubert YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); 19792b15cb3dSCy Schubert YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); 19802b15cb3dSCy Schubert YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); 19812b15cb3dSCy Schubert # undef YYCASE_ 19822b15cb3dSCy Schubert } 19832b15cb3dSCy Schubert 19842b15cb3dSCy Schubert { 19852b15cb3dSCy Schubert YYSIZE_T yysize1 = yysize + yystrlen (yyformat); 19862b15cb3dSCy Schubert if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) 19872b15cb3dSCy Schubert return 2; 19882b15cb3dSCy Schubert yysize = yysize1; 19892b15cb3dSCy Schubert } 19902b15cb3dSCy Schubert 19912b15cb3dSCy Schubert if (*yymsg_alloc < yysize) 19922b15cb3dSCy Schubert { 19932b15cb3dSCy Schubert *yymsg_alloc = 2 * yysize; 19942b15cb3dSCy Schubert if (! (yysize <= *yymsg_alloc 19952b15cb3dSCy Schubert && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) 19962b15cb3dSCy Schubert *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; 19972b15cb3dSCy Schubert return 1; 19982b15cb3dSCy Schubert } 19992b15cb3dSCy Schubert 20002b15cb3dSCy Schubert /* Avoid sprintf, as that infringes on the user's name space. 20012b15cb3dSCy Schubert Don't have undefined behavior even if the translation 20022b15cb3dSCy Schubert produced a string with the wrong number of "%s"s. */ 20032b15cb3dSCy Schubert { 20042b15cb3dSCy Schubert char *yyp = *yymsg; 20052b15cb3dSCy Schubert int yyi = 0; 20062b15cb3dSCy Schubert while ((*yyp = *yyformat) != '\0') 20072b15cb3dSCy Schubert if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) 20082b15cb3dSCy Schubert { 20092b15cb3dSCy Schubert yyp += yytnamerr (yyp, yyarg[yyi++]); 20102b15cb3dSCy Schubert yyformat += 2; 20112b15cb3dSCy Schubert } 20122b15cb3dSCy Schubert else 20132b15cb3dSCy Schubert { 20142b15cb3dSCy Schubert yyp++; 20152b15cb3dSCy Schubert yyformat++; 20162b15cb3dSCy Schubert } 20172b15cb3dSCy Schubert } 20182b15cb3dSCy Schubert return 0; 20192b15cb3dSCy Schubert } 20202b15cb3dSCy Schubert #endif /* YYERROR_VERBOSE */ 20212b15cb3dSCy Schubert 20222b15cb3dSCy Schubert /*-----------------------------------------------. 20232b15cb3dSCy Schubert | Release the memory associated to this symbol. | 20242b15cb3dSCy Schubert `-----------------------------------------------*/ 20252b15cb3dSCy Schubert 2026*276da39aSCy Schubert /*ARGSUSED*/ 2027*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 2028*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 20292b15cb3dSCy Schubert static void 2030*276da39aSCy Schubert yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) 2031*276da39aSCy Schubert #else 2032*276da39aSCy Schubert static void 2033*276da39aSCy Schubert yydestruct (yymsg, yytype, yyvaluep) 2034*276da39aSCy Schubert const char *yymsg; 2035*276da39aSCy Schubert int yytype; 2036*276da39aSCy Schubert YYSTYPE *yyvaluep; 2037*276da39aSCy Schubert #endif 20382b15cb3dSCy Schubert { 20392b15cb3dSCy Schubert YYUSE (yyvaluep); 2040*276da39aSCy Schubert 20412b15cb3dSCy Schubert if (!yymsg) 20422b15cb3dSCy Schubert yymsg = "Deleting"; 20432b15cb3dSCy Schubert YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); 20442b15cb3dSCy Schubert 20452b15cb3dSCy Schubert YYUSE (yytype); 20462b15cb3dSCy Schubert } 20472b15cb3dSCy Schubert 20482b15cb3dSCy Schubert 20492b15cb3dSCy Schubert 20502b15cb3dSCy Schubert 20512b15cb3dSCy Schubert /* The lookahead symbol. */ 20522b15cb3dSCy Schubert int yychar; 20532b15cb3dSCy Schubert 2054*276da39aSCy Schubert 2055*276da39aSCy Schubert #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 2056*276da39aSCy Schubert # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 2057*276da39aSCy Schubert # define YY_IGNORE_MAYBE_UNINITIALIZED_END 2058*276da39aSCy Schubert #endif 2059*276da39aSCy Schubert #ifndef YY_INITIAL_VALUE 2060*276da39aSCy Schubert # define YY_INITIAL_VALUE(Value) /* Nothing. */ 2061*276da39aSCy Schubert #endif 2062*276da39aSCy Schubert 20632b15cb3dSCy Schubert /* The semantic value of the lookahead symbol. */ 2064*276da39aSCy Schubert YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); 2065*276da39aSCy Schubert 20662b15cb3dSCy Schubert /* Number of syntax errors so far. */ 20672b15cb3dSCy Schubert int yynerrs; 20682b15cb3dSCy Schubert 20692b15cb3dSCy Schubert 20702b15cb3dSCy Schubert /*----------. 20712b15cb3dSCy Schubert | yyparse. | 20722b15cb3dSCy Schubert `----------*/ 20732b15cb3dSCy Schubert 2074*276da39aSCy Schubert #ifdef YYPARSE_PARAM 2075*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 2076*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 20772b15cb3dSCy Schubert int 2078*276da39aSCy Schubert yyparse (void *YYPARSE_PARAM) 2079*276da39aSCy Schubert #else 2080*276da39aSCy Schubert int 2081*276da39aSCy Schubert yyparse (YYPARSE_PARAM) 2082*276da39aSCy Schubert void *YYPARSE_PARAM; 2083*276da39aSCy Schubert #endif 2084*276da39aSCy Schubert #else /* ! YYPARSE_PARAM */ 2085*276da39aSCy Schubert #if (defined __STDC__ || defined __C99__FUNC__ \ 2086*276da39aSCy Schubert || defined __cplusplus || defined _MSC_VER) 2087*276da39aSCy Schubert int 2088*276da39aSCy Schubert yyparse (void) 2089*276da39aSCy Schubert #else 2090*276da39aSCy Schubert int 2091*276da39aSCy Schubert yyparse () 2092*276da39aSCy Schubert 2093*276da39aSCy Schubert #endif 2094*276da39aSCy Schubert #endif 20952b15cb3dSCy Schubert { 20962b15cb3dSCy Schubert int yystate; 20972b15cb3dSCy Schubert /* Number of tokens to shift before error messages enabled. */ 20982b15cb3dSCy Schubert int yyerrstatus; 20992b15cb3dSCy Schubert 21002b15cb3dSCy Schubert /* The stacks and their tools: 2101*276da39aSCy Schubert `yyss': related to states. 2102*276da39aSCy Schubert `yyvs': related to semantic values. 21032b15cb3dSCy Schubert 21042b15cb3dSCy Schubert Refer to the stacks through separate pointers, to allow yyoverflow 21052b15cb3dSCy Schubert to reallocate them elsewhere. */ 21062b15cb3dSCy Schubert 21072b15cb3dSCy Schubert /* The state stack. */ 21082b15cb3dSCy Schubert yytype_int16 yyssa[YYINITDEPTH]; 21092b15cb3dSCy Schubert yytype_int16 *yyss; 21102b15cb3dSCy Schubert yytype_int16 *yyssp; 21112b15cb3dSCy Schubert 21122b15cb3dSCy Schubert /* The semantic value stack. */ 21132b15cb3dSCy Schubert YYSTYPE yyvsa[YYINITDEPTH]; 21142b15cb3dSCy Schubert YYSTYPE *yyvs; 21152b15cb3dSCy Schubert YYSTYPE *yyvsp; 21162b15cb3dSCy Schubert 21172b15cb3dSCy Schubert YYSIZE_T yystacksize; 21182b15cb3dSCy Schubert 21192b15cb3dSCy Schubert int yyn; 21202b15cb3dSCy Schubert int yyresult; 21212b15cb3dSCy Schubert /* Lookahead token as an internal (translated) token number. */ 21222b15cb3dSCy Schubert int yytoken = 0; 21232b15cb3dSCy Schubert /* The variables used to return semantic value and location from the 21242b15cb3dSCy Schubert action routines. */ 21252b15cb3dSCy Schubert YYSTYPE yyval; 21262b15cb3dSCy Schubert 21272b15cb3dSCy Schubert #if YYERROR_VERBOSE 21282b15cb3dSCy Schubert /* Buffer for error messages, and its allocated size. */ 21292b15cb3dSCy Schubert char yymsgbuf[128]; 21302b15cb3dSCy Schubert char *yymsg = yymsgbuf; 21312b15cb3dSCy Schubert YYSIZE_T yymsg_alloc = sizeof yymsgbuf; 21322b15cb3dSCy Schubert #endif 21332b15cb3dSCy Schubert 21342b15cb3dSCy Schubert #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 21352b15cb3dSCy Schubert 21362b15cb3dSCy Schubert /* The number of symbols on the RHS of the reduced rule. 21372b15cb3dSCy Schubert Keep to zero when no symbol should be popped. */ 21382b15cb3dSCy Schubert int yylen = 0; 21392b15cb3dSCy Schubert 21402b15cb3dSCy Schubert yyssp = yyss = yyssa; 21412b15cb3dSCy Schubert yyvsp = yyvs = yyvsa; 21422b15cb3dSCy Schubert yystacksize = YYINITDEPTH; 21432b15cb3dSCy Schubert 21442b15cb3dSCy Schubert YYDPRINTF ((stderr, "Starting parse\n")); 21452b15cb3dSCy Schubert 21462b15cb3dSCy Schubert yystate = 0; 21472b15cb3dSCy Schubert yyerrstatus = 0; 21482b15cb3dSCy Schubert yynerrs = 0; 21492b15cb3dSCy Schubert yychar = YYEMPTY; /* Cause a token to be read. */ 21502b15cb3dSCy Schubert goto yysetstate; 21512b15cb3dSCy Schubert 21522b15cb3dSCy Schubert /*------------------------------------------------------------. 21532b15cb3dSCy Schubert | yynewstate -- Push a new state, which is found in yystate. | 21542b15cb3dSCy Schubert `------------------------------------------------------------*/ 21552b15cb3dSCy Schubert yynewstate: 21562b15cb3dSCy Schubert /* In all cases, when you get here, the value and location stacks 21572b15cb3dSCy Schubert have just been pushed. So pushing a state here evens the stacks. */ 21582b15cb3dSCy Schubert yyssp++; 21592b15cb3dSCy Schubert 21602b15cb3dSCy Schubert yysetstate: 21612b15cb3dSCy Schubert *yyssp = yystate; 21622b15cb3dSCy Schubert 21632b15cb3dSCy Schubert if (yyss + yystacksize - 1 <= yyssp) 21642b15cb3dSCy Schubert { 21652b15cb3dSCy Schubert /* Get the current used size of the three stacks, in elements. */ 21662b15cb3dSCy Schubert YYSIZE_T yysize = yyssp - yyss + 1; 21672b15cb3dSCy Schubert 21682b15cb3dSCy Schubert #ifdef yyoverflow 21692b15cb3dSCy Schubert { 21702b15cb3dSCy Schubert /* Give user a chance to reallocate the stack. Use copies of 21712b15cb3dSCy Schubert these so that the &'s don't force the real ones into 21722b15cb3dSCy Schubert memory. */ 21732b15cb3dSCy Schubert YYSTYPE *yyvs1 = yyvs; 21742b15cb3dSCy Schubert yytype_int16 *yyss1 = yyss; 21752b15cb3dSCy Schubert 21762b15cb3dSCy Schubert /* Each stack pointer address is followed by the size of the 21772b15cb3dSCy Schubert data in use in that stack, in bytes. This used to be a 21782b15cb3dSCy Schubert conditional around just the two extra args, but that might 21792b15cb3dSCy Schubert be undefined if yyoverflow is a macro. */ 21802b15cb3dSCy Schubert yyoverflow (YY_("memory exhausted"), 21812b15cb3dSCy Schubert &yyss1, yysize * sizeof (*yyssp), 21822b15cb3dSCy Schubert &yyvs1, yysize * sizeof (*yyvsp), 21832b15cb3dSCy Schubert &yystacksize); 21842b15cb3dSCy Schubert 21852b15cb3dSCy Schubert yyss = yyss1; 21862b15cb3dSCy Schubert yyvs = yyvs1; 21872b15cb3dSCy Schubert } 21882b15cb3dSCy Schubert #else /* no yyoverflow */ 21892b15cb3dSCy Schubert # ifndef YYSTACK_RELOCATE 21902b15cb3dSCy Schubert goto yyexhaustedlab; 21912b15cb3dSCy Schubert # else 21922b15cb3dSCy Schubert /* Extend the stack our own way. */ 21932b15cb3dSCy Schubert if (YYMAXDEPTH <= yystacksize) 21942b15cb3dSCy Schubert goto yyexhaustedlab; 21952b15cb3dSCy Schubert yystacksize *= 2; 21962b15cb3dSCy Schubert if (YYMAXDEPTH < yystacksize) 21972b15cb3dSCy Schubert yystacksize = YYMAXDEPTH; 21982b15cb3dSCy Schubert 21992b15cb3dSCy Schubert { 22002b15cb3dSCy Schubert yytype_int16 *yyss1 = yyss; 22012b15cb3dSCy Schubert union yyalloc *yyptr = 22022b15cb3dSCy Schubert (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); 22032b15cb3dSCy Schubert if (! yyptr) 22042b15cb3dSCy Schubert goto yyexhaustedlab; 22052b15cb3dSCy Schubert YYSTACK_RELOCATE (yyss_alloc, yyss); 22062b15cb3dSCy Schubert YYSTACK_RELOCATE (yyvs_alloc, yyvs); 22072b15cb3dSCy Schubert # undef YYSTACK_RELOCATE 22082b15cb3dSCy Schubert if (yyss1 != yyssa) 22092b15cb3dSCy Schubert YYSTACK_FREE (yyss1); 22102b15cb3dSCy Schubert } 22112b15cb3dSCy Schubert # endif 22122b15cb3dSCy Schubert #endif /* no yyoverflow */ 22132b15cb3dSCy Schubert 22142b15cb3dSCy Schubert yyssp = yyss + yysize - 1; 22152b15cb3dSCy Schubert yyvsp = yyvs + yysize - 1; 22162b15cb3dSCy Schubert 22172b15cb3dSCy Schubert YYDPRINTF ((stderr, "Stack size increased to %lu\n", 22182b15cb3dSCy Schubert (unsigned long int) yystacksize)); 22192b15cb3dSCy Schubert 22202b15cb3dSCy Schubert if (yyss + yystacksize - 1 <= yyssp) 22212b15cb3dSCy Schubert YYABORT; 22222b15cb3dSCy Schubert } 22232b15cb3dSCy Schubert 22242b15cb3dSCy Schubert YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 22252b15cb3dSCy Schubert 22262b15cb3dSCy Schubert if (yystate == YYFINAL) 22272b15cb3dSCy Schubert YYACCEPT; 22282b15cb3dSCy Schubert 22292b15cb3dSCy Schubert goto yybackup; 22302b15cb3dSCy Schubert 22312b15cb3dSCy Schubert /*-----------. 22322b15cb3dSCy Schubert | yybackup. | 22332b15cb3dSCy Schubert `-----------*/ 22342b15cb3dSCy Schubert yybackup: 22352b15cb3dSCy Schubert 22362b15cb3dSCy Schubert /* Do appropriate processing given the current state. Read a 22372b15cb3dSCy Schubert lookahead token if we need one and don't already have one. */ 22382b15cb3dSCy Schubert 22392b15cb3dSCy Schubert /* First try to decide what to do without reference to lookahead token. */ 22402b15cb3dSCy Schubert yyn = yypact[yystate]; 22412b15cb3dSCy Schubert if (yypact_value_is_default (yyn)) 22422b15cb3dSCy Schubert goto yydefault; 22432b15cb3dSCy Schubert 22442b15cb3dSCy Schubert /* Not known => get a lookahead token if don't already have one. */ 22452b15cb3dSCy Schubert 22462b15cb3dSCy Schubert /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ 22472b15cb3dSCy Schubert if (yychar == YYEMPTY) 22482b15cb3dSCy Schubert { 22492b15cb3dSCy Schubert YYDPRINTF ((stderr, "Reading a token: ")); 2250*276da39aSCy Schubert yychar = YYLEX; 22512b15cb3dSCy Schubert } 22522b15cb3dSCy Schubert 22532b15cb3dSCy Schubert if (yychar <= YYEOF) 22542b15cb3dSCy Schubert { 22552b15cb3dSCy Schubert yychar = yytoken = YYEOF; 22562b15cb3dSCy Schubert YYDPRINTF ((stderr, "Now at end of input.\n")); 22572b15cb3dSCy Schubert } 22582b15cb3dSCy Schubert else 22592b15cb3dSCy Schubert { 22602b15cb3dSCy Schubert yytoken = YYTRANSLATE (yychar); 22612b15cb3dSCy Schubert YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); 22622b15cb3dSCy Schubert } 22632b15cb3dSCy Schubert 22642b15cb3dSCy Schubert /* If the proper action on seeing token YYTOKEN is to reduce or to 22652b15cb3dSCy Schubert detect an error, take that action. */ 22662b15cb3dSCy Schubert yyn += yytoken; 22672b15cb3dSCy Schubert if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) 22682b15cb3dSCy Schubert goto yydefault; 22692b15cb3dSCy Schubert yyn = yytable[yyn]; 22702b15cb3dSCy Schubert if (yyn <= 0) 22712b15cb3dSCy Schubert { 22722b15cb3dSCy Schubert if (yytable_value_is_error (yyn)) 22732b15cb3dSCy Schubert goto yyerrlab; 22742b15cb3dSCy Schubert yyn = -yyn; 22752b15cb3dSCy Schubert goto yyreduce; 22762b15cb3dSCy Schubert } 22772b15cb3dSCy Schubert 22782b15cb3dSCy Schubert /* Count tokens shifted since error; after three, turn off error 22792b15cb3dSCy Schubert status. */ 22802b15cb3dSCy Schubert if (yyerrstatus) 22812b15cb3dSCy Schubert yyerrstatus--; 22822b15cb3dSCy Schubert 22832b15cb3dSCy Schubert /* Shift the lookahead token. */ 22842b15cb3dSCy Schubert YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); 22852b15cb3dSCy Schubert 22862b15cb3dSCy Schubert /* Discard the shifted token. */ 22872b15cb3dSCy Schubert yychar = YYEMPTY; 22882b15cb3dSCy Schubert 22892b15cb3dSCy Schubert yystate = yyn; 22902b15cb3dSCy Schubert YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 22912b15cb3dSCy Schubert *++yyvsp = yylval; 22922b15cb3dSCy Schubert YY_IGNORE_MAYBE_UNINITIALIZED_END 22932b15cb3dSCy Schubert 22942b15cb3dSCy Schubert goto yynewstate; 22952b15cb3dSCy Schubert 22962b15cb3dSCy Schubert 22972b15cb3dSCy Schubert /*-----------------------------------------------------------. 22982b15cb3dSCy Schubert | yydefault -- do the default action for the current state. | 22992b15cb3dSCy Schubert `-----------------------------------------------------------*/ 23002b15cb3dSCy Schubert yydefault: 23012b15cb3dSCy Schubert yyn = yydefact[yystate]; 23022b15cb3dSCy Schubert if (yyn == 0) 23032b15cb3dSCy Schubert goto yyerrlab; 23042b15cb3dSCy Schubert goto yyreduce; 23052b15cb3dSCy Schubert 23062b15cb3dSCy Schubert 23072b15cb3dSCy Schubert /*-----------------------------. 23082b15cb3dSCy Schubert | yyreduce -- Do a reduction. | 23092b15cb3dSCy Schubert `-----------------------------*/ 23102b15cb3dSCy Schubert yyreduce: 23112b15cb3dSCy Schubert /* yyn is the number of a rule to reduce with. */ 23122b15cb3dSCy Schubert yylen = yyr2[yyn]; 23132b15cb3dSCy Schubert 23142b15cb3dSCy Schubert /* If YYLEN is nonzero, implement the default value of the action: 2315*276da39aSCy Schubert `$$ = $1'. 23162b15cb3dSCy Schubert 23172b15cb3dSCy Schubert Otherwise, the following line sets YYVAL to garbage. 23182b15cb3dSCy Schubert This behavior is undocumented and Bison 23192b15cb3dSCy Schubert users should not rely upon it. Assigning to YYVAL 23202b15cb3dSCy Schubert unconditionally makes the parser a bit smaller, and it avoids a 23212b15cb3dSCy Schubert GCC warning that YYVAL may be used uninitialized. */ 23222b15cb3dSCy Schubert yyval = yyvsp[1-yylen]; 23232b15cb3dSCy Schubert 23242b15cb3dSCy Schubert 23252b15cb3dSCy Schubert YY_REDUCE_PRINT (yyn); 23262b15cb3dSCy Schubert switch (yyn) 23272b15cb3dSCy Schubert { 23282b15cb3dSCy Schubert case 5: 2329*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2330*276da39aSCy Schubert #line 373 "../../ntpd/ntp_parser.y" 23312b15cb3dSCy Schubert { 23322b15cb3dSCy Schubert /* I will need to incorporate much more fine grained 23332b15cb3dSCy Schubert * error messages. The following should suffice for 23342b15cb3dSCy Schubert * the time being. 23352b15cb3dSCy Schubert */ 2336*276da39aSCy Schubert struct FILE_INFO * ip_ctx = lex_current(); 23372b15cb3dSCy Schubert msyslog(LOG_ERR, 23382b15cb3dSCy Schubert "syntax error in %s line %d, column %d", 2339*276da39aSCy Schubert ip_ctx->fname, 2340*276da39aSCy Schubert ip_ctx->errpos.nline, 2341*276da39aSCy Schubert ip_ctx->errpos.ncol); 23422b15cb3dSCy Schubert } 23432b15cb3dSCy Schubert break; 23442b15cb3dSCy Schubert 23452b15cb3dSCy Schubert case 20: 2346*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2347*276da39aSCy Schubert #line 409 "../../ntpd/ntp_parser.y" 23482b15cb3dSCy Schubert { 23492b15cb3dSCy Schubert peer_node *my_node; 23502b15cb3dSCy Schubert 2351*276da39aSCy Schubert my_node = create_peer_node((yyvsp[(1) - (3)].Integer), (yyvsp[(2) - (3)].Address_node), (yyvsp[(3) - (3)].Attr_val_fifo)); 23522b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.peers, my_node); 23532b15cb3dSCy Schubert } 23542b15cb3dSCy Schubert break; 23552b15cb3dSCy Schubert 2356a25439b6SCy Schubert case 27: 2357*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2358*276da39aSCy Schubert #line 428 "../../ntpd/ntp_parser.y" 2359*276da39aSCy Schubert { (yyval.Address_node) = create_address_node((yyvsp[(2) - (2)].String), (yyvsp[(1) - (2)].Integer)); } 23602b15cb3dSCy Schubert break; 23612b15cb3dSCy Schubert 2362a25439b6SCy Schubert case 28: 2363*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2364*276da39aSCy Schubert #line 433 "../../ntpd/ntp_parser.y" 2365*276da39aSCy Schubert { (yyval.Address_node) = create_address_node((yyvsp[(1) - (1)].String), AF_UNSPEC); } 23662b15cb3dSCy Schubert break; 23672b15cb3dSCy Schubert 2368a25439b6SCy Schubert case 29: 2369*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2370*276da39aSCy Schubert #line 438 "../../ntpd/ntp_parser.y" 2371a25439b6SCy Schubert { (yyval.Integer) = AF_INET; } 23722b15cb3dSCy Schubert break; 23732b15cb3dSCy Schubert 2374a25439b6SCy Schubert case 30: 2375*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2376*276da39aSCy Schubert #line 440 "../../ntpd/ntp_parser.y" 2377a25439b6SCy Schubert { (yyval.Integer) = AF_INET6; } 23782b15cb3dSCy Schubert break; 23792b15cb3dSCy Schubert 2380a25439b6SCy Schubert case 31: 2381*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2382*276da39aSCy Schubert #line 445 "../../ntpd/ntp_parser.y" 2383a25439b6SCy Schubert { (yyval.Attr_val_fifo) = NULL; } 2384a25439b6SCy Schubert break; 2385a25439b6SCy Schubert 2386a25439b6SCy Schubert case 32: 2387*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2388*276da39aSCy Schubert #line 447 "../../ntpd/ntp_parser.y" 23892b15cb3dSCy Schubert { 2390*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2391*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 23922b15cb3dSCy Schubert } 23932b15cb3dSCy Schubert break; 23942b15cb3dSCy Schubert 2395a25439b6SCy Schubert case 36: 2396*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2397*276da39aSCy Schubert #line 461 "../../ntpd/ntp_parser.y" 2398*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); } 23992b15cb3dSCy Schubert break; 24002b15cb3dSCy Schubert 2401a25439b6SCy Schubert case 45: 2402*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2403*276da39aSCy Schubert #line 477 "../../ntpd/ntp_parser.y" 2404*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 24052b15cb3dSCy Schubert break; 24062b15cb3dSCy Schubert 2407a25439b6SCy Schubert case 46: 2408*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2409*276da39aSCy Schubert #line 479 "../../ntpd/ntp_parser.y" 2410*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_uval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 24112b15cb3dSCy Schubert break; 24122b15cb3dSCy Schubert 2413a25439b6SCy Schubert case 53: 2414*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2415*276da39aSCy Schubert #line 493 "../../ntpd/ntp_parser.y" 2416*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); } 2417a25439b6SCy Schubert break; 2418a25439b6SCy Schubert 24192b15cb3dSCy Schubert case 55: 2420*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2421*276da39aSCy Schubert #line 507 "../../ntpd/ntp_parser.y" 24222b15cb3dSCy Schubert { 24232b15cb3dSCy Schubert unpeer_node *my_node; 24242b15cb3dSCy Schubert 2425*276da39aSCy Schubert my_node = create_unpeer_node((yyvsp[(2) - (2)].Address_node)); 24262b15cb3dSCy Schubert if (my_node) 24272b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.unpeers, my_node); 24282b15cb3dSCy Schubert } 24292b15cb3dSCy Schubert break; 24302b15cb3dSCy Schubert 2431a25439b6SCy Schubert case 58: 2432*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2433*276da39aSCy Schubert #line 528 "../../ntpd/ntp_parser.y" 2434a25439b6SCy Schubert { cfgt.broadcastclient = 1; } 24352b15cb3dSCy Schubert break; 24362b15cb3dSCy Schubert 2437a25439b6SCy Schubert case 59: 2438*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2439*276da39aSCy Schubert #line 530 "../../ntpd/ntp_parser.y" 2440*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.manycastserver, (yyvsp[(2) - (2)].Address_fifo)); } 24412b15cb3dSCy Schubert break; 24422b15cb3dSCy Schubert 2443a25439b6SCy Schubert case 60: 2444*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2445*276da39aSCy Schubert #line 532 "../../ntpd/ntp_parser.y" 2446*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.multicastclient, (yyvsp[(2) - (2)].Address_fifo)); } 24472b15cb3dSCy Schubert break; 24482b15cb3dSCy Schubert 2449a25439b6SCy Schubert case 61: 2450*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2451*276da39aSCy Schubert #line 534 "../../ntpd/ntp_parser.y" 2452*276da39aSCy Schubert { cfgt.mdnstries = (yyvsp[(2) - (2)].Integer); } 2453a25439b6SCy Schubert break; 2454a25439b6SCy Schubert 24552b15cb3dSCy Schubert case 62: 2456*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2457*276da39aSCy Schubert #line 545 "../../ntpd/ntp_parser.y" 24582b15cb3dSCy Schubert { 24592b15cb3dSCy Schubert attr_val *atrv; 24602b15cb3dSCy Schubert 2461*276da39aSCy Schubert atrv = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); 24622b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, atrv); 24632b15cb3dSCy Schubert } 24642b15cb3dSCy Schubert break; 24652b15cb3dSCy Schubert 2466a25439b6SCy Schubert case 63: 2467*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2468*276da39aSCy Schubert #line 552 "../../ntpd/ntp_parser.y" 2469*276da39aSCy Schubert { cfgt.auth.control_key = (yyvsp[(2) - (2)].Integer); } 2470a25439b6SCy Schubert break; 2471a25439b6SCy Schubert 2472a25439b6SCy Schubert case 64: 2473*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2474*276da39aSCy Schubert #line 554 "../../ntpd/ntp_parser.y" 24752b15cb3dSCy Schubert { 24762b15cb3dSCy Schubert cfgt.auth.cryptosw++; 2477*276da39aSCy Schubert CONCAT_G_FIFOS(cfgt.auth.crypto_cmd_list, (yyvsp[(2) - (2)].Attr_val_fifo)); 24782b15cb3dSCy Schubert } 24792b15cb3dSCy Schubert break; 24802b15cb3dSCy Schubert 2481a25439b6SCy Schubert case 65: 2482*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2483*276da39aSCy Schubert #line 559 "../../ntpd/ntp_parser.y" 2484*276da39aSCy Schubert { cfgt.auth.keys = (yyvsp[(2) - (2)].String); } 24852b15cb3dSCy Schubert break; 24862b15cb3dSCy Schubert 2487a25439b6SCy Schubert case 66: 2488*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2489*276da39aSCy Schubert #line 561 "../../ntpd/ntp_parser.y" 2490*276da39aSCy Schubert { cfgt.auth.keysdir = (yyvsp[(2) - (2)].String); } 24912b15cb3dSCy Schubert break; 24922b15cb3dSCy Schubert 2493a25439b6SCy Schubert case 67: 2494*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2495*276da39aSCy Schubert #line 563 "../../ntpd/ntp_parser.y" 2496*276da39aSCy Schubert { cfgt.auth.request_key = (yyvsp[(2) - (2)].Integer); } 24972b15cb3dSCy Schubert break; 24982b15cb3dSCy Schubert 2499a25439b6SCy Schubert case 68: 2500*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2501*276da39aSCy Schubert #line 565 "../../ntpd/ntp_parser.y" 2502*276da39aSCy Schubert { cfgt.auth.revoke = (yyvsp[(2) - (2)].Integer); } 2503a25439b6SCy Schubert break; 2504a25439b6SCy Schubert 2505a25439b6SCy Schubert case 69: 2506*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2507*276da39aSCy Schubert #line 567 "../../ntpd/ntp_parser.y" 25082b15cb3dSCy Schubert { 2509*276da39aSCy Schubert cfgt.auth.trusted_key_list = (yyvsp[(2) - (2)].Attr_val_fifo); 25102b15cb3dSCy Schubert 25112b15cb3dSCy Schubert // if (!cfgt.auth.trusted_key_list) 25122b15cb3dSCy Schubert // cfgt.auth.trusted_key_list = $2; 25132b15cb3dSCy Schubert // else 25142b15cb3dSCy Schubert // LINK_SLIST(cfgt.auth.trusted_key_list, $2, link); 25152b15cb3dSCy Schubert } 25162b15cb3dSCy Schubert break; 25172b15cb3dSCy Schubert 2518a25439b6SCy Schubert case 70: 2519*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2520*276da39aSCy Schubert #line 576 "../../ntpd/ntp_parser.y" 2521*276da39aSCy Schubert { cfgt.auth.ntp_signd_socket = (yyvsp[(2) - (2)].String); } 25222b15cb3dSCy Schubert break; 25232b15cb3dSCy Schubert 2524a25439b6SCy Schubert case 71: 2525*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2526*276da39aSCy Schubert #line 581 "../../ntpd/ntp_parser.y" 2527a25439b6SCy Schubert { (yyval.Attr_val_fifo) = NULL; } 2528a25439b6SCy Schubert break; 2529a25439b6SCy Schubert 2530a25439b6SCy Schubert case 72: 2531*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2532*276da39aSCy Schubert #line 583 "../../ntpd/ntp_parser.y" 25332b15cb3dSCy Schubert { 2534*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2535*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 25362b15cb3dSCy Schubert } 25372b15cb3dSCy Schubert break; 25382b15cb3dSCy Schubert 2539a25439b6SCy Schubert case 73: 2540*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2541*276da39aSCy Schubert #line 591 "../../ntpd/ntp_parser.y" 2542*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); } 2543a25439b6SCy Schubert break; 2544a25439b6SCy Schubert 2545a25439b6SCy Schubert case 74: 2546*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2547*276da39aSCy Schubert #line 593 "../../ntpd/ntp_parser.y" 25482b15cb3dSCy Schubert { 25492b15cb3dSCy Schubert (yyval.Attr_val) = NULL; 2550*276da39aSCy Schubert cfgt.auth.revoke = (yyvsp[(2) - (2)].Integer); 25512b15cb3dSCy Schubert msyslog(LOG_WARNING, 25522b15cb3dSCy Schubert "'crypto revoke %d' is deprecated, " 25532b15cb3dSCy Schubert "please use 'revoke %d' instead.", 25542b15cb3dSCy Schubert cfgt.auth.revoke, cfgt.auth.revoke); 25552b15cb3dSCy Schubert } 25562b15cb3dSCy Schubert break; 25572b15cb3dSCy Schubert 2558a25439b6SCy Schubert case 80: 2559*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2560*276da39aSCy Schubert #line 618 "../../ntpd/ntp_parser.y" 2561*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.orphan_cmds, (yyvsp[(2) - (2)].Attr_val_fifo)); } 2562a25439b6SCy Schubert break; 2563a25439b6SCy Schubert 25642b15cb3dSCy Schubert case 81: 2565*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2566*276da39aSCy Schubert #line 623 "../../ntpd/ntp_parser.y" 25672b15cb3dSCy Schubert { 2568*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2569*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 25702b15cb3dSCy Schubert } 25712b15cb3dSCy Schubert break; 25722b15cb3dSCy Schubert 25732b15cb3dSCy Schubert case 82: 2574*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2575*276da39aSCy Schubert #line 628 "../../ntpd/ntp_parser.y" 25762b15cb3dSCy Schubert { 25772b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2578*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 25792b15cb3dSCy Schubert } 25802b15cb3dSCy Schubert break; 25812b15cb3dSCy Schubert 2582a25439b6SCy Schubert case 83: 2583*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2584*276da39aSCy Schubert #line 636 "../../ntpd/ntp_parser.y" 2585*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (double)(yyvsp[(2) - (2)].Integer)); } 25862b15cb3dSCy Schubert break; 25872b15cb3dSCy Schubert 2588a25439b6SCy Schubert case 84: 2589*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2590*276da39aSCy Schubert #line 638 "../../ntpd/ntp_parser.y" 2591*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); } 25922b15cb3dSCy Schubert break; 25932b15cb3dSCy Schubert 2594a25439b6SCy Schubert case 85: 2595*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2596*276da39aSCy Schubert #line 640 "../../ntpd/ntp_parser.y" 2597*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (double)(yyvsp[(2) - (2)].Integer)); } 25982b15cb3dSCy Schubert break; 25992b15cb3dSCy Schubert 2600a25439b6SCy Schubert case 96: 2601*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2602*276da39aSCy Schubert #line 666 "../../ntpd/ntp_parser.y" 2603*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.stats_list, (yyvsp[(2) - (2)].Int_fifo)); } 2604a25439b6SCy Schubert break; 2605a25439b6SCy Schubert 2606a25439b6SCy Schubert case 97: 2607*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2608*276da39aSCy Schubert #line 668 "../../ntpd/ntp_parser.y" 26092b15cb3dSCy Schubert { 2610*276da39aSCy Schubert if (lex_from_file()) { 2611*276da39aSCy Schubert cfgt.stats_dir = (yyvsp[(2) - (2)].String); 26122b15cb3dSCy Schubert } else { 2613*276da39aSCy Schubert YYFREE((yyvsp[(2) - (2)].String)); 2614*276da39aSCy Schubert yyerror("statsdir remote configuration ignored"); 26152b15cb3dSCy Schubert } 26162b15cb3dSCy Schubert } 26172b15cb3dSCy Schubert break; 26182b15cb3dSCy Schubert 26192b15cb3dSCy Schubert case 98: 2620*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2621*276da39aSCy Schubert #line 677 "../../ntpd/ntp_parser.y" 26222b15cb3dSCy Schubert { 26232b15cb3dSCy Schubert filegen_node *fgn; 26242b15cb3dSCy Schubert 2625*276da39aSCy Schubert fgn = create_filegen_node((yyvsp[(2) - (3)].Integer), (yyvsp[(3) - (3)].Attr_val_fifo)); 26262b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.filegen_opts, fgn); 26272b15cb3dSCy Schubert } 26282b15cb3dSCy Schubert break; 26292b15cb3dSCy Schubert 26302b15cb3dSCy Schubert case 99: 2631*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2632*276da39aSCy Schubert #line 687 "../../ntpd/ntp_parser.y" 26332b15cb3dSCy Schubert { 2634*276da39aSCy Schubert (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo); 2635*276da39aSCy Schubert APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[(2) - (2)].Integer))); 26362b15cb3dSCy Schubert } 26372b15cb3dSCy Schubert break; 26382b15cb3dSCy Schubert 26392b15cb3dSCy Schubert case 100: 2640*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2641*276da39aSCy Schubert #line 692 "../../ntpd/ntp_parser.y" 26422b15cb3dSCy Schubert { 26432b15cb3dSCy Schubert (yyval.Int_fifo) = NULL; 2644*276da39aSCy Schubert APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[(1) - (1)].Integer))); 26452b15cb3dSCy Schubert } 26462b15cb3dSCy Schubert break; 26472b15cb3dSCy Schubert 2648a25439b6SCy Schubert case 109: 2649*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2650*276da39aSCy Schubert #line 711 "../../ntpd/ntp_parser.y" 2651a25439b6SCy Schubert { (yyval.Attr_val_fifo) = NULL; } 2652a25439b6SCy Schubert break; 2653a25439b6SCy Schubert 2654a25439b6SCy Schubert case 110: 2655*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2656*276da39aSCy Schubert #line 713 "../../ntpd/ntp_parser.y" 26572b15cb3dSCy Schubert { 2658*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2659*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 26602b15cb3dSCy Schubert } 26612b15cb3dSCy Schubert break; 26622b15cb3dSCy Schubert 26632b15cb3dSCy Schubert case 111: 2664*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2665*276da39aSCy Schubert #line 721 "../../ntpd/ntp_parser.y" 26662b15cb3dSCy Schubert { 2667*276da39aSCy Schubert if (lex_from_file()) { 2668*276da39aSCy Schubert (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); 26692b15cb3dSCy Schubert } else { 26702b15cb3dSCy Schubert (yyval.Attr_val) = NULL; 2671*276da39aSCy Schubert YYFREE((yyvsp[(2) - (2)].String)); 2672*276da39aSCy Schubert yyerror("filegen file remote config ignored"); 26732b15cb3dSCy Schubert } 26742b15cb3dSCy Schubert } 26752b15cb3dSCy Schubert break; 26762b15cb3dSCy Schubert 26772b15cb3dSCy Schubert case 112: 2678*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2679*276da39aSCy Schubert #line 731 "../../ntpd/ntp_parser.y" 26802b15cb3dSCy Schubert { 2681*276da39aSCy Schubert if (lex_from_file()) { 2682*276da39aSCy Schubert (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); 26832b15cb3dSCy Schubert } else { 26842b15cb3dSCy Schubert (yyval.Attr_val) = NULL; 2685*276da39aSCy Schubert yyerror("filegen type remote config ignored"); 26862b15cb3dSCy Schubert } 26872b15cb3dSCy Schubert } 26882b15cb3dSCy Schubert break; 26892b15cb3dSCy Schubert 26902b15cb3dSCy Schubert case 113: 2691*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2692*276da39aSCy Schubert #line 740 "../../ntpd/ntp_parser.y" 26932b15cb3dSCy Schubert { 26942b15cb3dSCy Schubert const char *err; 26952b15cb3dSCy Schubert 2696*276da39aSCy Schubert if (lex_from_file()) { 2697*276da39aSCy Schubert (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); 26982b15cb3dSCy Schubert } else { 26992b15cb3dSCy Schubert (yyval.Attr_val) = NULL; 2700*276da39aSCy Schubert if (T_Link == (yyvsp[(1) - (1)].Integer)) 27012b15cb3dSCy Schubert err = "filegen link remote config ignored"; 27022b15cb3dSCy Schubert else 27032b15cb3dSCy Schubert err = "filegen nolink remote config ignored"; 2704*276da39aSCy Schubert yyerror(err); 27052b15cb3dSCy Schubert } 27062b15cb3dSCy Schubert } 27072b15cb3dSCy Schubert break; 27082b15cb3dSCy Schubert 2709a25439b6SCy Schubert case 114: 2710*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2711*276da39aSCy Schubert #line 755 "../../ntpd/ntp_parser.y" 2712*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); } 2713a25439b6SCy Schubert break; 2714a25439b6SCy Schubert 27152b15cb3dSCy Schubert case 126: 2716*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2717*276da39aSCy Schubert #line 785 "../../ntpd/ntp_parser.y" 27182b15cb3dSCy Schubert { 2719*276da39aSCy Schubert CONCAT_G_FIFOS(cfgt.discard_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); 27202b15cb3dSCy Schubert } 27212b15cb3dSCy Schubert break; 27222b15cb3dSCy Schubert 27232b15cb3dSCy Schubert case 127: 2724*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2725*276da39aSCy Schubert #line 789 "../../ntpd/ntp_parser.y" 27262b15cb3dSCy Schubert { 2727*276da39aSCy Schubert CONCAT_G_FIFOS(cfgt.mru_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); 27282b15cb3dSCy Schubert } 27292b15cb3dSCy Schubert break; 27302b15cb3dSCy Schubert 27312b15cb3dSCy Schubert case 128: 2732*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2733*276da39aSCy Schubert #line 793 "../../ntpd/ntp_parser.y" 27342b15cb3dSCy Schubert { 27352b15cb3dSCy Schubert restrict_node *rn; 27362b15cb3dSCy Schubert 2737*276da39aSCy Schubert rn = create_restrict_node((yyvsp[(2) - (3)].Address_node), NULL, (yyvsp[(3) - (3)].Int_fifo), 2738*276da39aSCy Schubert lex_current()->curpos.nline); 27392b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 27402b15cb3dSCy Schubert } 27412b15cb3dSCy Schubert break; 27422b15cb3dSCy Schubert 27432b15cb3dSCy Schubert case 129: 2744*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2745*276da39aSCy Schubert #line 801 "../../ntpd/ntp_parser.y" 27462b15cb3dSCy Schubert { 27472b15cb3dSCy Schubert restrict_node *rn; 27482b15cb3dSCy Schubert 2749*276da39aSCy Schubert rn = create_restrict_node((yyvsp[(2) - (5)].Address_node), (yyvsp[(4) - (5)].Address_node), (yyvsp[(5) - (5)].Int_fifo), 2750*276da39aSCy Schubert lex_current()->curpos.nline); 27512b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 27522b15cb3dSCy Schubert } 27532b15cb3dSCy Schubert break; 27542b15cb3dSCy Schubert 27552b15cb3dSCy Schubert case 130: 2756*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2757*276da39aSCy Schubert #line 809 "../../ntpd/ntp_parser.y" 27582b15cb3dSCy Schubert { 27592b15cb3dSCy Schubert restrict_node *rn; 27602b15cb3dSCy Schubert 2761*276da39aSCy Schubert rn = create_restrict_node(NULL, NULL, (yyvsp[(3) - (3)].Int_fifo), 2762*276da39aSCy Schubert lex_current()->curpos.nline); 27632b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 27642b15cb3dSCy Schubert } 27652b15cb3dSCy Schubert break; 27662b15cb3dSCy Schubert 27672b15cb3dSCy Schubert case 131: 2768*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2769*276da39aSCy Schubert #line 817 "../../ntpd/ntp_parser.y" 27702b15cb3dSCy Schubert { 27712b15cb3dSCy Schubert restrict_node *rn; 27722b15cb3dSCy Schubert 27732b15cb3dSCy Schubert rn = create_restrict_node( 27742b15cb3dSCy Schubert create_address_node( 27752b15cb3dSCy Schubert estrdup("0.0.0.0"), 27762b15cb3dSCy Schubert AF_INET), 27772b15cb3dSCy Schubert create_address_node( 27782b15cb3dSCy Schubert estrdup("0.0.0.0"), 27792b15cb3dSCy Schubert AF_INET), 2780*276da39aSCy Schubert (yyvsp[(4) - (4)].Int_fifo), 2781*276da39aSCy Schubert lex_current()->curpos.nline); 27822b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 27832b15cb3dSCy Schubert } 27842b15cb3dSCy Schubert break; 27852b15cb3dSCy Schubert 27862b15cb3dSCy Schubert case 132: 2787*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2788*276da39aSCy Schubert #line 832 "../../ntpd/ntp_parser.y" 27892b15cb3dSCy Schubert { 27902b15cb3dSCy Schubert restrict_node *rn; 27912b15cb3dSCy Schubert 27922b15cb3dSCy Schubert rn = create_restrict_node( 27932b15cb3dSCy Schubert create_address_node( 27942b15cb3dSCy Schubert estrdup("::"), 27952b15cb3dSCy Schubert AF_INET6), 27962b15cb3dSCy Schubert create_address_node( 27972b15cb3dSCy Schubert estrdup("::"), 27982b15cb3dSCy Schubert AF_INET6), 2799*276da39aSCy Schubert (yyvsp[(4) - (4)].Int_fifo), 2800*276da39aSCy Schubert lex_current()->curpos.nline); 28012b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 28022b15cb3dSCy Schubert } 28032b15cb3dSCy Schubert break; 28042b15cb3dSCy Schubert 28052b15cb3dSCy Schubert case 133: 2806*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2807*276da39aSCy Schubert #line 847 "../../ntpd/ntp_parser.y" 28082b15cb3dSCy Schubert { 28092b15cb3dSCy Schubert restrict_node * rn; 28102b15cb3dSCy Schubert 2811*276da39aSCy Schubert APPEND_G_FIFO((yyvsp[(3) - (3)].Int_fifo), create_int_node((yyvsp[(2) - (3)].Integer))); 28122b15cb3dSCy Schubert rn = create_restrict_node( 2813*276da39aSCy Schubert NULL, NULL, (yyvsp[(3) - (3)].Int_fifo), lex_current()->curpos.nline); 28142b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.restrict_opts, rn); 28152b15cb3dSCy Schubert } 28162b15cb3dSCy Schubert break; 28172b15cb3dSCy Schubert 2818a25439b6SCy Schubert case 134: 2819*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2820*276da39aSCy Schubert #line 859 "../../ntpd/ntp_parser.y" 2821a25439b6SCy Schubert { (yyval.Int_fifo) = NULL; } 2822a25439b6SCy Schubert break; 2823a25439b6SCy Schubert 2824a25439b6SCy Schubert case 135: 2825*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2826*276da39aSCy Schubert #line 861 "../../ntpd/ntp_parser.y" 28272b15cb3dSCy Schubert { 2828*276da39aSCy Schubert (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo); 2829*276da39aSCy Schubert APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[(2) - (2)].Integer))); 28302b15cb3dSCy Schubert } 28312b15cb3dSCy Schubert break; 28322b15cb3dSCy Schubert 28332b15cb3dSCy Schubert case 151: 2834*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2835*276da39aSCy Schubert #line 887 "../../ntpd/ntp_parser.y" 28362b15cb3dSCy Schubert { 2837*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2838*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 28392b15cb3dSCy Schubert } 28402b15cb3dSCy Schubert break; 28412b15cb3dSCy Schubert 28422b15cb3dSCy Schubert case 152: 2843*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2844*276da39aSCy Schubert #line 892 "../../ntpd/ntp_parser.y" 28452b15cb3dSCy Schubert { 28462b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2847*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 28482b15cb3dSCy Schubert } 28492b15cb3dSCy Schubert break; 28502b15cb3dSCy Schubert 2851a25439b6SCy Schubert case 153: 2852*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2853*276da39aSCy Schubert #line 900 "../../ntpd/ntp_parser.y" 2854*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 2855a25439b6SCy Schubert break; 2856a25439b6SCy Schubert 28572b15cb3dSCy Schubert case 157: 2858*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2859*276da39aSCy Schubert #line 911 "../../ntpd/ntp_parser.y" 28602b15cb3dSCy Schubert { 2861*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2862*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 28632b15cb3dSCy Schubert } 28642b15cb3dSCy Schubert break; 28652b15cb3dSCy Schubert 28662b15cb3dSCy Schubert case 158: 2867*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2868*276da39aSCy Schubert #line 916 "../../ntpd/ntp_parser.y" 28692b15cb3dSCy Schubert { 28702b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2871*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 28722b15cb3dSCy Schubert } 28732b15cb3dSCy Schubert break; 28742b15cb3dSCy Schubert 2875a25439b6SCy Schubert case 159: 2876*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2877*276da39aSCy Schubert #line 924 "../../ntpd/ntp_parser.y" 2878*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 2879a25439b6SCy Schubert break; 2880a25439b6SCy Schubert 28812b15cb3dSCy Schubert case 168: 2882*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2883*276da39aSCy Schubert #line 944 "../../ntpd/ntp_parser.y" 28842b15cb3dSCy Schubert { 28852b15cb3dSCy Schubert addr_opts_node *aon; 28862b15cb3dSCy Schubert 2887*276da39aSCy Schubert aon = create_addr_opts_node((yyvsp[(2) - (3)].Address_node), (yyvsp[(3) - (3)].Attr_val_fifo)); 28882b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.fudge, aon); 28892b15cb3dSCy Schubert } 28902b15cb3dSCy Schubert break; 28912b15cb3dSCy Schubert 28922b15cb3dSCy Schubert case 169: 2893*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2894*276da39aSCy Schubert #line 954 "../../ntpd/ntp_parser.y" 28952b15cb3dSCy Schubert { 2896*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2897*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 28982b15cb3dSCy Schubert } 28992b15cb3dSCy Schubert break; 29002b15cb3dSCy Schubert 29012b15cb3dSCy Schubert case 170: 2902*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2903*276da39aSCy Schubert #line 959 "../../ntpd/ntp_parser.y" 29042b15cb3dSCy Schubert { 29052b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2906*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 29072b15cb3dSCy Schubert } 29082b15cb3dSCy Schubert break; 29092b15cb3dSCy Schubert 2910a25439b6SCy Schubert case 171: 2911*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2912*276da39aSCy Schubert #line 967 "../../ntpd/ntp_parser.y" 2913*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); } 29142b15cb3dSCy Schubert break; 29152b15cb3dSCy Schubert 2916a25439b6SCy Schubert case 172: 2917*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2918*276da39aSCy Schubert #line 969 "../../ntpd/ntp_parser.y" 2919*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 29202b15cb3dSCy Schubert break; 29212b15cb3dSCy Schubert 2922a25439b6SCy Schubert case 173: 2923*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2924*276da39aSCy Schubert #line 971 "../../ntpd/ntp_parser.y" 2925*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 29262b15cb3dSCy Schubert break; 29272b15cb3dSCy Schubert 2928a25439b6SCy Schubert case 174: 2929*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2930*276da39aSCy Schubert #line 973 "../../ntpd/ntp_parser.y" 2931*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); } 29322b15cb3dSCy Schubert break; 29332b15cb3dSCy Schubert 2934a25439b6SCy Schubert case 175: 2935*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2936*276da39aSCy Schubert #line 975 "../../ntpd/ntp_parser.y" 2937*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); } 29382b15cb3dSCy Schubert break; 29392b15cb3dSCy Schubert 2940a25439b6SCy Schubert case 182: 2941*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2942*276da39aSCy Schubert #line 996 "../../ntpd/ntp_parser.y" 2943*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.rlimit, (yyvsp[(2) - (2)].Attr_val_fifo)); } 2944a25439b6SCy Schubert break; 2945a25439b6SCy Schubert 29462b15cb3dSCy Schubert case 183: 2947*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2948*276da39aSCy Schubert #line 1001 "../../ntpd/ntp_parser.y" 29492b15cb3dSCy Schubert { 2950*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2951*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 29522b15cb3dSCy Schubert } 29532b15cb3dSCy Schubert break; 29542b15cb3dSCy Schubert 29552b15cb3dSCy Schubert case 184: 2956*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2957*276da39aSCy Schubert #line 1006 "../../ntpd/ntp_parser.y" 29582b15cb3dSCy Schubert { 29592b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2960*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 29612b15cb3dSCy Schubert } 29622b15cb3dSCy Schubert break; 29632b15cb3dSCy Schubert 2964a25439b6SCy Schubert case 185: 2965*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2966*276da39aSCy Schubert #line 1014 "../../ntpd/ntp_parser.y" 2967*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 29682b15cb3dSCy Schubert break; 29692b15cb3dSCy Schubert 2970a25439b6SCy Schubert case 189: 2971*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2972*276da39aSCy Schubert #line 1030 "../../ntpd/ntp_parser.y" 2973*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.enable_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); } 29742b15cb3dSCy Schubert break; 29752b15cb3dSCy Schubert 2976a25439b6SCy Schubert case 190: 2977*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2978*276da39aSCy Schubert #line 1032 "../../ntpd/ntp_parser.y" 2979*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.disable_opts, (yyvsp[(2) - (2)].Attr_val_fifo)); } 2980a25439b6SCy Schubert break; 2981a25439b6SCy Schubert 29822b15cb3dSCy Schubert case 191: 2983*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2984*276da39aSCy Schubert #line 1037 "../../ntpd/ntp_parser.y" 29852b15cb3dSCy Schubert { 2986*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 2987*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 29882b15cb3dSCy Schubert } 29892b15cb3dSCy Schubert break; 29902b15cb3dSCy Schubert 29912b15cb3dSCy Schubert case 192: 2992*276da39aSCy Schubert /* Line 1787 of yacc.c */ 2993*276da39aSCy Schubert #line 1042 "../../ntpd/ntp_parser.y" 29942b15cb3dSCy Schubert { 29952b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 2996*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 29972b15cb3dSCy Schubert } 29982b15cb3dSCy Schubert break; 29992b15cb3dSCy Schubert 3000a25439b6SCy Schubert case 193: 3001*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3002*276da39aSCy Schubert #line 1050 "../../ntpd/ntp_parser.y" 3003*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); } 3004a25439b6SCy Schubert break; 3005a25439b6SCy Schubert 3006a25439b6SCy Schubert case 194: 3007*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3008*276da39aSCy Schubert #line 1052 "../../ntpd/ntp_parser.y" 30092b15cb3dSCy Schubert { 3010*276da39aSCy Schubert if (lex_from_file()) { 3011*276da39aSCy Schubert (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[(1) - (1)].Integer)); 30122b15cb3dSCy Schubert } else { 30132b15cb3dSCy Schubert char err_str[128]; 30142b15cb3dSCy Schubert 30152b15cb3dSCy Schubert (yyval.Attr_val) = NULL; 30162b15cb3dSCy Schubert snprintf(err_str, sizeof(err_str), 30172b15cb3dSCy Schubert "enable/disable %s remote configuration ignored", 3018*276da39aSCy Schubert keyword((yyvsp[(1) - (1)].Integer))); 3019*276da39aSCy Schubert yyerror(err_str); 30202b15cb3dSCy Schubert } 30212b15cb3dSCy Schubert } 30222b15cb3dSCy Schubert break; 30232b15cb3dSCy Schubert 3024a25439b6SCy Schubert case 203: 3025*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3026*276da39aSCy Schubert #line 1087 "../../ntpd/ntp_parser.y" 3027*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.tinker, (yyvsp[(2) - (2)].Attr_val_fifo)); } 3028a25439b6SCy Schubert break; 3029a25439b6SCy Schubert 30302b15cb3dSCy Schubert case 204: 3031*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3032*276da39aSCy Schubert #line 1092 "../../ntpd/ntp_parser.y" 30332b15cb3dSCy Schubert { 3034*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 3035*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 30362b15cb3dSCy Schubert } 30372b15cb3dSCy Schubert break; 30382b15cb3dSCy Schubert 30392b15cb3dSCy Schubert case 205: 3040*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3041*276da39aSCy Schubert #line 1097 "../../ntpd/ntp_parser.y" 30422b15cb3dSCy Schubert { 30432b15cb3dSCy Schubert (yyval.Attr_val_fifo) = NULL; 3044*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 30452b15cb3dSCy Schubert } 30462b15cb3dSCy Schubert break; 30472b15cb3dSCy Schubert 3048a25439b6SCy Schubert case 206: 3049*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3050*276da39aSCy Schubert #line 1105 "../../ntpd/ntp_parser.y" 3051*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); } 3052a25439b6SCy Schubert break; 3053a25439b6SCy Schubert 3054a25439b6SCy Schubert case 219: 3055*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3056*276da39aSCy Schubert #line 1130 "../../ntpd/ntp_parser.y" 30572b15cb3dSCy Schubert { 30582b15cb3dSCy Schubert attr_val *av; 30592b15cb3dSCy Schubert 3060*276da39aSCy Schubert av = create_attr_dval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Double)); 30612b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 30622b15cb3dSCy Schubert } 30632b15cb3dSCy Schubert break; 30642b15cb3dSCy Schubert 3065a25439b6SCy Schubert case 220: 3066*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3067*276da39aSCy Schubert #line 1137 "../../ntpd/ntp_parser.y" 30682b15cb3dSCy Schubert { 30692b15cb3dSCy Schubert attr_val *av; 30702b15cb3dSCy Schubert 3071*276da39aSCy Schubert av = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); 30722b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 30732b15cb3dSCy Schubert } 30742b15cb3dSCy Schubert break; 30752b15cb3dSCy Schubert 3076a25439b6SCy Schubert case 221: 3077*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3078*276da39aSCy Schubert #line 1144 "../../ntpd/ntp_parser.y" 3079*276da39aSCy Schubert { 3080*276da39aSCy Schubert attr_val *av; 3081*276da39aSCy Schubert 3082*276da39aSCy Schubert av = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); 3083*276da39aSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 3084*276da39aSCy Schubert } 3085*276da39aSCy Schubert break; 3086*276da39aSCy Schubert 3087*276da39aSCy Schubert case 222: 3088*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3089*276da39aSCy Schubert #line 1151 "../../ntpd/ntp_parser.y" 30902b15cb3dSCy Schubert { 30912b15cb3dSCy Schubert char error_text[64]; 30922b15cb3dSCy Schubert attr_val *av; 30932b15cb3dSCy Schubert 3094*276da39aSCy Schubert if (lex_from_file()) { 3095*276da39aSCy Schubert av = create_attr_sval((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].String)); 30962b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 30972b15cb3dSCy Schubert } else { 3098*276da39aSCy Schubert YYFREE((yyvsp[(2) - (2)].String)); 30992b15cb3dSCy Schubert snprintf(error_text, sizeof(error_text), 31002b15cb3dSCy Schubert "%s remote config ignored", 3101*276da39aSCy Schubert keyword((yyvsp[(1) - (2)].Integer))); 3102*276da39aSCy Schubert yyerror(error_text); 31032b15cb3dSCy Schubert } 31042b15cb3dSCy Schubert } 31052b15cb3dSCy Schubert break; 31062b15cb3dSCy Schubert 3107a25439b6SCy Schubert case 223: 3108*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3109*276da39aSCy Schubert #line 1167 "../../ntpd/ntp_parser.y" 31102b15cb3dSCy Schubert { 3111*276da39aSCy Schubert if (!lex_from_file()) { 3112*276da39aSCy Schubert YYFREE((yyvsp[(2) - (3)].String)); /* avoid leak */ 3113*276da39aSCy Schubert yyerror("remote includefile ignored"); 3114*276da39aSCy Schubert break; 31152b15cb3dSCy Schubert } 3116*276da39aSCy Schubert if (lex_level() > MAXINCLUDELEVEL) { 3117*276da39aSCy Schubert fprintf(stderr, "getconfig: Maximum include file level exceeded.\n"); 3118*276da39aSCy Schubert msyslog(LOG_ERR, "getconfig: Maximum include file level exceeded."); 3119*276da39aSCy Schubert } else { 3120*276da39aSCy Schubert const char * path = FindConfig((yyvsp[(2) - (3)].String)); /* might return $2! */ 3121*276da39aSCy Schubert if (!lex_push_file(path, "r")) { 3122*276da39aSCy Schubert fprintf(stderr, "getconfig: Couldn't open <%s>\n", path); 3123*276da39aSCy Schubert msyslog(LOG_ERR, "getconfig: Couldn't open <%s>", path); 3124*276da39aSCy Schubert } 3125*276da39aSCy Schubert } 3126*276da39aSCy Schubert YYFREE((yyvsp[(2) - (3)].String)); /* avoid leak */ 3127*276da39aSCy Schubert } 31282b15cb3dSCy Schubert break; 31292b15cb3dSCy Schubert 31302b15cb3dSCy Schubert case 224: 3131*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3132*276da39aSCy Schubert #line 1186 "../../ntpd/ntp_parser.y" 3133*276da39aSCy Schubert { lex_flush_stack(); } 31342b15cb3dSCy Schubert break; 31352b15cb3dSCy Schubert 31362b15cb3dSCy Schubert case 225: 3137*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3138*276da39aSCy Schubert #line 1188 "../../ntpd/ntp_parser.y" 3139*276da39aSCy Schubert { /* see drift_parm below for actions */ } 31402b15cb3dSCy Schubert break; 31412b15cb3dSCy Schubert 31422b15cb3dSCy Schubert case 226: 3143*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3144*276da39aSCy Schubert #line 1190 "../../ntpd/ntp_parser.y" 3145*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.logconfig, (yyvsp[(2) - (2)].Attr_val_fifo)); } 3146a25439b6SCy Schubert break; 3147a25439b6SCy Schubert 3148a25439b6SCy Schubert case 227: 3149*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3150*276da39aSCy Schubert #line 1192 "../../ntpd/ntp_parser.y" 3151*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.phone, (yyvsp[(2) - (2)].String_fifo)); } 3152a25439b6SCy Schubert break; 3153a25439b6SCy Schubert 3154a25439b6SCy Schubert case 228: 3155*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3156*276da39aSCy Schubert #line 1194 "../../ntpd/ntp_parser.y" 3157*276da39aSCy Schubert { APPEND_G_FIFO(cfgt.setvar, (yyvsp[(2) - (2)].Set_var)); } 31582b15cb3dSCy Schubert break; 31592b15cb3dSCy Schubert 3160a25439b6SCy Schubert case 229: 3161*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3162*276da39aSCy Schubert #line 1196 "../../ntpd/ntp_parser.y" 3163*276da39aSCy Schubert { 3164*276da39aSCy Schubert addr_opts_node *aon; 3165*276da39aSCy Schubert 3166*276da39aSCy Schubert aon = create_addr_opts_node((yyvsp[(2) - (3)].Address_node), (yyvsp[(3) - (3)].Attr_val_fifo)); 3167*276da39aSCy Schubert APPEND_G_FIFO(cfgt.trap, aon); 3168*276da39aSCy Schubert } 3169a25439b6SCy Schubert break; 3170a25439b6SCy Schubert 3171*276da39aSCy Schubert case 230: 3172*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3173*276da39aSCy Schubert #line 1203 "../../ntpd/ntp_parser.y" 3174*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.ttl, (yyvsp[(2) - (2)].Attr_val_fifo)); } 3175*276da39aSCy Schubert break; 3176*276da39aSCy Schubert 3177*276da39aSCy Schubert case 235: 3178*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3179*276da39aSCy Schubert #line 1218 "../../ntpd/ntp_parser.y" 3180*276da39aSCy Schubert { 3181*276da39aSCy Schubert #ifndef LEAP_SMEAR 3182*276da39aSCy Schubert yyerror("Built without LEAP_SMEAR support."); 3183*276da39aSCy Schubert #endif 3184*276da39aSCy Schubert } 3185*276da39aSCy Schubert break; 3186*276da39aSCy Schubert 3187*276da39aSCy Schubert case 241: 3188*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3189*276da39aSCy Schubert #line 1238 "../../ntpd/ntp_parser.y" 31902b15cb3dSCy Schubert { 31912b15cb3dSCy Schubert attr_val *av; 31922b15cb3dSCy Schubert 3193*276da39aSCy Schubert av = create_attr_sval(T_Driftfile, (yyvsp[(1) - (1)].String)); 31942b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 31952b15cb3dSCy Schubert } 31962b15cb3dSCy Schubert break; 31972b15cb3dSCy Schubert 3198*276da39aSCy Schubert case 242: 3199*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3200*276da39aSCy Schubert #line 1245 "../../ntpd/ntp_parser.y" 32012b15cb3dSCy Schubert { 32022b15cb3dSCy Schubert attr_val *av; 32032b15cb3dSCy Schubert 3204*276da39aSCy Schubert av = create_attr_sval(T_Driftfile, (yyvsp[(1) - (2)].String)); 32052b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 3206*276da39aSCy Schubert av = create_attr_dval(T_WanderThreshold, (yyvsp[(2) - (2)].Double)); 32072b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 32082b15cb3dSCy Schubert } 32092b15cb3dSCy Schubert break; 32102b15cb3dSCy Schubert 3211*276da39aSCy Schubert case 243: 3212*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3213*276da39aSCy Schubert #line 1254 "../../ntpd/ntp_parser.y" 32142b15cb3dSCy Schubert { 32152b15cb3dSCy Schubert attr_val *av; 32162b15cb3dSCy Schubert 32172b15cb3dSCy Schubert av = create_attr_sval(T_Driftfile, ""); 32182b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.vars, av); 32192b15cb3dSCy Schubert } 32202b15cb3dSCy Schubert break; 32212b15cb3dSCy Schubert 3222a25439b6SCy Schubert case 244: 3223*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3224*276da39aSCy Schubert #line 1264 "../../ntpd/ntp_parser.y" 3225*276da39aSCy Schubert { (yyval.Set_var) = create_setvar_node((yyvsp[(1) - (4)].String), (yyvsp[(3) - (4)].String), (yyvsp[(4) - (4)].Integer)); } 32262b15cb3dSCy Schubert break; 32272b15cb3dSCy Schubert 3228a25439b6SCy Schubert case 246: 3229*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3230*276da39aSCy Schubert #line 1270 "../../ntpd/ntp_parser.y" 3231*276da39aSCy Schubert { (yyval.Integer) = 0; } 3232a25439b6SCy Schubert break; 3233a25439b6SCy Schubert 3234a25439b6SCy Schubert case 247: 3235*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3236*276da39aSCy Schubert #line 1275 "../../ntpd/ntp_parser.y" 3237*276da39aSCy Schubert { (yyval.Attr_val_fifo) = NULL; } 32382b15cb3dSCy Schubert break; 32392b15cb3dSCy Schubert 3240a25439b6SCy Schubert case 248: 3241*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3242*276da39aSCy Schubert #line 1277 "../../ntpd/ntp_parser.y" 32432b15cb3dSCy Schubert { 3244*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 3245*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 32462b15cb3dSCy Schubert } 32472b15cb3dSCy Schubert break; 32482b15cb3dSCy Schubert 3249a25439b6SCy Schubert case 249: 3250*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3251*276da39aSCy Schubert #line 1285 "../../ntpd/ntp_parser.y" 3252*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival((yyvsp[(1) - (2)].Integer), (yyvsp[(2) - (2)].Integer)); } 32532b15cb3dSCy Schubert break; 32542b15cb3dSCy Schubert 3255a25439b6SCy Schubert case 250: 3256*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3257*276da39aSCy Schubert #line 1287 "../../ntpd/ntp_parser.y" 3258*276da39aSCy Schubert { 3259*276da39aSCy Schubert (yyval.Attr_val) = create_attr_sval((yyvsp[(1) - (2)].Integer), estrdup((yyvsp[(2) - (2)].Address_node)->address)); 3260*276da39aSCy Schubert destroy_address_node((yyvsp[(2) - (2)].Address_node)); 3261*276da39aSCy Schubert } 3262*276da39aSCy Schubert break; 3263*276da39aSCy Schubert 3264*276da39aSCy Schubert case 251: 3265*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3266*276da39aSCy Schubert #line 1295 "../../ntpd/ntp_parser.y" 3267*276da39aSCy Schubert { 3268*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 3269*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 3270*276da39aSCy Schubert } 3271*276da39aSCy Schubert break; 3272*276da39aSCy Schubert 3273*276da39aSCy Schubert case 252: 3274*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3275*276da39aSCy Schubert #line 1300 "../../ntpd/ntp_parser.y" 3276*276da39aSCy Schubert { 3277*276da39aSCy Schubert (yyval.Attr_val_fifo) = NULL; 3278*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 3279*276da39aSCy Schubert } 3280*276da39aSCy Schubert break; 3281*276da39aSCy Schubert 3282*276da39aSCy Schubert case 253: 3283*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3284*276da39aSCy Schubert #line 1308 "../../ntpd/ntp_parser.y" 32852b15cb3dSCy Schubert { 32862b15cb3dSCy Schubert char prefix; 32872b15cb3dSCy Schubert char * type; 32882b15cb3dSCy Schubert 3289*276da39aSCy Schubert switch ((yyvsp[(1) - (1)].String)[0]) { 32902b15cb3dSCy Schubert 32912b15cb3dSCy Schubert case '+': 32922b15cb3dSCy Schubert case '-': 32932b15cb3dSCy Schubert case '=': 3294*276da39aSCy Schubert prefix = (yyvsp[(1) - (1)].String)[0]; 3295*276da39aSCy Schubert type = (yyvsp[(1) - (1)].String) + 1; 32962b15cb3dSCy Schubert break; 32972b15cb3dSCy Schubert 32982b15cb3dSCy Schubert default: 32992b15cb3dSCy Schubert prefix = '='; 3300*276da39aSCy Schubert type = (yyvsp[(1) - (1)].String); 33012b15cb3dSCy Schubert } 33022b15cb3dSCy Schubert 33032b15cb3dSCy Schubert (yyval.Attr_val) = create_attr_sval(prefix, estrdup(type)); 3304*276da39aSCy Schubert YYFREE((yyvsp[(1) - (1)].String)); 33052b15cb3dSCy Schubert } 33062b15cb3dSCy Schubert break; 33072b15cb3dSCy Schubert 3308*276da39aSCy Schubert case 254: 3309*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3310*276da39aSCy Schubert #line 1333 "../../ntpd/ntp_parser.y" 33112b15cb3dSCy Schubert { 33122b15cb3dSCy Schubert nic_rule_node *nrn; 33132b15cb3dSCy Schubert 3314*276da39aSCy Schubert nrn = create_nic_rule_node((yyvsp[(3) - (3)].Integer), NULL, (yyvsp[(2) - (3)].Integer)); 33152b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.nic_rules, nrn); 33162b15cb3dSCy Schubert } 33172b15cb3dSCy Schubert break; 33182b15cb3dSCy Schubert 3319*276da39aSCy Schubert case 255: 3320*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3321*276da39aSCy Schubert #line 1340 "../../ntpd/ntp_parser.y" 33222b15cb3dSCy Schubert { 33232b15cb3dSCy Schubert nic_rule_node *nrn; 33242b15cb3dSCy Schubert 3325*276da39aSCy Schubert nrn = create_nic_rule_node(0, (yyvsp[(3) - (3)].String), (yyvsp[(2) - (3)].Integer)); 33262b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.nic_rules, nrn); 33272b15cb3dSCy Schubert } 33282b15cb3dSCy Schubert break; 33292b15cb3dSCy Schubert 3330*276da39aSCy Schubert case 265: 3331*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3332*276da39aSCy Schubert #line 1368 "../../ntpd/ntp_parser.y" 3333*276da39aSCy Schubert { CONCAT_G_FIFOS(cfgt.reset_counters, (yyvsp[(2) - (2)].Int_fifo)); } 3334a25439b6SCy Schubert break; 3335a25439b6SCy Schubert 3336*276da39aSCy Schubert case 266: 3337*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3338*276da39aSCy Schubert #line 1373 "../../ntpd/ntp_parser.y" 33392b15cb3dSCy Schubert { 3340*276da39aSCy Schubert (yyval.Int_fifo) = (yyvsp[(1) - (2)].Int_fifo); 3341*276da39aSCy Schubert APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[(2) - (2)].Integer))); 33422b15cb3dSCy Schubert } 33432b15cb3dSCy Schubert break; 33442b15cb3dSCy Schubert 3345*276da39aSCy Schubert case 267: 3346*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3347*276da39aSCy Schubert #line 1378 "../../ntpd/ntp_parser.y" 33482b15cb3dSCy Schubert { 33492b15cb3dSCy Schubert (yyval.Int_fifo) = NULL; 3350*276da39aSCy Schubert APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[(1) - (1)].Integer))); 33512b15cb3dSCy Schubert } 33522b15cb3dSCy Schubert break; 33532b15cb3dSCy Schubert 3354a25439b6SCy Schubert case 275: 3355*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3356*276da39aSCy Schubert #line 1402 "../../ntpd/ntp_parser.y" 33572b15cb3dSCy Schubert { 3358*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 3359*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), create_int_node((yyvsp[(2) - (2)].Integer))); 33602b15cb3dSCy Schubert } 33612b15cb3dSCy Schubert break; 33622b15cb3dSCy Schubert 33632b15cb3dSCy Schubert case 276: 3364*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3365*276da39aSCy Schubert #line 1407 "../../ntpd/ntp_parser.y" 3366*276da39aSCy Schubert { 3367*276da39aSCy Schubert (yyval.Attr_val_fifo) = NULL; 3368*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), create_int_node((yyvsp[(1) - (1)].Integer))); 3369*276da39aSCy Schubert } 3370*276da39aSCy Schubert break; 3371*276da39aSCy Schubert 3372*276da39aSCy Schubert case 277: 3373*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3374*276da39aSCy Schubert #line 1415 "../../ntpd/ntp_parser.y" 3375*276da39aSCy Schubert { 3376*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (2)].Attr_val_fifo); 3377*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (2)].Attr_val)); 3378*276da39aSCy Schubert } 33792b15cb3dSCy Schubert break; 33802b15cb3dSCy Schubert 3381a25439b6SCy Schubert case 278: 3382*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3383*276da39aSCy Schubert #line 1420 "../../ntpd/ntp_parser.y" 3384*276da39aSCy Schubert { 3385*276da39aSCy Schubert (yyval.Attr_val_fifo) = NULL; 3386*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (1)].Attr_val)); 3387*276da39aSCy Schubert } 3388a25439b6SCy Schubert break; 3389a25439b6SCy Schubert 3390a25439b6SCy Schubert case 279: 3391*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3392*276da39aSCy Schubert #line 1428 "../../ntpd/ntp_parser.y" 3393*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_ival('i', (yyvsp[(1) - (1)].Integer)); } 33942b15cb3dSCy Schubert break; 33952b15cb3dSCy Schubert 3396a25439b6SCy Schubert case 281: 3397*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3398*276da39aSCy Schubert #line 1434 "../../ntpd/ntp_parser.y" 3399*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_rangeval('-', (yyvsp[(2) - (5)].Integer), (yyvsp[(4) - (5)].Integer)); } 34002b15cb3dSCy Schubert break; 34012b15cb3dSCy Schubert 3402a25439b6SCy Schubert case 282: 3403*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3404*276da39aSCy Schubert #line 1439 "../../ntpd/ntp_parser.y" 34052b15cb3dSCy Schubert { 3406*276da39aSCy Schubert (yyval.String_fifo) = (yyvsp[(1) - (2)].String_fifo); 3407*276da39aSCy Schubert APPEND_G_FIFO((yyval.String_fifo), create_string_node((yyvsp[(2) - (2)].String))); 34082b15cb3dSCy Schubert } 34092b15cb3dSCy Schubert break; 34102b15cb3dSCy Schubert 3411a25439b6SCy Schubert case 283: 3412*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3413*276da39aSCy Schubert #line 1444 "../../ntpd/ntp_parser.y" 34142b15cb3dSCy Schubert { 3415*276da39aSCy Schubert (yyval.String_fifo) = NULL; 3416*276da39aSCy Schubert APPEND_G_FIFO((yyval.String_fifo), create_string_node((yyvsp[(1) - (1)].String))); 34172b15cb3dSCy Schubert } 34182b15cb3dSCy Schubert break; 34192b15cb3dSCy Schubert 3420a25439b6SCy Schubert case 284: 3421*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3422*276da39aSCy Schubert #line 1452 "../../ntpd/ntp_parser.y" 3423*276da39aSCy Schubert { 3424*276da39aSCy Schubert (yyval.Address_fifo) = (yyvsp[(1) - (2)].Address_fifo); 3425*276da39aSCy Schubert APPEND_G_FIFO((yyval.Address_fifo), (yyvsp[(2) - (2)].Address_node)); 3426*276da39aSCy Schubert } 34272b15cb3dSCy Schubert break; 34282b15cb3dSCy Schubert 3429a25439b6SCy Schubert case 285: 3430*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3431*276da39aSCy Schubert #line 1457 "../../ntpd/ntp_parser.y" 3432*276da39aSCy Schubert { 3433*276da39aSCy Schubert (yyval.Address_fifo) = NULL; 3434*276da39aSCy Schubert APPEND_G_FIFO((yyval.Address_fifo), (yyvsp[(1) - (1)].Address_node)); 3435*276da39aSCy Schubert } 34362b15cb3dSCy Schubert break; 34372b15cb3dSCy Schubert 34382b15cb3dSCy Schubert case 286: 3439*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3440*276da39aSCy Schubert #line 1465 "../../ntpd/ntp_parser.y" 3441*276da39aSCy Schubert { 3442*276da39aSCy Schubert if ((yyvsp[(1) - (1)].Integer) != 0 && (yyvsp[(1) - (1)].Integer) != 1) { 3443*276da39aSCy Schubert yyerror("Integer value is not boolean (0 or 1). Assuming 1"); 3444*276da39aSCy Schubert (yyval.Integer) = 1; 3445*276da39aSCy Schubert } else { 3446*276da39aSCy Schubert (yyval.Integer) = (yyvsp[(1) - (1)].Integer); 3447*276da39aSCy Schubert } 3448*276da39aSCy Schubert } 3449*276da39aSCy Schubert break; 3450*276da39aSCy Schubert 3451*276da39aSCy Schubert case 287: 3452*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3453*276da39aSCy Schubert #line 1473 "../../ntpd/ntp_parser.y" 3454*276da39aSCy Schubert { (yyval.Integer) = 1; } 3455a25439b6SCy Schubert break; 3456a25439b6SCy Schubert 3457a25439b6SCy Schubert case 288: 3458*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3459*276da39aSCy Schubert #line 1474 "../../ntpd/ntp_parser.y" 3460*276da39aSCy Schubert { (yyval.Integer) = 0; } 3461*276da39aSCy Schubert break; 3462*276da39aSCy Schubert 3463*276da39aSCy Schubert case 289: 3464*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3465*276da39aSCy Schubert #line 1478 "../../ntpd/ntp_parser.y" 3466*276da39aSCy Schubert { (yyval.Double) = (double)(yyvsp[(1) - (1)].Integer); } 3467*276da39aSCy Schubert break; 3468*276da39aSCy Schubert 3469*276da39aSCy Schubert case 291: 3470*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3471*276da39aSCy Schubert #line 1489 "../../ntpd/ntp_parser.y" 34722b15cb3dSCy Schubert { 34732b15cb3dSCy Schubert sim_node *sn; 34742b15cb3dSCy Schubert 3475*276da39aSCy Schubert sn = create_sim_node((yyvsp[(3) - (5)].Attr_val_fifo), (yyvsp[(4) - (5)].Sim_server_fifo)); 34762b15cb3dSCy Schubert APPEND_G_FIFO(cfgt.sim_details, sn); 34772b15cb3dSCy Schubert 34782b15cb3dSCy Schubert /* Revert from ; to \n for end-of-command */ 34792b15cb3dSCy Schubert old_config_style = 1; 34802b15cb3dSCy Schubert } 34812b15cb3dSCy Schubert break; 34822b15cb3dSCy Schubert 3483a25439b6SCy Schubert case 292: 3484*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3485*276da39aSCy Schubert #line 1506 "../../ntpd/ntp_parser.y" 3486*276da39aSCy Schubert { old_config_style = 0; } 3487*276da39aSCy Schubert break; 3488*276da39aSCy Schubert 3489*276da39aSCy Schubert case 293: 3490*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3491*276da39aSCy Schubert #line 1511 "../../ntpd/ntp_parser.y" 3492*276da39aSCy Schubert { 3493*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (3)].Attr_val_fifo); 3494*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (3)].Attr_val)); 3495*276da39aSCy Schubert } 3496*276da39aSCy Schubert break; 3497*276da39aSCy Schubert 3498*276da39aSCy Schubert case 294: 3499*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3500*276da39aSCy Schubert #line 1516 "../../ntpd/ntp_parser.y" 3501*276da39aSCy Schubert { 3502*276da39aSCy Schubert (yyval.Attr_val_fifo) = NULL; 3503*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (2)].Attr_val)); 3504*276da39aSCy Schubert } 3505a25439b6SCy Schubert break; 3506a25439b6SCy Schubert 3507a25439b6SCy Schubert case 295: 3508*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3509*276da39aSCy Schubert #line 1524 "../../ntpd/ntp_parser.y" 3510*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (3)].Integer), (yyvsp[(3) - (3)].Double)); } 35112b15cb3dSCy Schubert break; 35122b15cb3dSCy Schubert 3513a25439b6SCy Schubert case 298: 3514*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3515*276da39aSCy Schubert #line 1534 "../../ntpd/ntp_parser.y" 3516*276da39aSCy Schubert { 3517*276da39aSCy Schubert (yyval.Sim_server_fifo) = (yyvsp[(1) - (2)].Sim_server_fifo); 3518*276da39aSCy Schubert APPEND_G_FIFO((yyval.Sim_server_fifo), (yyvsp[(2) - (2)].Sim_server)); 3519*276da39aSCy Schubert } 35202b15cb3dSCy Schubert break; 35212b15cb3dSCy Schubert 3522a25439b6SCy Schubert case 299: 3523*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3524*276da39aSCy Schubert #line 1539 "../../ntpd/ntp_parser.y" 3525*276da39aSCy Schubert { 3526*276da39aSCy Schubert (yyval.Sim_server_fifo) = NULL; 3527*276da39aSCy Schubert APPEND_G_FIFO((yyval.Sim_server_fifo), (yyvsp[(1) - (1)].Sim_server)); 3528*276da39aSCy Schubert } 3529a25439b6SCy Schubert break; 3530a25439b6SCy Schubert 3531a25439b6SCy Schubert case 300: 3532*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3533*276da39aSCy Schubert #line 1547 "../../ntpd/ntp_parser.y" 3534*276da39aSCy Schubert { (yyval.Sim_server) = ONLY_SIM(create_sim_server((yyvsp[(1) - (5)].Address_node), (yyvsp[(3) - (5)].Double), (yyvsp[(4) - (5)].Sim_script_fifo))); } 35352b15cb3dSCy Schubert break; 35362b15cb3dSCy Schubert 3537a25439b6SCy Schubert case 301: 3538*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3539*276da39aSCy Schubert #line 1552 "../../ntpd/ntp_parser.y" 3540*276da39aSCy Schubert { (yyval.Double) = (yyvsp[(3) - (4)].Double); } 35412b15cb3dSCy Schubert break; 35422b15cb3dSCy Schubert 3543a25439b6SCy Schubert case 302: 3544*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3545*276da39aSCy Schubert #line 1557 "../../ntpd/ntp_parser.y" 3546*276da39aSCy Schubert { (yyval.Address_node) = (yyvsp[(3) - (3)].Address_node); } 3547a25439b6SCy Schubert break; 3548a25439b6SCy Schubert 3549a25439b6SCy Schubert case 303: 3550*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3551*276da39aSCy Schubert #line 1562 "../../ntpd/ntp_parser.y" 35522b15cb3dSCy Schubert { 3553*276da39aSCy Schubert (yyval.Sim_script_fifo) = (yyvsp[(1) - (2)].Sim_script_fifo); 3554*276da39aSCy Schubert APPEND_G_FIFO((yyval.Sim_script_fifo), (yyvsp[(2) - (2)].Sim_script)); 35552b15cb3dSCy Schubert } 35562b15cb3dSCy Schubert break; 35572b15cb3dSCy Schubert 3558a25439b6SCy Schubert case 304: 3559*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3560*276da39aSCy Schubert #line 1567 "../../ntpd/ntp_parser.y" 35612b15cb3dSCy Schubert { 3562*276da39aSCy Schubert (yyval.Sim_script_fifo) = NULL; 3563*276da39aSCy Schubert APPEND_G_FIFO((yyval.Sim_script_fifo), (yyvsp[(1) - (1)].Sim_script)); 35642b15cb3dSCy Schubert } 35652b15cb3dSCy Schubert break; 35662b15cb3dSCy Schubert 3567a25439b6SCy Schubert case 305: 3568*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3569*276da39aSCy Schubert #line 1575 "../../ntpd/ntp_parser.y" 3570*276da39aSCy Schubert { (yyval.Sim_script) = ONLY_SIM(create_sim_script_info((yyvsp[(3) - (6)].Double), (yyvsp[(5) - (6)].Attr_val_fifo))); } 3571*276da39aSCy Schubert break; 3572*276da39aSCy Schubert 3573*276da39aSCy Schubert case 306: 3574*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3575*276da39aSCy Schubert #line 1580 "../../ntpd/ntp_parser.y" 3576*276da39aSCy Schubert { 3577*276da39aSCy Schubert (yyval.Attr_val_fifo) = (yyvsp[(1) - (3)].Attr_val_fifo); 3578*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(2) - (3)].Attr_val)); 3579*276da39aSCy Schubert } 3580*276da39aSCy Schubert break; 3581*276da39aSCy Schubert 3582*276da39aSCy Schubert case 307: 3583*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3584*276da39aSCy Schubert #line 1585 "../../ntpd/ntp_parser.y" 3585*276da39aSCy Schubert { 3586*276da39aSCy Schubert (yyval.Attr_val_fifo) = NULL; 3587*276da39aSCy Schubert APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[(1) - (2)].Attr_val)); 3588*276da39aSCy Schubert } 3589*276da39aSCy Schubert break; 3590*276da39aSCy Schubert 3591*276da39aSCy Schubert case 308: 3592*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3593*276da39aSCy Schubert #line 1593 "../../ntpd/ntp_parser.y" 3594*276da39aSCy Schubert { (yyval.Attr_val) = create_attr_dval((yyvsp[(1) - (3)].Integer), (yyvsp[(3) - (3)].Double)); } 3595a25439b6SCy Schubert break; 35962b15cb3dSCy Schubert 3597a25439b6SCy Schubert 3598*276da39aSCy Schubert /* Line 1787 of yacc.c */ 3599*276da39aSCy Schubert #line 3600 "ntp_parser.c" 36002b15cb3dSCy Schubert default: break; 36012b15cb3dSCy Schubert } 36022b15cb3dSCy Schubert /* User semantic actions sometimes alter yychar, and that requires 36032b15cb3dSCy Schubert that yytoken be updated with the new translation. We take the 36042b15cb3dSCy Schubert approach of translating immediately before every use of yytoken. 36052b15cb3dSCy Schubert One alternative is translating here after every semantic action, 36062b15cb3dSCy Schubert but that translation would be missed if the semantic action invokes 36072b15cb3dSCy Schubert YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or 36082b15cb3dSCy Schubert if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an 36092b15cb3dSCy Schubert incorrect destructor might then be invoked immediately. In the 36102b15cb3dSCy Schubert case of YYERROR or YYBACKUP, subsequent parser actions might lead 36112b15cb3dSCy Schubert to an incorrect destructor call or verbose syntax error message 36122b15cb3dSCy Schubert before the lookahead is translated. */ 36132b15cb3dSCy Schubert YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); 36142b15cb3dSCy Schubert 36152b15cb3dSCy Schubert YYPOPSTACK (yylen); 36162b15cb3dSCy Schubert yylen = 0; 36172b15cb3dSCy Schubert YY_STACK_PRINT (yyss, yyssp); 36182b15cb3dSCy Schubert 36192b15cb3dSCy Schubert *++yyvsp = yyval; 36202b15cb3dSCy Schubert 3621*276da39aSCy Schubert /* Now `shift' the result of the reduction. Determine what state 36222b15cb3dSCy Schubert that goes to, based on the state we popped back to and the rule 36232b15cb3dSCy Schubert number reduced by. */ 36242b15cb3dSCy Schubert 36252b15cb3dSCy Schubert yyn = yyr1[yyn]; 36262b15cb3dSCy Schubert 36272b15cb3dSCy Schubert yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; 36282b15cb3dSCy Schubert if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) 36292b15cb3dSCy Schubert yystate = yytable[yystate]; 36302b15cb3dSCy Schubert else 36312b15cb3dSCy Schubert yystate = yydefgoto[yyn - YYNTOKENS]; 36322b15cb3dSCy Schubert 36332b15cb3dSCy Schubert goto yynewstate; 36342b15cb3dSCy Schubert 36352b15cb3dSCy Schubert 3636*276da39aSCy Schubert /*------------------------------------. 3637*276da39aSCy Schubert | yyerrlab -- here on detecting error | 3638*276da39aSCy Schubert `------------------------------------*/ 36392b15cb3dSCy Schubert yyerrlab: 36402b15cb3dSCy Schubert /* Make sure we have latest lookahead translation. See comments at 36412b15cb3dSCy Schubert user semantic actions for why this is necessary. */ 36422b15cb3dSCy Schubert yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); 36432b15cb3dSCy Schubert 36442b15cb3dSCy Schubert /* If not already recovering from an error, report this error. */ 36452b15cb3dSCy Schubert if (!yyerrstatus) 36462b15cb3dSCy Schubert { 36472b15cb3dSCy Schubert ++yynerrs; 36482b15cb3dSCy Schubert #if ! YYERROR_VERBOSE 3649*276da39aSCy Schubert yyerror (YY_("syntax error")); 36502b15cb3dSCy Schubert #else 36512b15cb3dSCy Schubert # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 36522b15cb3dSCy Schubert yyssp, yytoken) 36532b15cb3dSCy Schubert { 36542b15cb3dSCy Schubert char const *yymsgp = YY_("syntax error"); 36552b15cb3dSCy Schubert int yysyntax_error_status; 36562b15cb3dSCy Schubert yysyntax_error_status = YYSYNTAX_ERROR; 36572b15cb3dSCy Schubert if (yysyntax_error_status == 0) 36582b15cb3dSCy Schubert yymsgp = yymsg; 36592b15cb3dSCy Schubert else if (yysyntax_error_status == 1) 36602b15cb3dSCy Schubert { 36612b15cb3dSCy Schubert if (yymsg != yymsgbuf) 36622b15cb3dSCy Schubert YYSTACK_FREE (yymsg); 36632b15cb3dSCy Schubert yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); 36642b15cb3dSCy Schubert if (!yymsg) 36652b15cb3dSCy Schubert { 36662b15cb3dSCy Schubert yymsg = yymsgbuf; 36672b15cb3dSCy Schubert yymsg_alloc = sizeof yymsgbuf; 36682b15cb3dSCy Schubert yysyntax_error_status = 2; 36692b15cb3dSCy Schubert } 36702b15cb3dSCy Schubert else 36712b15cb3dSCy Schubert { 36722b15cb3dSCy Schubert yysyntax_error_status = YYSYNTAX_ERROR; 36732b15cb3dSCy Schubert yymsgp = yymsg; 36742b15cb3dSCy Schubert } 36752b15cb3dSCy Schubert } 3676*276da39aSCy Schubert yyerror (yymsgp); 36772b15cb3dSCy Schubert if (yysyntax_error_status == 2) 36782b15cb3dSCy Schubert goto yyexhaustedlab; 36792b15cb3dSCy Schubert } 36802b15cb3dSCy Schubert # undef YYSYNTAX_ERROR 36812b15cb3dSCy Schubert #endif 36822b15cb3dSCy Schubert } 36832b15cb3dSCy Schubert 36842b15cb3dSCy Schubert 36852b15cb3dSCy Schubert 36862b15cb3dSCy Schubert if (yyerrstatus == 3) 36872b15cb3dSCy Schubert { 36882b15cb3dSCy Schubert /* If just tried and failed to reuse lookahead token after an 36892b15cb3dSCy Schubert error, discard it. */ 36902b15cb3dSCy Schubert 36912b15cb3dSCy Schubert if (yychar <= YYEOF) 36922b15cb3dSCy Schubert { 36932b15cb3dSCy Schubert /* Return failure if at end of input. */ 36942b15cb3dSCy Schubert if (yychar == YYEOF) 36952b15cb3dSCy Schubert YYABORT; 36962b15cb3dSCy Schubert } 36972b15cb3dSCy Schubert else 36982b15cb3dSCy Schubert { 36992b15cb3dSCy Schubert yydestruct ("Error: discarding", 3700*276da39aSCy Schubert yytoken, &yylval); 37012b15cb3dSCy Schubert yychar = YYEMPTY; 37022b15cb3dSCy Schubert } 37032b15cb3dSCy Schubert } 37042b15cb3dSCy Schubert 37052b15cb3dSCy Schubert /* Else will try to reuse lookahead token after shifting the error 37062b15cb3dSCy Schubert token. */ 37072b15cb3dSCy Schubert goto yyerrlab1; 37082b15cb3dSCy Schubert 37092b15cb3dSCy Schubert 37102b15cb3dSCy Schubert /*---------------------------------------------------. 37112b15cb3dSCy Schubert | yyerrorlab -- error raised explicitly by YYERROR. | 37122b15cb3dSCy Schubert `---------------------------------------------------*/ 37132b15cb3dSCy Schubert yyerrorlab: 37142b15cb3dSCy Schubert 37152b15cb3dSCy Schubert /* Pacify compilers like GCC when the user code never invokes 37162b15cb3dSCy Schubert YYERROR and the label yyerrorlab therefore never appears in user 37172b15cb3dSCy Schubert code. */ 37182b15cb3dSCy Schubert if (/*CONSTCOND*/ 0) 37192b15cb3dSCy Schubert goto yyerrorlab; 37202b15cb3dSCy Schubert 3721*276da39aSCy Schubert /* Do not reclaim the symbols of the rule which action triggered 37222b15cb3dSCy Schubert this YYERROR. */ 37232b15cb3dSCy Schubert YYPOPSTACK (yylen); 37242b15cb3dSCy Schubert yylen = 0; 37252b15cb3dSCy Schubert YY_STACK_PRINT (yyss, yyssp); 37262b15cb3dSCy Schubert yystate = *yyssp; 37272b15cb3dSCy Schubert goto yyerrlab1; 37282b15cb3dSCy Schubert 37292b15cb3dSCy Schubert 37302b15cb3dSCy Schubert /*-------------------------------------------------------------. 37312b15cb3dSCy Schubert | yyerrlab1 -- common code for both syntax error and YYERROR. | 37322b15cb3dSCy Schubert `-------------------------------------------------------------*/ 37332b15cb3dSCy Schubert yyerrlab1: 37342b15cb3dSCy Schubert yyerrstatus = 3; /* Each real token shifted decrements this. */ 37352b15cb3dSCy Schubert 37362b15cb3dSCy Schubert for (;;) 37372b15cb3dSCy Schubert { 37382b15cb3dSCy Schubert yyn = yypact[yystate]; 37392b15cb3dSCy Schubert if (!yypact_value_is_default (yyn)) 37402b15cb3dSCy Schubert { 37412b15cb3dSCy Schubert yyn += YYTERROR; 37422b15cb3dSCy Schubert if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) 37432b15cb3dSCy Schubert { 37442b15cb3dSCy Schubert yyn = yytable[yyn]; 37452b15cb3dSCy Schubert if (0 < yyn) 37462b15cb3dSCy Schubert break; 37472b15cb3dSCy Schubert } 37482b15cb3dSCy Schubert } 37492b15cb3dSCy Schubert 37502b15cb3dSCy Schubert /* Pop the current state because it cannot handle the error token. */ 37512b15cb3dSCy Schubert if (yyssp == yyss) 37522b15cb3dSCy Schubert YYABORT; 37532b15cb3dSCy Schubert 37542b15cb3dSCy Schubert 37552b15cb3dSCy Schubert yydestruct ("Error: popping", 3756*276da39aSCy Schubert yystos[yystate], yyvsp); 37572b15cb3dSCy Schubert YYPOPSTACK (1); 37582b15cb3dSCy Schubert yystate = *yyssp; 37592b15cb3dSCy Schubert YY_STACK_PRINT (yyss, yyssp); 37602b15cb3dSCy Schubert } 37612b15cb3dSCy Schubert 37622b15cb3dSCy Schubert YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 37632b15cb3dSCy Schubert *++yyvsp = yylval; 37642b15cb3dSCy Schubert YY_IGNORE_MAYBE_UNINITIALIZED_END 37652b15cb3dSCy Schubert 37662b15cb3dSCy Schubert 37672b15cb3dSCy Schubert /* Shift the error token. */ 37682b15cb3dSCy Schubert YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); 37692b15cb3dSCy Schubert 37702b15cb3dSCy Schubert yystate = yyn; 37712b15cb3dSCy Schubert goto yynewstate; 37722b15cb3dSCy Schubert 37732b15cb3dSCy Schubert 37742b15cb3dSCy Schubert /*-------------------------------------. 37752b15cb3dSCy Schubert | yyacceptlab -- YYACCEPT comes here. | 37762b15cb3dSCy Schubert `-------------------------------------*/ 37772b15cb3dSCy Schubert yyacceptlab: 37782b15cb3dSCy Schubert yyresult = 0; 37792b15cb3dSCy Schubert goto yyreturn; 37802b15cb3dSCy Schubert 37812b15cb3dSCy Schubert /*-----------------------------------. 37822b15cb3dSCy Schubert | yyabortlab -- YYABORT comes here. | 37832b15cb3dSCy Schubert `-----------------------------------*/ 37842b15cb3dSCy Schubert yyabortlab: 37852b15cb3dSCy Schubert yyresult = 1; 37862b15cb3dSCy Schubert goto yyreturn; 37872b15cb3dSCy Schubert 37882b15cb3dSCy Schubert #if !defined yyoverflow || YYERROR_VERBOSE 37892b15cb3dSCy Schubert /*-------------------------------------------------. 37902b15cb3dSCy Schubert | yyexhaustedlab -- memory exhaustion comes here. | 37912b15cb3dSCy Schubert `-------------------------------------------------*/ 37922b15cb3dSCy Schubert yyexhaustedlab: 3793*276da39aSCy Schubert yyerror (YY_("memory exhausted")); 37942b15cb3dSCy Schubert yyresult = 2; 37952b15cb3dSCy Schubert /* Fall through. */ 37962b15cb3dSCy Schubert #endif 37972b15cb3dSCy Schubert 37982b15cb3dSCy Schubert yyreturn: 37992b15cb3dSCy Schubert if (yychar != YYEMPTY) 38002b15cb3dSCy Schubert { 38012b15cb3dSCy Schubert /* Make sure we have latest lookahead translation. See comments at 38022b15cb3dSCy Schubert user semantic actions for why this is necessary. */ 38032b15cb3dSCy Schubert yytoken = YYTRANSLATE (yychar); 38042b15cb3dSCy Schubert yydestruct ("Cleanup: discarding lookahead", 3805*276da39aSCy Schubert yytoken, &yylval); 38062b15cb3dSCy Schubert } 3807*276da39aSCy Schubert /* Do not reclaim the symbols of the rule which action triggered 38082b15cb3dSCy Schubert this YYABORT or YYACCEPT. */ 38092b15cb3dSCy Schubert YYPOPSTACK (yylen); 38102b15cb3dSCy Schubert YY_STACK_PRINT (yyss, yyssp); 38112b15cb3dSCy Schubert while (yyssp != yyss) 38122b15cb3dSCy Schubert { 38132b15cb3dSCy Schubert yydestruct ("Cleanup: popping", 3814*276da39aSCy Schubert yystos[*yyssp], yyvsp); 38152b15cb3dSCy Schubert YYPOPSTACK (1); 38162b15cb3dSCy Schubert } 38172b15cb3dSCy Schubert #ifndef yyoverflow 38182b15cb3dSCy Schubert if (yyss != yyssa) 38192b15cb3dSCy Schubert YYSTACK_FREE (yyss); 38202b15cb3dSCy Schubert #endif 38212b15cb3dSCy Schubert #if YYERROR_VERBOSE 38222b15cb3dSCy Schubert if (yymsg != yymsgbuf) 38232b15cb3dSCy Schubert YYSTACK_FREE (yymsg); 38242b15cb3dSCy Schubert #endif 3825*276da39aSCy Schubert /* Make sure YYID is used. */ 3826*276da39aSCy Schubert return YYID (yyresult); 38272b15cb3dSCy Schubert } 3828*276da39aSCy Schubert 3829*276da39aSCy Schubert 3830*276da39aSCy Schubert /* Line 2050 of yacc.c */ 3831*276da39aSCy Schubert #line 1604 "../../ntpd/ntp_parser.y" 38322b15cb3dSCy Schubert 38332b15cb3dSCy Schubert 38342b15cb3dSCy Schubert void 38352b15cb3dSCy Schubert yyerror( 38362b15cb3dSCy Schubert const char *msg 38372b15cb3dSCy Schubert ) 38382b15cb3dSCy Schubert { 38392b15cb3dSCy Schubert int retval; 3840*276da39aSCy Schubert struct FILE_INFO * ip_ctx; 38412b15cb3dSCy Schubert 3842*276da39aSCy Schubert ip_ctx = lex_current(); 3843*276da39aSCy Schubert ip_ctx->errpos = ip_ctx->tokpos; 38442b15cb3dSCy Schubert 3845*276da39aSCy Schubert msyslog(LOG_ERR, "line %d column %d %s", 3846*276da39aSCy Schubert ip_ctx->errpos.nline, ip_ctx->errpos.ncol, msg); 3847*276da39aSCy Schubert if (!lex_from_file()) { 38482b15cb3dSCy Schubert /* Save the error message in the correct buffer */ 38492b15cb3dSCy Schubert retval = snprintf(remote_config.err_msg + remote_config.err_pos, 38502b15cb3dSCy Schubert MAXLINE - remote_config.err_pos, 38512b15cb3dSCy Schubert "column %d %s", 3852*276da39aSCy Schubert ip_ctx->errpos.ncol, msg); 38532b15cb3dSCy Schubert 38542b15cb3dSCy Schubert /* Increment the value of err_pos */ 38552b15cb3dSCy Schubert if (retval > 0) 38562b15cb3dSCy Schubert remote_config.err_pos += retval; 38572b15cb3dSCy Schubert 38582b15cb3dSCy Schubert /* Increment the number of errors */ 38592b15cb3dSCy Schubert ++remote_config.no_errors; 38602b15cb3dSCy Schubert } 38612b15cb3dSCy Schubert } 38622b15cb3dSCy Schubert 38632b15cb3dSCy Schubert 38642b15cb3dSCy Schubert /* 38652b15cb3dSCy Schubert * token_name - convert T_ token integers to text 38662b15cb3dSCy Schubert * example: token_name(T_Server) returns "T_Server" 38672b15cb3dSCy Schubert */ 38682b15cb3dSCy Schubert const char * 38692b15cb3dSCy Schubert token_name( 38702b15cb3dSCy Schubert int token 38712b15cb3dSCy Schubert ) 38722b15cb3dSCy Schubert { 38732b15cb3dSCy Schubert return yytname[YYTRANSLATE(token)]; 38742b15cb3dSCy Schubert } 38752b15cb3dSCy Schubert 38762b15cb3dSCy Schubert 38772b15cb3dSCy Schubert /* Initial Testing function -- ignore */ 38782b15cb3dSCy Schubert #if 0 38792b15cb3dSCy Schubert int main(int argc, char *argv[]) 38802b15cb3dSCy Schubert { 38812b15cb3dSCy Schubert ip_file = FOPEN(argv[1], "r"); 38822b15cb3dSCy Schubert if (!ip_file) 38832b15cb3dSCy Schubert fprintf(stderr, "ERROR!! Could not open file: %s\n", argv[1]); 38842b15cb3dSCy Schubert yyparse(); 38852b15cb3dSCy Schubert return 0; 38862b15cb3dSCy Schubert } 38872b15cb3dSCy Schubert #endif 38882b15cb3dSCy Schubert 3889