xref: /netbsd-src/external/bsd/nsd/dist/zparser.h (revision 479d8f7d843cc1b22d497efdf1f27a50ee8418d4)
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_ZPARSER_H_INCLUDED
34 # define YY_YY_ZPARSER_H_INCLUDED
35 /* Debug traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
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_A = 258,
49     T_NS = 259,
50     T_MX = 260,
51     T_TXT = 261,
52     T_CNAME = 262,
53     T_AAAA = 263,
54     T_PTR = 264,
55     T_NXT = 265,
56     T_KEY = 266,
57     T_SOA = 267,
58     T_SIG = 268,
59     T_SRV = 269,
60     T_CERT = 270,
61     T_LOC = 271,
62     T_MD = 272,
63     T_MF = 273,
64     T_MB = 274,
65     T_MG = 275,
66     T_MR = 276,
67     T_NULL = 277,
68     T_WKS = 278,
69     T_HINFO = 279,
70     T_MINFO = 280,
71     T_RP = 281,
72     T_AFSDB = 282,
73     T_X25 = 283,
74     T_ISDN = 284,
75     T_RT = 285,
76     T_NSAP = 286,
77     T_NSAP_PTR = 287,
78     T_PX = 288,
79     T_GPOS = 289,
80     T_EID = 290,
81     T_NIMLOC = 291,
82     T_ATMA = 292,
83     T_NAPTR = 293,
84     T_KX = 294,
85     T_A6 = 295,
86     T_DNAME = 296,
87     T_SINK = 297,
88     T_OPT = 298,
89     T_APL = 299,
90     T_UINFO = 300,
91     T_UID = 301,
92     T_GID = 302,
93     T_UNSPEC = 303,
94     T_TKEY = 304,
95     T_TSIG = 305,
96     T_IXFR = 306,
97     T_AXFR = 307,
98     T_MAILB = 308,
99     T_MAILA = 309,
100     T_DS = 310,
101     T_DLV = 311,
102     T_SSHFP = 312,
103     T_RRSIG = 313,
104     T_NSEC = 314,
105     T_DNSKEY = 315,
106     T_SPF = 316,
107     T_NSEC3 = 317,
108     T_IPSECKEY = 318,
109     T_DHCID = 319,
110     T_NSEC3PARAM = 320,
111     T_TLSA = 321,
112     T_URI = 322,
113     T_NID = 323,
114     T_L32 = 324,
115     T_L64 = 325,
116     T_LP = 326,
117     T_EUI48 = 327,
118     T_EUI64 = 328,
119     T_CAA = 329,
120     T_CDS = 330,
121     T_CDNSKEY = 331,
122     T_OPENPGPKEY = 332,
123     T_CSYNC = 333,
124     DOLLAR_TTL = 334,
125     DOLLAR_ORIGIN = 335,
126     NL = 336,
127     SP = 337,
128     STR = 338,
129     PREV = 339,
130     BITLAB = 340,
131     T_TTL = 341,
132     T_RRCLASS = 342,
133     URR = 343,
134     T_UTYPE = 344
135   };
136 #endif
137 /* Tokens.  */
138 #define T_A 258
139 #define T_NS 259
140 #define T_MX 260
141 #define T_TXT 261
142 #define T_CNAME 262
143 #define T_AAAA 263
144 #define T_PTR 264
145 #define T_NXT 265
146 #define T_KEY 266
147 #define T_SOA 267
148 #define T_SIG 268
149 #define T_SRV 269
150 #define T_CERT 270
151 #define T_LOC 271
152 #define T_MD 272
153 #define T_MF 273
154 #define T_MB 274
155 #define T_MG 275
156 #define T_MR 276
157 #define T_NULL 277
158 #define T_WKS 278
159 #define T_HINFO 279
160 #define T_MINFO 280
161 #define T_RP 281
162 #define T_AFSDB 282
163 #define T_X25 283
164 #define T_ISDN 284
165 #define T_RT 285
166 #define T_NSAP 286
167 #define T_NSAP_PTR 287
168 #define T_PX 288
169 #define T_GPOS 289
170 #define T_EID 290
171 #define T_NIMLOC 291
172 #define T_ATMA 292
173 #define T_NAPTR 293
174 #define T_KX 294
175 #define T_A6 295
176 #define T_DNAME 296
177 #define T_SINK 297
178 #define T_OPT 298
179 #define T_APL 299
180 #define T_UINFO 300
181 #define T_UID 301
182 #define T_GID 302
183 #define T_UNSPEC 303
184 #define T_TKEY 304
185 #define T_TSIG 305
186 #define T_IXFR 306
187 #define T_AXFR 307
188 #define T_MAILB 308
189 #define T_MAILA 309
190 #define T_DS 310
191 #define T_DLV 311
192 #define T_SSHFP 312
193 #define T_RRSIG 313
194 #define T_NSEC 314
195 #define T_DNSKEY 315
196 #define T_SPF 316
197 #define T_NSEC3 317
198 #define T_IPSECKEY 318
199 #define T_DHCID 319
200 #define T_NSEC3PARAM 320
201 #define T_TLSA 321
202 #define T_URI 322
203 #define T_NID 323
204 #define T_L32 324
205 #define T_L64 325
206 #define T_LP 326
207 #define T_EUI48 327
208 #define T_EUI64 328
209 #define T_CAA 329
210 #define T_CDS 330
211 #define T_CDNSKEY 331
212 #define T_OPENPGPKEY 332
213 #define T_CSYNC 333
214 #define DOLLAR_TTL 334
215 #define DOLLAR_ORIGIN 335
216 #define NL 336
217 #define SP 337
218 #define STR 338
219 #define PREV 339
220 #define BITLAB 340
221 #define T_TTL 341
222 #define T_RRCLASS 342
223 #define URR 343
224 #define T_UTYPE 344
225 
226 /* Value type.  */
227 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
228 
229 union YYSTYPE
230 {
231 #line 50 "zparser.y" /* yacc.c:1909  */
232 
233 	domain_type	 *domain;
234 	const dname_type *dname;
235 	struct lex_data	  data;
236 	uint32_t	  ttl;
237 	uint16_t	  klass;
238 	uint16_t	  type;
239 	uint16_t	 *unknown;
240 
241 #line 242 "zparser.h" /* yacc.c:1909  */
242 };
243 
244 typedef union YYSTYPE YYSTYPE;
245 # define YYSTYPE_IS_TRIVIAL 1
246 # define YYSTYPE_IS_DECLARED 1
247 #endif
248 
249 
250 extern YYSTYPE yylval;
251 
252 int yyparse (void);
253 
254 #endif /* !YY_YY_ZPARSER_H_INCLUDED  */
255