"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.6/zparser.h" (6 Apr 2021, 8937 Bytes) of package /linux/misc/dns/nsd-4.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "zparser.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 4.3.5_vs_4.3.6.

    1 /* A Bison parser, made by GNU Bison 3.6.4.  */
    2 
    3 /* Bison interface for Yacc-like parsers in C
    4 
    5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
    6    Inc.
    7 
    8    This program is free software: you can redistribute it and/or modify
    9    it under the terms of the GNU General Public License as published by
   10    the Free Software Foundation, either version 3 of the License, or
   11    (at your option) any later version.
   12 
   13    This program is distributed in the hope that it will be useful,
   14    but WITHOUT ANY WARRANTY; without even the implied warranty of
   15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16    GNU General Public License for more details.
   17 
   18    You should have received a copy of the GNU General Public License
   19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   20 
   21 /* As a special exception, you may create a larger work that contains
   22    part or all of the Bison parser skeleton and distribute that work
   23    under terms of your choice, so long as that work isn't itself a
   24    parser generator using the skeleton or a modified version thereof
   25    as a parser skeleton.  Alternatively, if you modify or redistribute
   26    the parser skeleton itself, you may (at your option) remove this
   27    special exception, which will cause the skeleton and the resulting
   28    Bison output files to be licensed under the GNU General Public
   29    License without this special exception.
   30 
   31    This special exception was added by the Free Software Foundation in
   32    version 2.2 of Bison.  */
   33 
   34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   35    especially those whose name start with YY_ or yy_.  They are
   36    private implementation details that can be changed or removed.  */
   37 
   38 #ifndef YY_YY_ZPARSER_H_INCLUDED
   39 # define YY_YY_ZPARSER_H_INCLUDED
   40 /* Debug traces.  */
   41 #ifndef YYDEBUG
   42 # define YYDEBUG 0
   43 #endif
   44 #if YYDEBUG
   45 extern int yydebug;
   46 #endif
   47 
   48 /* Token kinds.  */
   49 #ifndef YYTOKENTYPE
   50 # define YYTOKENTYPE
   51   enum yytokentype
   52   {
   53     YYEMPTY = -2,
   54     YYEOF = 0,                     /* "end of file"  */
   55     YYerror = 256,                 /* error  */
   56     YYUNDEF = 257,                 /* "invalid token"  */
   57     T_A = 258,                     /* T_A  */
   58     T_NS = 259,                    /* T_NS  */
   59     T_MX = 260,                    /* T_MX  */
   60     T_TXT = 261,                   /* T_TXT  */
   61     T_CNAME = 262,                 /* T_CNAME  */
   62     T_AAAA = 263,                  /* T_AAAA  */
   63     T_PTR = 264,                   /* T_PTR  */
   64     T_NXT = 265,                   /* T_NXT  */
   65     T_KEY = 266,                   /* T_KEY  */
   66     T_SOA = 267,                   /* T_SOA  */
   67     T_SIG = 268,                   /* T_SIG  */
   68     T_SRV = 269,                   /* T_SRV  */
   69     T_CERT = 270,                  /* T_CERT  */
   70     T_LOC = 271,                   /* T_LOC  */
   71     T_MD = 272,                    /* T_MD  */
   72     T_MF = 273,                    /* T_MF  */
   73     T_MB = 274,                    /* T_MB  */
   74     T_MG = 275,                    /* T_MG  */
   75     T_MR = 276,                    /* T_MR  */
   76     T_NULL = 277,                  /* T_NULL  */
   77     T_WKS = 278,                   /* T_WKS  */
   78     T_HINFO = 279,                 /* T_HINFO  */
   79     T_MINFO = 280,                 /* T_MINFO  */
   80     T_RP = 281,                    /* T_RP  */
   81     T_AFSDB = 282,                 /* T_AFSDB  */
   82     T_X25 = 283,                   /* T_X25  */
   83     T_ISDN = 284,                  /* T_ISDN  */
   84     T_RT = 285,                    /* T_RT  */
   85     T_NSAP = 286,                  /* T_NSAP  */
   86     T_NSAP_PTR = 287,              /* T_NSAP_PTR  */
   87     T_PX = 288,                    /* T_PX  */
   88     T_GPOS = 289,                  /* T_GPOS  */
   89     T_EID = 290,                   /* T_EID  */
   90     T_NIMLOC = 291,                /* T_NIMLOC  */
   91     T_ATMA = 292,                  /* T_ATMA  */
   92     T_NAPTR = 293,                 /* T_NAPTR  */
   93     T_KX = 294,                    /* T_KX  */
   94     T_A6 = 295,                    /* T_A6  */
   95     T_DNAME = 296,                 /* T_DNAME  */
   96     T_SINK = 297,                  /* T_SINK  */
   97     T_OPT = 298,                   /* T_OPT  */
   98     T_APL = 299,                   /* T_APL  */
   99     T_UINFO = 300,                 /* T_UINFO  */
  100     T_UID = 301,                   /* T_UID  */
  101     T_GID = 302,                   /* T_GID  */
  102     T_UNSPEC = 303,                /* T_UNSPEC  */
  103     T_TKEY = 304,                  /* T_TKEY  */
  104     T_TSIG = 305,                  /* T_TSIG  */
  105     T_IXFR = 306,                  /* T_IXFR  */
  106     T_AXFR = 307,                  /* T_AXFR  */
  107     T_MAILB = 308,                 /* T_MAILB  */
  108     T_MAILA = 309,                 /* T_MAILA  */
  109     T_DS = 310,                    /* T_DS  */
  110     T_DLV = 311,                   /* T_DLV  */
  111     T_SSHFP = 312,                 /* T_SSHFP  */
  112     T_RRSIG = 313,                 /* T_RRSIG  */
  113     T_NSEC = 314,                  /* T_NSEC  */
  114     T_DNSKEY = 315,                /* T_DNSKEY  */
  115     T_SPF = 316,                   /* T_SPF  */
  116     T_NSEC3 = 317,                 /* T_NSEC3  */
  117     T_IPSECKEY = 318,              /* T_IPSECKEY  */
  118     T_DHCID = 319,                 /* T_DHCID  */
  119     T_NSEC3PARAM = 320,            /* T_NSEC3PARAM  */
  120     T_TLSA = 321,                  /* T_TLSA  */
  121     T_URI = 322,                   /* T_URI  */
  122     T_NID = 323,                   /* T_NID  */
  123     T_L32 = 324,                   /* T_L32  */
  124     T_L64 = 325,                   /* T_L64  */
  125     T_LP = 326,                    /* T_LP  */
  126     T_EUI48 = 327,                 /* T_EUI48  */
  127     T_EUI64 = 328,                 /* T_EUI64  */
  128     T_CAA = 329,                   /* T_CAA  */
  129     T_CDS = 330,                   /* T_CDS  */
  130     T_CDNSKEY = 331,               /* T_CDNSKEY  */
  131     T_OPENPGPKEY = 332,            /* T_OPENPGPKEY  */
  132     T_CSYNC = 333,                 /* T_CSYNC  */
  133     T_ZONEMD = 334,                /* T_ZONEMD  */
  134     T_AVC = 335,                   /* T_AVC  */
  135     T_SMIMEA = 336,                /* T_SMIMEA  */
  136     DOLLAR_TTL = 337,              /* DOLLAR_TTL  */
  137     DOLLAR_ORIGIN = 338,           /* DOLLAR_ORIGIN  */
  138     NL = 339,                      /* NL  */
  139     SP = 340,                      /* SP  */
  140     QSTR = 341,                    /* QSTR  */
  141     STR = 342,                     /* STR  */
  142     PREV = 343,                    /* PREV  */
  143     BITLAB = 344,                  /* BITLAB  */
  144     T_TTL = 345,                   /* T_TTL  */
  145     T_RRCLASS = 346,               /* T_RRCLASS  */
  146     URR = 347,                     /* URR  */
  147     T_UTYPE = 348                  /* T_UTYPE  */
  148   };
  149   typedef enum yytokentype yytoken_kind_t;
  150 #endif
  151 /* Token kinds.  */
  152 #define YYEOF 0
  153 #define YYerror 256
  154 #define YYUNDEF 257
  155 #define T_A 258
  156 #define T_NS 259
  157 #define T_MX 260
  158 #define T_TXT 261
  159 #define T_CNAME 262
  160 #define T_AAAA 263
  161 #define T_PTR 264
  162 #define T_NXT 265
  163 #define T_KEY 266
  164 #define T_SOA 267
  165 #define T_SIG 268
  166 #define T_SRV 269
  167 #define T_CERT 270
  168 #define T_LOC 271
  169 #define T_MD 272
  170 #define T_MF 273
  171 #define T_MB 274
  172 #define T_MG 275
  173 #define T_MR 276
  174 #define T_NULL 277
  175 #define T_WKS 278
  176 #define T_HINFO 279
  177 #define T_MINFO 280
  178 #define T_RP 281
  179 #define T_AFSDB 282
  180 #define T_X25 283
  181 #define T_ISDN 284
  182 #define T_RT 285
  183 #define T_NSAP 286
  184 #define T_NSAP_PTR 287
  185 #define T_PX 288
  186 #define T_GPOS 289
  187 #define T_EID 290
  188 #define T_NIMLOC 291
  189 #define T_ATMA 292
  190 #define T_NAPTR 293
  191 #define T_KX 294
  192 #define T_A6 295
  193 #define T_DNAME 296
  194 #define T_SINK 297
  195 #define T_OPT 298
  196 #define T_APL 299
  197 #define T_UINFO 300
  198 #define T_UID 301
  199 #define T_GID 302
  200 #define T_UNSPEC 303
  201 #define T_TKEY 304
  202 #define T_TSIG 305
  203 #define T_IXFR 306
  204 #define T_AXFR 307
  205 #define T_MAILB 308
  206 #define T_MAILA 309
  207 #define T_DS 310
  208 #define T_DLV 311
  209 #define T_SSHFP 312
  210 #define T_RRSIG 313
  211 #define T_NSEC 314
  212 #define T_DNSKEY 315
  213 #define T_SPF 316
  214 #define T_NSEC3 317
  215 #define T_IPSECKEY 318
  216 #define T_DHCID 319
  217 #define T_NSEC3PARAM 320
  218 #define T_TLSA 321
  219 #define T_URI 322
  220 #define T_NID 323
  221 #define T_L32 324
  222 #define T_L64 325
  223 #define T_LP 326
  224 #define T_EUI48 327
  225 #define T_EUI64 328
  226 #define T_CAA 329
  227 #define T_CDS 330
  228 #define T_CDNSKEY 331
  229 #define T_OPENPGPKEY 332
  230 #define T_CSYNC 333
  231 #define T_ZONEMD 334
  232 #define T_AVC 335
  233 #define T_SMIMEA 336
  234 #define DOLLAR_TTL 337
  235 #define DOLLAR_ORIGIN 338
  236 #define NL 339
  237 #define SP 340
  238 #define QSTR 341
  239 #define STR 342
  240 #define PREV 343
  241 #define BITLAB 344
  242 #define T_TTL 345
  243 #define T_RRCLASS 346
  244 #define URR 347
  245 #define T_UTYPE 348
  246 
  247 /* Value type.  */
  248 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  249 union YYSTYPE
  250 {
  251 #line 50 "zparser.y"
  252 
  253     domain_type  *domain;
  254     const dname_type *dname;
  255     struct lex_data   data;
  256     uint32_t      ttl;
  257     uint16_t      klass;
  258     uint16_t      type;
  259     uint16_t     *unknown;
  260 
  261 #line 262 "zparser.h"
  262 
  263 };
  264 typedef union YYSTYPE YYSTYPE;
  265 # define YYSTYPE_IS_TRIVIAL 1
  266 # define YYSTYPE_IS_DECLARED 1
  267 #endif
  268 
  269 
  270 extern YYSTYPE yylval;
  271 
  272 int yyparse (void);
  273 
  274 #endif /* !YY_YY_ZPARSER_H_INCLUDED  */