ntp_parser.h revision 275970
1/* A Bison parser, made by GNU Bison 3.0.2. */ 2 3/* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2013 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_______NTPD_NTP_PARSER_H_INCLUDED 34# define YY_YY_______NTPD_NTP_PARSER_H_INCLUDED 35/* Debug traces. */ 36#ifndef YYDEBUG 37# define YYDEBUG 1 38#endif 39#if YYDEBUG 40extern 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_Bclient = 267, 58 T_Beacon = 268, 59 T_Broadcast = 269, 60 T_Broadcastclient = 270, 61 T_Broadcastdelay = 271, 62 T_Burst = 272, 63 T_Calibrate = 273, 64 T_Ceiling = 274, 65 T_Clockstats = 275, 66 T_Cohort = 276, 67 T_ControlKey = 277, 68 T_Crypto = 278, 69 T_Cryptostats = 279, 70 T_Ctl = 280, 71 T_Day = 281, 72 T_Default = 282, 73 T_Digest = 283, 74 T_Disable = 284, 75 T_Discard = 285, 76 T_Dispersion = 286, 77 T_Double = 287, 78 T_Driftfile = 288, 79 T_Drop = 289, 80 T_Ellipsis = 290, 81 T_Enable = 291, 82 T_End = 292, 83 T_False = 293, 84 T_File = 294, 85 T_Filegen = 295, 86 T_Filenum = 296, 87 T_Flag1 = 297, 88 T_Flag2 = 298, 89 T_Flag3 = 299, 90 T_Flag4 = 300, 91 T_Flake = 301, 92 T_Floor = 302, 93 T_Freq = 303, 94 T_Fudge = 304, 95 T_Host = 305, 96 T_Huffpuff = 306, 97 T_Iburst = 307, 98 T_Ident = 308, 99 T_Ignore = 309, 100 T_Incalloc = 310, 101 T_Incmem = 311, 102 T_Initalloc = 312, 103 T_Initmem = 313, 104 T_Includefile = 314, 105 T_Integer = 315, 106 T_Interface = 316, 107 T_Intrange = 317, 108 T_Io = 318, 109 T_Ipv4 = 319, 110 T_Ipv4_flag = 320, 111 T_Ipv6 = 321, 112 T_Ipv6_flag = 322, 113 T_Kernel = 323, 114 T_Key = 324, 115 T_Keys = 325, 116 T_Keysdir = 326, 117 T_Kod = 327, 118 T_Mssntp = 328, 119 T_Leapfile = 329, 120 T_Limited = 330, 121 T_Link = 331, 122 T_Listen = 332, 123 T_Logconfig = 333, 124 T_Logfile = 334, 125 T_Loopstats = 335, 126 T_Lowpriotrap = 336, 127 T_Manycastclient = 337, 128 T_Manycastserver = 338, 129 T_Mask = 339, 130 T_Maxage = 340, 131 T_Maxclock = 341, 132 T_Maxdepth = 342, 133 T_Maxdist = 343, 134 T_Maxmem = 344, 135 T_Maxpoll = 345, 136 T_Mem = 346, 137 T_Memlock = 347, 138 T_Minclock = 348, 139 T_Mindepth = 349, 140 T_Mindist = 350, 141 T_Minimum = 351, 142 T_Minpoll = 352, 143 T_Minsane = 353, 144 T_Mode = 354, 145 T_Mode7 = 355, 146 T_Monitor = 356, 147 T_Month = 357, 148 T_Mru = 358, 149 T_Multicastclient = 359, 150 T_Nic = 360, 151 T_Nolink = 361, 152 T_Nomodify = 362, 153 T_Nomrulist = 363, 154 T_None = 364, 155 T_Nonvolatile = 365, 156 T_Nopeer = 366, 157 T_Noquery = 367, 158 T_Noselect = 368, 159 T_Noserve = 369, 160 T_Notrap = 370, 161 T_Notrust = 371, 162 T_Ntp = 372, 163 T_Ntpport = 373, 164 T_NtpSignDsocket = 374, 165 T_Orphan = 375, 166 T_Orphanwait = 376, 167 T_Panic = 377, 168 T_Peer = 378, 169 T_Peerstats = 379, 170 T_Phone = 380, 171 T_Pid = 381, 172 T_Pidfile = 382, 173 T_Pool = 383, 174 T_Port = 384, 175 T_Preempt = 385, 176 T_Prefer = 386, 177 T_Protostats = 387, 178 T_Pw = 388, 179 T_Randfile = 389, 180 T_Rawstats = 390, 181 T_Refid = 391, 182 T_Requestkey = 392, 183 T_Reset = 393, 184 T_Restrict = 394, 185 T_Revoke = 395, 186 T_Rlimit = 396, 187 T_Saveconfigdir = 397, 188 T_Server = 398, 189 T_Setvar = 399, 190 T_Source = 400, 191 T_Stacksize = 401, 192 T_Statistics = 402, 193 T_Stats = 403, 194 T_Statsdir = 404, 195 T_Step = 405, 196 T_Stepout = 406, 197 T_Stratum = 407, 198 T_String = 408, 199 T_Sys = 409, 200 T_Sysstats = 410, 201 T_Tick = 411, 202 T_Time1 = 412, 203 T_Time2 = 413, 204 T_Timer = 414, 205 T_Timingstats = 415, 206 T_Tinker = 416, 207 T_Tos = 417, 208 T_Trap = 418, 209 T_True = 419, 210 T_Trustedkey = 420, 211 T_Ttl = 421, 212 T_Type = 422, 213 T_U_int = 423, 214 T_Unconfig = 424, 215 T_Unpeer = 425, 216 T_Version = 426, 217 T_WanderThreshold = 427, 218 T_Week = 428, 219 T_Wildcard = 429, 220 T_Xleave = 430, 221 T_Year = 431, 222 T_Flag = 432, 223 T_EOC = 433, 224 T_Simulate = 434, 225 T_Beep_Delay = 435, 226 T_Sim_Duration = 436, 227 T_Server_Offset = 437, 228 T_Duration = 438, 229 T_Freq_Offset = 439, 230 T_Wander = 440, 231 T_Jitter = 441, 232 T_Prop_Delay = 442, 233 T_Proc_Delay = 443 234 }; 235#endif 236/* Tokens. */ 237#define T_Abbrev 258 238#define T_Age 259 239#define T_All 260 240#define T_Allan 261 241#define T_Allpeers 262 242#define T_Auth 263 243#define T_Autokey 264 244#define T_Automax 265 245#define T_Average 266 246#define T_Bclient 267 247#define T_Beacon 268 248#define T_Broadcast 269 249#define T_Broadcastclient 270 250#define T_Broadcastdelay 271 251#define T_Burst 272 252#define T_Calibrate 273 253#define T_Ceiling 274 254#define T_Clockstats 275 255#define T_Cohort 276 256#define T_ControlKey 277 257#define T_Crypto 278 258#define T_Cryptostats 279 259#define T_Ctl 280 260#define T_Day 281 261#define T_Default 282 262#define T_Digest 283 263#define T_Disable 284 264#define T_Discard 285 265#define T_Dispersion 286 266#define T_Double 287 267#define T_Driftfile 288 268#define T_Drop 289 269#define T_Ellipsis 290 270#define T_Enable 291 271#define T_End 292 272#define T_False 293 273#define T_File 294 274#define T_Filegen 295 275#define T_Filenum 296 276#define T_Flag1 297 277#define T_Flag2 298 278#define T_Flag3 299 279#define T_Flag4 300 280#define T_Flake 301 281#define T_Floor 302 282#define T_Freq 303 283#define T_Fudge 304 284#define T_Host 305 285#define T_Huffpuff 306 286#define T_Iburst 307 287#define T_Ident 308 288#define T_Ignore 309 289#define T_Incalloc 310 290#define T_Incmem 311 291#define T_Initalloc 312 292#define T_Initmem 313 293#define T_Includefile 314 294#define T_Integer 315 295#define T_Interface 316 296#define T_Intrange 317 297#define T_Io 318 298#define T_Ipv4 319 299#define T_Ipv4_flag 320 300#define T_Ipv6 321 301#define T_Ipv6_flag 322 302#define T_Kernel 323 303#define T_Key 324 304#define T_Keys 325 305#define T_Keysdir 326 306#define T_Kod 327 307#define T_Mssntp 328 308#define T_Leapfile 329 309#define T_Limited 330 310#define T_Link 331 311#define T_Listen 332 312#define T_Logconfig 333 313#define T_Logfile 334 314#define T_Loopstats 335 315#define T_Lowpriotrap 336 316#define T_Manycastclient 337 317#define T_Manycastserver 338 318#define T_Mask 339 319#define T_Maxage 340 320#define T_Maxclock 341 321#define T_Maxdepth 342 322#define T_Maxdist 343 323#define T_Maxmem 344 324#define T_Maxpoll 345 325#define T_Mem 346 326#define T_Memlock 347 327#define T_Minclock 348 328#define T_Mindepth 349 329#define T_Mindist 350 330#define T_Minimum 351 331#define T_Minpoll 352 332#define T_Minsane 353 333#define T_Mode 354 334#define T_Mode7 355 335#define T_Monitor 356 336#define T_Month 357 337#define T_Mru 358 338#define T_Multicastclient 359 339#define T_Nic 360 340#define T_Nolink 361 341#define T_Nomodify 362 342#define T_Nomrulist 363 343#define T_None 364 344#define T_Nonvolatile 365 345#define T_Nopeer 366 346#define T_Noquery 367 347#define T_Noselect 368 348#define T_Noserve 369 349#define T_Notrap 370 350#define T_Notrust 371 351#define T_Ntp 372 352#define T_Ntpport 373 353#define T_NtpSignDsocket 374 354#define T_Orphan 375 355#define T_Orphanwait 376 356#define T_Panic 377 357#define T_Peer 378 358#define T_Peerstats 379 359#define T_Phone 380 360#define T_Pid 381 361#define T_Pidfile 382 362#define T_Pool 383 363#define T_Port 384 364#define T_Preempt 385 365#define T_Prefer 386 366#define T_Protostats 387 367#define T_Pw 388 368#define T_Randfile 389 369#define T_Rawstats 390 370#define T_Refid 391 371#define T_Requestkey 392 372#define T_Reset 393 373#define T_Restrict 394 374#define T_Revoke 395 375#define T_Rlimit 396 376#define T_Saveconfigdir 397 377#define T_Server 398 378#define T_Setvar 399 379#define T_Source 400 380#define T_Stacksize 401 381#define T_Statistics 402 382#define T_Stats 403 383#define T_Statsdir 404 384#define T_Step 405 385#define T_Stepout 406 386#define T_Stratum 407 387#define T_String 408 388#define T_Sys 409 389#define T_Sysstats 410 390#define T_Tick 411 391#define T_Time1 412 392#define T_Time2 413 393#define T_Timer 414 394#define T_Timingstats 415 395#define T_Tinker 416 396#define T_Tos 417 397#define T_Trap 418 398#define T_True 419 399#define T_Trustedkey 420 400#define T_Ttl 421 401#define T_Type 422 402#define T_U_int 423 403#define T_Unconfig 424 404#define T_Unpeer 425 405#define T_Version 426 406#define T_WanderThreshold 427 407#define T_Week 428 408#define T_Wildcard 429 409#define T_Xleave 430 410#define T_Year 431 411#define T_Flag 432 412#define T_EOC 433 413#define T_Simulate 434 414#define T_Beep_Delay 435 415#define T_Sim_Duration 436 416#define T_Server_Offset 437 417#define T_Duration 438 418#define T_Freq_Offset 439 419#define T_Wander 440 420#define T_Jitter 441 421#define T_Prop_Delay 442 422#define T_Proc_Delay 443 423 424/* Value type. */ 425#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 426typedef union YYSTYPE YYSTYPE; 427union YYSTYPE 428{ 429#line 54 "ntp_parser.y" /* yacc.c:1909 */ 430 431 char * String; 432 double Double; 433 int Integer; 434 unsigned U_int; 435 gen_fifo * Generic_fifo; 436 attr_val * Attr_val; 437 attr_val_fifo * Attr_val_fifo; 438 int_fifo * Int_fifo; 439 string_fifo * String_fifo; 440 address_node * Address_node; 441 address_fifo * Address_fifo; 442 setvar_node * Set_var; 443 server_info * Sim_server; 444 server_info_fifo * Sim_server_fifo; 445 script_info * Sim_script; 446 script_info_fifo * Sim_script_fifo; 447 448#line 449 "../../ntpd/ntp_parser.h" /* yacc.c:1909 */ 449}; 450# define YYSTYPE_IS_TRIVIAL 1 451# define YYSTYPE_IS_DECLARED 1 452#endif 453 454 455extern YYSTYPE yylval; 456 457int yyparse (struct FILE_INFO *ip_file); 458 459#endif /* !YY_YY_______NTPD_NTP_PARSER_H_INCLUDED */ 460