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