From 5140318f8f758141b4e350871db1fe869eb858dc Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 7 Apr 2019 00:14:13 -0400 Subject: Import Upstream version 1.1.5 --- src/config-parser.h | 209 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 src/config-parser.h (limited to 'src/config-parser.h') diff --git a/src/config-parser.h b/src/config-parser.h new file mode 100644 index 0000000..8a02091 --- /dev/null +++ b/src/config-parser.h @@ -0,0 +1,209 @@ +/* A Bison parser, made by GNU Bison 3.0.4. */ + +/* Bison interface for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +#ifndef YY_YY_CONFIG_PARSER_H_INCLUDED +# define YY_YY_CONFIG_PARSER_H_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif +#if YYDEBUG +extern int yydebug; +#endif + +/* Token type. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + enum yytokentype + { + ADDRESS_FAMILY = 258, + AWAY = 259, + BAN_UNKNOWN = 260, + BLACKLIST = 261, + BYTES = 262, + KBYTES = 263, + MBYTES = 264, + CHANNEL = 265, + COMMAND_INTERVAL = 266, + COMMAND_QUEUE_SIZE = 267, + COMMAND_TIMEOUT = 268, + CONNREGEX = 269, + DNS_FDLIMIT = 270, + DNS_TIMEOUT = 271, + DNSBL_FROM = 272, + DNSBL_TO = 273, + EXEMPT = 274, + FD = 275, + INVITE = 276, + IPV4 = 277, + IPV6 = 278, + IRC = 279, + KLINE = 280, + KEY = 281, + MASK = 282, + MAX_READ = 283, + MODE = 284, + NAME = 285, + NEGCACHE = 286, + NEGCACHE_REBUILD = 287, + NICK = 288, + NICKSERV = 289, + NOTICE = 290, + OPER = 291, + OPM = 292, + OPTIONS = 293, + PASSWORD = 294, + PERFORM = 295, + PIDFILE = 296, + PORT = 297, + PROTOCOL = 298, + READTIMEOUT = 299, + REALNAME = 300, + RECONNECTINTERVAL = 301, + REPLY = 302, + SCANLOG = 303, + SCANNER = 304, + SECONDS = 305, + MINUTES = 306, + HOURS = 307, + DAYS = 308, + WEEKS = 309, + MONTHS = 310, + YEARS = 311, + SENDMAIL = 312, + SERVER = 313, + TARGET_IP = 314, + TARGET_PORT = 315, + TARGET_STRING = 316, + TIMEOUT = 317, + TYPE = 318, + USERNAME = 319, + USER = 320, + VHOST = 321, + NUMBER = 322, + STRING = 323, + PROTOCOLTYPE = 324 + }; +#endif +/* Tokens. */ +#define ADDRESS_FAMILY 258 +#define AWAY 259 +#define BAN_UNKNOWN 260 +#define BLACKLIST 261 +#define BYTES 262 +#define KBYTES 263 +#define MBYTES 264 +#define CHANNEL 265 +#define COMMAND_INTERVAL 266 +#define COMMAND_QUEUE_SIZE 267 +#define COMMAND_TIMEOUT 268 +#define CONNREGEX 269 +#define DNS_FDLIMIT 270 +#define DNS_TIMEOUT 271 +#define DNSBL_FROM 272 +#define DNSBL_TO 273 +#define EXEMPT 274 +#define FD 275 +#define INVITE 276 +#define IPV4 277 +#define IPV6 278 +#define IRC 279 +#define KLINE 280 +#define KEY 281 +#define MASK 282 +#define MAX_READ 283 +#define MODE 284 +#define NAME 285 +#define NEGCACHE 286 +#define NEGCACHE_REBUILD 287 +#define NICK 288 +#define NICKSERV 289 +#define NOTICE 290 +#define OPER 291 +#define OPM 292 +#define OPTIONS 293 +#define PASSWORD 294 +#define PERFORM 295 +#define PIDFILE 296 +#define PORT 297 +#define PROTOCOL 298 +#define READTIMEOUT 299 +#define REALNAME 300 +#define RECONNECTINTERVAL 301 +#define REPLY 302 +#define SCANLOG 303 +#define SCANNER 304 +#define SECONDS 305 +#define MINUTES 306 +#define HOURS 307 +#define DAYS 308 +#define WEEKS 309 +#define MONTHS 310 +#define YEARS 311 +#define SENDMAIL 312 +#define SERVER 313 +#define TARGET_IP 314 +#define TARGET_PORT 315 +#define TARGET_STRING 316 +#define TIMEOUT 317 +#define TYPE 318 +#define USERNAME 319 +#define USER 320 +#define VHOST 321 +#define NUMBER 322 +#define STRING 323 +#define PROTOCOLTYPE 324 + +/* Value type. */ +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED + +union YYSTYPE +{ +#line 91 "config-parser.y" /* yacc.c:1909 */ + + int number; + char *string; + +#line 197 "config-parser.h" /* yacc.c:1909 */ +}; + +typedef union YYSTYPE YYSTYPE; +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 +#endif + + +extern YYSTYPE yylval; + +int yyparse (void); + +#endif /* !YY_YY_CONFIG_PARSER_H_INCLUDED */ -- cgit v1.2.3