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