xref: /freebsd/contrib/ntp/ntpd/ntp_parser.h (revision 66fd12cf4896eb08ad8e7a2627537f84ead84dd3)
1 /* A Bison parser, made by GNU Bison 3.7.6.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6    Inc.
7 
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation, either version 3 of the License, or
11    (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17 
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
20 
21 /* As a special exception, you may create a larger work that contains
22    part or all of the Bison parser skeleton and distribute that work
23    under terms of your choice, so long as that work isn't itself a
24    parser generator using the skeleton or a modified version thereof
25    as a parser skeleton.  Alternatively, if you modify or redistribute
26    the parser skeleton itself, you may (at your option) remove this
27    special exception, which will cause the skeleton and the resulting
28    Bison output files to be licensed under the GNU General Public
29    License without this special exception.
30 
31    This special exception was added by the Free Software Foundation in
32    version 2.2 of Bison.  */
33 
34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35    especially those whose name start with YY_ or yy_.  They are
36    private implementation details that can be changed or removed.  */
37 
38 #ifndef YY_YY__SRC_NTP_STABLE_NTPD_NTP_PARSER_H_INCLUDED
39 # define YY_YY__SRC_NTP_STABLE_NTPD_NTP_PARSER_H_INCLUDED
40 /* Debug traces.  */
41 #ifndef YYDEBUG
42 # define YYDEBUG 1
43 #endif
44 #if YYDEBUG
45 extern int yydebug;
46 #endif
47 
48 /* Token kinds.  */
49 #ifndef YYTOKENTYPE
50 # define YYTOKENTYPE
51   enum yytokentype
52   {
53     YYEMPTY = -2,
54     YYEOF = 0,                     /* "end of file"  */
55     YYerror = 256,                 /* error  */
56     YYUNDEF = 257,                 /* "invalid token"  */
57     T_Abbrev = 258,                /* T_Abbrev  */
58     T_Age = 259,                   /* T_Age  */
59     T_All = 260,                   /* T_All  */
60     T_Allan = 261,                 /* T_Allan  */
61     T_Allpeers = 262,              /* T_Allpeers  */
62     T_Auth = 263,                  /* T_Auth  */
63     T_Autokey = 264,               /* T_Autokey  */
64     T_Automax = 265,               /* T_Automax  */
65     T_Average = 266,               /* T_Average  */
66     T_Basedate = 267,              /* T_Basedate  */
67     T_Bclient = 268,               /* T_Bclient  */
68     T_Bcpollbstep = 269,           /* T_Bcpollbstep  */
69     T_Beacon = 270,                /* T_Beacon  */
70     T_Broadcast = 271,             /* T_Broadcast  */
71     T_Broadcastclient = 272,       /* T_Broadcastclient  */
72     T_Broadcastdelay = 273,        /* T_Broadcastdelay  */
73     T_Burst = 274,                 /* T_Burst  */
74     T_Calibrate = 275,             /* T_Calibrate  */
75     T_Ceiling = 276,               /* T_Ceiling  */
76     T_Checkhash = 277,             /* T_Checkhash  */
77     T_Clockstats = 278,            /* T_Clockstats  */
78     T_Cohort = 279,                /* T_Cohort  */
79     T_ControlKey = 280,            /* T_ControlKey  */
80     T_Crypto = 281,                /* T_Crypto  */
81     T_Cryptostats = 282,           /* T_Cryptostats  */
82     T_Ctl = 283,                   /* T_Ctl  */
83     T_Day = 284,                   /* T_Day  */
84     T_Default = 285,               /* T_Default  */
85     T_Device = 286,                /* T_Device  */
86     T_Digest = 287,                /* T_Digest  */
87     T_Disable = 288,               /* T_Disable  */
88     T_Discard = 289,               /* T_Discard  */
89     T_Dispersion = 290,            /* T_Dispersion  */
90     T_Double = 291,                /* T_Double  */
91     T_Driftfile = 292,             /* T_Driftfile  */
92     T_Drop = 293,                  /* T_Drop  */
93     T_Dscp = 294,                  /* T_Dscp  */
94     T_Ellipsis = 295,              /* T_Ellipsis  */
95     T_Enable = 296,                /* T_Enable  */
96     T_End = 297,                   /* T_End  */
97     T_Epeer = 298,                 /* T_Epeer  */
98     T_False = 299,                 /* T_False  */
99     T_File = 300,                  /* T_File  */
100     T_Filegen = 301,               /* T_Filegen  */
101     T_Filenum = 302,               /* T_Filenum  */
102     T_Flag1 = 303,                 /* T_Flag1  */
103     T_Flag2 = 304,                 /* T_Flag2  */
104     T_Flag3 = 305,                 /* T_Flag3  */
105     T_Flag4 = 306,                 /* T_Flag4  */
106     T_Flake = 307,                 /* T_Flake  */
107     T_Floor = 308,                 /* T_Floor  */
108     T_Freq = 309,                  /* T_Freq  */
109     T_Fudge = 310,                 /* T_Fudge  */
110     T_Fuzz = 311,                  /* T_Fuzz  */
111     T_Host = 312,                  /* T_Host  */
112     T_Huffpuff = 313,              /* T_Huffpuff  */
113     T_Iburst = 314,                /* T_Iburst  */
114     T_Ident = 315,                 /* T_Ident  */
115     T_Ignore = 316,                /* T_Ignore  */
116     T_Ignorehash = 317,            /* T_Ignorehash  */
117     T_Incalloc = 318,              /* T_Incalloc  */
118     T_Incmem = 319,                /* T_Incmem  */
119     T_Initalloc = 320,             /* T_Initalloc  */
120     T_Initmem = 321,               /* T_Initmem  */
121     T_Includefile = 322,           /* T_Includefile  */
122     T_Integer = 323,               /* T_Integer  */
123     T_Interface = 324,             /* T_Interface  */
124     T_Intrange = 325,              /* T_Intrange  */
125     T_Io = 326,                    /* T_Io  */
126     T_Ippeerlimit = 327,           /* T_Ippeerlimit  */
127     T_Ipv4 = 328,                  /* T_Ipv4  */
128     T_Ipv4_flag = 329,             /* T_Ipv4_flag  */
129     T_Ipv6 = 330,                  /* T_Ipv6  */
130     T_Ipv6_flag = 331,             /* T_Ipv6_flag  */
131     T_Kernel = 332,                /* T_Kernel  */
132     T_Key = 333,                   /* T_Key  */
133     T_Keys = 334,                  /* T_Keys  */
134     T_Keysdir = 335,               /* T_Keysdir  */
135     T_Kod = 336,                   /* T_Kod  */
136     T_Leapfile = 337,              /* T_Leapfile  */
137     T_Leapsmearinterval = 338,     /* T_Leapsmearinterval  */
138     T_Limited = 339,               /* T_Limited  */
139     T_Link = 340,                  /* T_Link  */
140     T_Listen = 341,                /* T_Listen  */
141     T_Logconfig = 342,             /* T_Logconfig  */
142     T_Logfile = 343,               /* T_Logfile  */
143     T_Loopstats = 344,             /* T_Loopstats  */
144     T_Lowpriotrap = 345,           /* T_Lowpriotrap  */
145     T_Manycastclient = 346,        /* T_Manycastclient  */
146     T_Manycastserver = 347,        /* T_Manycastserver  */
147     T_Mask = 348,                  /* T_Mask  */
148     T_Maxage = 349,                /* T_Maxage  */
149     T_Maxclock = 350,              /* T_Maxclock  */
150     T_Maxdepth = 351,              /* T_Maxdepth  */
151     T_Maxdist = 352,               /* T_Maxdist  */
152     T_Maxmem = 353,                /* T_Maxmem  */
153     T_Maxpoll = 354,               /* T_Maxpoll  */
154     T_Mdnstries = 355,             /* T_Mdnstries  */
155     T_Mem = 356,                   /* T_Mem  */
156     T_Memlock = 357,               /* T_Memlock  */
157     T_Minclock = 358,              /* T_Minclock  */
158     T_Mindepth = 359,              /* T_Mindepth  */
159     T_Mindist = 360,               /* T_Mindist  */
160     T_Minimum = 361,               /* T_Minimum  */
161     T_Minjitter = 362,             /* T_Minjitter  */
162     T_Minpoll = 363,               /* T_Minpoll  */
163     T_Minsane = 364,               /* T_Minsane  */
164     T_Mode = 365,                  /* T_Mode  */
165     T_Mode7 = 366,                 /* T_Mode7  */
166     T_Monitor = 367,               /* T_Monitor  */
167     T_Month = 368,                 /* T_Month  */
168     T_Mru = 369,                   /* T_Mru  */
169     T_Mssntp = 370,                /* T_Mssntp  */
170     T_Multicastclient = 371,       /* T_Multicastclient  */
171     T_Nic = 372,                   /* T_Nic  */
172     T_Nolink = 373,                /* T_Nolink  */
173     T_Nomodify = 374,              /* T_Nomodify  */
174     T_Nomrulist = 375,             /* T_Nomrulist  */
175     T_None = 376,                  /* T_None  */
176     T_Nonvolatile = 377,           /* T_Nonvolatile  */
177     T_Noepeer = 378,               /* T_Noepeer  */
178     T_Nopeer = 379,                /* T_Nopeer  */
179     T_Noquery = 380,               /* T_Noquery  */
180     T_Noselect = 381,              /* T_Noselect  */
181     T_Noserve = 382,               /* T_Noserve  */
182     T_Notrap = 383,                /* T_Notrap  */
183     T_Notrust = 384,               /* T_Notrust  */
184     T_Ntp = 385,                   /* T_Ntp  */
185     T_Ntpport = 386,               /* T_Ntpport  */
186     T_NtpSignDsocket = 387,        /* T_NtpSignDsocket  */
187     T_Orphan = 388,                /* T_Orphan  */
188     T_Orphanwait = 389,            /* T_Orphanwait  */
189     T_PCEdigest = 390,             /* T_PCEdigest  */
190     T_Panic = 391,                 /* T_Panic  */
191     T_Peer = 392,                  /* T_Peer  */
192     T_Peerstats = 393,             /* T_Peerstats  */
193     T_Phone = 394,                 /* T_Phone  */
194     T_Pid = 395,                   /* T_Pid  */
195     T_Pidfile = 396,               /* T_Pidfile  */
196     T_Poll = 397,                  /* T_Poll  */
197     T_PollSkewList = 398,          /* T_PollSkewList  */
198     T_Pool = 399,                  /* T_Pool  */
199     T_Port = 400,                  /* T_Port  */
200     T_PpsData = 401,               /* T_PpsData  */
201     T_Preempt = 402,               /* T_Preempt  */
202     T_Prefer = 403,                /* T_Prefer  */
203     T_Protostats = 404,            /* T_Protostats  */
204     T_Pw = 405,                    /* T_Pw  */
205     T_Randfile = 406,              /* T_Randfile  */
206     T_Rawstats = 407,              /* T_Rawstats  */
207     T_Refid = 408,                 /* T_Refid  */
208     T_Requestkey = 409,            /* T_Requestkey  */
209     T_Reset = 410,                 /* T_Reset  */
210     T_Restrict = 411,              /* T_Restrict  */
211     T_Revoke = 412,                /* T_Revoke  */
212     T_Rlimit = 413,                /* T_Rlimit  */
213     T_Saveconfigdir = 414,         /* T_Saveconfigdir  */
214     T_Server = 415,                /* T_Server  */
215     T_Serverresponse = 416,        /* T_Serverresponse  */
216     T_ServerresponseFuzz = 417,    /* T_ServerresponseFuzz  */
217     T_Setvar = 418,                /* T_Setvar  */
218     T_Source = 419,                /* T_Source  */
219     T_Stacksize = 420,             /* T_Stacksize  */
220     T_Statistics = 421,            /* T_Statistics  */
221     T_Stats = 422,                 /* T_Stats  */
222     T_Statsdir = 423,              /* T_Statsdir  */
223     T_Step = 424,                  /* T_Step  */
224     T_Stepback = 425,              /* T_Stepback  */
225     T_Stepfwd = 426,               /* T_Stepfwd  */
226     T_Stepout = 427,               /* T_Stepout  */
227     T_Stratum = 428,               /* T_Stratum  */
228     T_String = 429,                /* T_String  */
229     T_Sys = 430,                   /* T_Sys  */
230     T_Sysstats = 431,              /* T_Sysstats  */
231     T_Tick = 432,                  /* T_Tick  */
232     T_Time1 = 433,                 /* T_Time1  */
233     T_Time2 = 434,                 /* T_Time2  */
234     T_TimeData = 435,              /* T_TimeData  */
235     T_Timer = 436,                 /* T_Timer  */
236     T_Timingstats = 437,           /* T_Timingstats  */
237     T_Tinker = 438,                /* T_Tinker  */
238     T_Tos = 439,                   /* T_Tos  */
239     T_Trap = 440,                  /* T_Trap  */
240     T_True = 441,                  /* T_True  */
241     T_Trustedkey = 442,            /* T_Trustedkey  */
242     T_Ttl = 443,                   /* T_Ttl  */
243     T_Type = 444,                  /* T_Type  */
244     T_U_int = 445,                 /* T_U_int  */
245     T_UEcrypto = 446,              /* T_UEcrypto  */
246     T_UEcryptonak = 447,           /* T_UEcryptonak  */
247     T_UEdigest = 448,              /* T_UEdigest  */
248     T_Unconfig = 449,              /* T_Unconfig  */
249     T_Unpeer = 450,                /* T_Unpeer  */
250     T_Version = 451,               /* T_Version  */
251     T_WanderThreshold = 452,       /* T_WanderThreshold  */
252     T_Week = 453,                  /* T_Week  */
253     T_Wildcard = 454,              /* T_Wildcard  */
254     T_Xleave = 455,                /* T_Xleave  */
255     T_Xmtnonce = 456,              /* T_Xmtnonce  */
256     T_Year = 457,                  /* T_Year  */
257     T_Flag = 458,                  /* T_Flag  */
258     T_EOC = 459,                   /* T_EOC  */
259     T_Simulate = 460,              /* T_Simulate  */
260     T_Beep_Delay = 461,            /* T_Beep_Delay  */
261     T_Sim_Duration = 462,          /* T_Sim_Duration  */
262     T_Server_Offset = 463,         /* T_Server_Offset  */
263     T_Duration = 464,              /* T_Duration  */
264     T_Freq_Offset = 465,           /* T_Freq_Offset  */
265     T_Wander = 466,                /* T_Wander  */
266     T_Jitter = 467,                /* T_Jitter  */
267     T_Prop_Delay = 468,            /* T_Prop_Delay  */
268     T_Proc_Delay = 469             /* T_Proc_Delay  */
269   };
270   typedef enum yytokentype yytoken_kind_t;
271 #endif
272 /* Token kinds.  */
273 #define YYEMPTY -2
274 #define YYEOF 0
275 #define YYerror 256
276 #define YYUNDEF 257
277 #define T_Abbrev 258
278 #define T_Age 259
279 #define T_All 260
280 #define T_Allan 261
281 #define T_Allpeers 262
282 #define T_Auth 263
283 #define T_Autokey 264
284 #define T_Automax 265
285 #define T_Average 266
286 #define T_Basedate 267
287 #define T_Bclient 268
288 #define T_Bcpollbstep 269
289 #define T_Beacon 270
290 #define T_Broadcast 271
291 #define T_Broadcastclient 272
292 #define T_Broadcastdelay 273
293 #define T_Burst 274
294 #define T_Calibrate 275
295 #define T_Ceiling 276
296 #define T_Checkhash 277
297 #define T_Clockstats 278
298 #define T_Cohort 279
299 #define T_ControlKey 280
300 #define T_Crypto 281
301 #define T_Cryptostats 282
302 #define T_Ctl 283
303 #define T_Day 284
304 #define T_Default 285
305 #define T_Device 286
306 #define T_Digest 287
307 #define T_Disable 288
308 #define T_Discard 289
309 #define T_Dispersion 290
310 #define T_Double 291
311 #define T_Driftfile 292
312 #define T_Drop 293
313 #define T_Dscp 294
314 #define T_Ellipsis 295
315 #define T_Enable 296
316 #define T_End 297
317 #define T_Epeer 298
318 #define T_False 299
319 #define T_File 300
320 #define T_Filegen 301
321 #define T_Filenum 302
322 #define T_Flag1 303
323 #define T_Flag2 304
324 #define T_Flag3 305
325 #define T_Flag4 306
326 #define T_Flake 307
327 #define T_Floor 308
328 #define T_Freq 309
329 #define T_Fudge 310
330 #define T_Fuzz 311
331 #define T_Host 312
332 #define T_Huffpuff 313
333 #define T_Iburst 314
334 #define T_Ident 315
335 #define T_Ignore 316
336 #define T_Ignorehash 317
337 #define T_Incalloc 318
338 #define T_Incmem 319
339 #define T_Initalloc 320
340 #define T_Initmem 321
341 #define T_Includefile 322
342 #define T_Integer 323
343 #define T_Interface 324
344 #define T_Intrange 325
345 #define T_Io 326
346 #define T_Ippeerlimit 327
347 #define T_Ipv4 328
348 #define T_Ipv4_flag 329
349 #define T_Ipv6 330
350 #define T_Ipv6_flag 331
351 #define T_Kernel 332
352 #define T_Key 333
353 #define T_Keys 334
354 #define T_Keysdir 335
355 #define T_Kod 336
356 #define T_Leapfile 337
357 #define T_Leapsmearinterval 338
358 #define T_Limited 339
359 #define T_Link 340
360 #define T_Listen 341
361 #define T_Logconfig 342
362 #define T_Logfile 343
363 #define T_Loopstats 344
364 #define T_Lowpriotrap 345
365 #define T_Manycastclient 346
366 #define T_Manycastserver 347
367 #define T_Mask 348
368 #define T_Maxage 349
369 #define T_Maxclock 350
370 #define T_Maxdepth 351
371 #define T_Maxdist 352
372 #define T_Maxmem 353
373 #define T_Maxpoll 354
374 #define T_Mdnstries 355
375 #define T_Mem 356
376 #define T_Memlock 357
377 #define T_Minclock 358
378 #define T_Mindepth 359
379 #define T_Mindist 360
380 #define T_Minimum 361
381 #define T_Minjitter 362
382 #define T_Minpoll 363
383 #define T_Minsane 364
384 #define T_Mode 365
385 #define T_Mode7 366
386 #define T_Monitor 367
387 #define T_Month 368
388 #define T_Mru 369
389 #define T_Mssntp 370
390 #define T_Multicastclient 371
391 #define T_Nic 372
392 #define T_Nolink 373
393 #define T_Nomodify 374
394 #define T_Nomrulist 375
395 #define T_None 376
396 #define T_Nonvolatile 377
397 #define T_Noepeer 378
398 #define T_Nopeer 379
399 #define T_Noquery 380
400 #define T_Noselect 381
401 #define T_Noserve 382
402 #define T_Notrap 383
403 #define T_Notrust 384
404 #define T_Ntp 385
405 #define T_Ntpport 386
406 #define T_NtpSignDsocket 387
407 #define T_Orphan 388
408 #define T_Orphanwait 389
409 #define T_PCEdigest 390
410 #define T_Panic 391
411 #define T_Peer 392
412 #define T_Peerstats 393
413 #define T_Phone 394
414 #define T_Pid 395
415 #define T_Pidfile 396
416 #define T_Poll 397
417 #define T_PollSkewList 398
418 #define T_Pool 399
419 #define T_Port 400
420 #define T_PpsData 401
421 #define T_Preempt 402
422 #define T_Prefer 403
423 #define T_Protostats 404
424 #define T_Pw 405
425 #define T_Randfile 406
426 #define T_Rawstats 407
427 #define T_Refid 408
428 #define T_Requestkey 409
429 #define T_Reset 410
430 #define T_Restrict 411
431 #define T_Revoke 412
432 #define T_Rlimit 413
433 #define T_Saveconfigdir 414
434 #define T_Server 415
435 #define T_Serverresponse 416
436 #define T_ServerresponseFuzz 417
437 #define T_Setvar 418
438 #define T_Source 419
439 #define T_Stacksize 420
440 #define T_Statistics 421
441 #define T_Stats 422
442 #define T_Statsdir 423
443 #define T_Step 424
444 #define T_Stepback 425
445 #define T_Stepfwd 426
446 #define T_Stepout 427
447 #define T_Stratum 428
448 #define T_String 429
449 #define T_Sys 430
450 #define T_Sysstats 431
451 #define T_Tick 432
452 #define T_Time1 433
453 #define T_Time2 434
454 #define T_TimeData 435
455 #define T_Timer 436
456 #define T_Timingstats 437
457 #define T_Tinker 438
458 #define T_Tos 439
459 #define T_Trap 440
460 #define T_True 441
461 #define T_Trustedkey 442
462 #define T_Ttl 443
463 #define T_Type 444
464 #define T_U_int 445
465 #define T_UEcrypto 446
466 #define T_UEcryptonak 447
467 #define T_UEdigest 448
468 #define T_Unconfig 449
469 #define T_Unpeer 450
470 #define T_Version 451
471 #define T_WanderThreshold 452
472 #define T_Week 453
473 #define T_Wildcard 454
474 #define T_Xleave 455
475 #define T_Xmtnonce 456
476 #define T_Year 457
477 #define T_Flag 458
478 #define T_EOC 459
479 #define T_Simulate 460
480 #define T_Beep_Delay 461
481 #define T_Sim_Duration 462
482 #define T_Server_Offset 463
483 #define T_Duration 464
484 #define T_Freq_Offset 465
485 #define T_Wander 466
486 #define T_Jitter 467
487 #define T_Prop_Delay 468
488 #define T_Proc_Delay 469
489 
490 /* Value type.  */
491 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
492 union YYSTYPE
493 {
494 #line 52 "../../../src/ntp-stable-3758/ntpd/ntp_parser.y"
495 
496 	char *			String;
497 	double			Double;
498 	int			Integer;
499 	unsigned		U_int;
500 	gen_fifo *		Generic_fifo;
501 	attr_val *		Attr_val;
502 	attr_val_fifo *		Attr_val_fifo;
503 	int_fifo *		Int_fifo;
504 	string_fifo *		String_fifo;
505 	address_node *		Address_node;
506 	address_fifo *		Address_fifo;
507 	setvar_node *		Set_var;
508 	server_info *		Sim_server;
509 	server_info_fifo *	Sim_server_fifo;
510 	script_info *		Sim_script;
511 	script_info_fifo *	Sim_script_fifo;
512 
513 #line 514 "../../../src/ntp-stable-3758/ntpd/ntp_parser.h"
514 
515 };
516 typedef union YYSTYPE YYSTYPE;
517 # define YYSTYPE_IS_TRIVIAL 1
518 # define YYSTYPE_IS_DECLARED 1
519 #endif
520 
521 
522 extern YYSTYPE yylval;
523 
524 int yyparse (void);
525 
526 #endif /* !YY_YY__SRC_NTP_STABLE_NTPD_NTP_PARSER_H_INCLUDED  */
527