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