1 |
/* A Bison parser, made by GNU Bison 3.5.1. */ |
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 |
/* Undocumented macros, especially those whose name start with YY_, |
35 |
are private implementation details. Do not rely on them. */ |
36 |
|
37 |
#ifndef YY_YY_CONFIG_PARSER_H_INCLUDED |
38 |
# define YY_YY_CONFIG_PARSER_H_INCLUDED |
39 |
/* Debug traces. */ |
40 |
#ifndef YYDEBUG |
41 |
# define YYDEBUG 0 |
42 |
#endif |
43 |
#if YYDEBUG |
44 |
extern int yydebug; |
45 |
#endif |
46 |
|
47 |
/* Token type. */ |
48 |
#ifndef YYTOKENTYPE |
49 |
# define YYTOKENTYPE |
50 |
enum yytokentype |
51 |
{ |
52 |
ADDRESS_FAMILY = 258, |
53 |
AWAY = 259, |
54 |
BAN_UNKNOWN = 260, |
55 |
BIND = 261, |
56 |
BLACKLIST = 262, |
57 |
BYTES = 263, |
58 |
KBYTES = 264, |
59 |
MBYTES = 265, |
60 |
CHANNEL = 266, |
61 |
COMMAND_INTERVAL = 267, |
62 |
COMMAND_QUEUE_SIZE = 268, |
63 |
COMMAND_TIMEOUT = 269, |
64 |
CONNREGEX = 270, |
65 |
DNS_FDLIMIT = 271, |
66 |
DNS_TIMEOUT = 272, |
67 |
DNSBL_FROM = 273, |
68 |
DNSBL_TO = 274, |
69 |
EXEMPT = 275, |
70 |
FD = 276, |
71 |
INVITE = 277, |
72 |
IPV4 = 278, |
73 |
IPV6 = 279, |
74 |
IRC = 280, |
75 |
KLINE = 281, |
76 |
KEY = 282, |
77 |
MASK = 283, |
78 |
MAX_READ = 284, |
79 |
MODE = 285, |
80 |
NAME = 286, |
81 |
NEGCACHE = 287, |
82 |
NEGCACHE_REBUILD = 288, |
83 |
NICK = 289, |
84 |
NICKSERV = 290, |
85 |
NOTICE = 291, |
86 |
OPER = 292, |
87 |
OPM = 293, |
88 |
OPTIONS = 294, |
89 |
PASSWORD = 295, |
90 |
PERFORM = 296, |
91 |
PIDFILE = 297, |
92 |
PORT = 298, |
93 |
PROTOCOL = 299, |
94 |
RSA_PRIVATE_KEY_FILE = 300, |
95 |
READTIMEOUT = 301, |
96 |
REALNAME = 302, |
97 |
RECONNECTINTERVAL = 303, |
98 |
REPLY = 304, |
99 |
SCANLOG = 305, |
100 |
SCANNER = 306, |
101 |
SECONDS = 307, |
102 |
MINUTES = 308, |
103 |
HOURS = 309, |
104 |
DAYS = 310, |
105 |
WEEKS = 311, |
106 |
MONTHS = 312, |
107 |
YEARS = 313, |
108 |
SENDMAIL = 314, |
109 |
SERVER = 315, |
110 |
TARGET_IP = 316, |
111 |
TARGET_PORT = 317, |
112 |
TARGET_STRING = 318, |
113 |
TIMEOUT = 319, |
114 |
TLS = 320, |
115 |
TLS_CERTIFICATE_FILE = 321, |
116 |
TLS_HOSTNAME_VERIFICATION = 322, |
117 |
TLS_DISABLE_CERTIFICATE_VERIFICATION = 323, |
118 |
TYPE = 324, |
119 |
USERNAME = 325, |
120 |
USER = 326, |
121 |
NUMBER = 327, |
122 |
STRING = 328, |
123 |
PROTOCOLTYPE = 329 |
124 |
}; |
125 |
#endif |
126 |
/* Tokens. */ |
127 |
#define ADDRESS_FAMILY 258 |
128 |
#define AWAY 259 |
129 |
#define BAN_UNKNOWN 260 |
130 |
#define BIND 261 |
131 |
#define BLACKLIST 262 |
132 |
#define BYTES 263 |
133 |
#define KBYTES 264 |
134 |
#define MBYTES 265 |
135 |
#define CHANNEL 266 |
136 |
#define COMMAND_INTERVAL 267 |
137 |
#define COMMAND_QUEUE_SIZE 268 |
138 |
#define COMMAND_TIMEOUT 269 |
139 |
#define CONNREGEX 270 |
140 |
#define DNS_FDLIMIT 271 |
141 |
#define DNS_TIMEOUT 272 |
142 |
#define DNSBL_FROM 273 |
143 |
#define DNSBL_TO 274 |
144 |
#define EXEMPT 275 |
145 |
#define FD 276 |
146 |
#define INVITE 277 |
147 |
#define IPV4 278 |
148 |
#define IPV6 279 |
149 |
#define IRC 280 |
150 |
#define KLINE 281 |
151 |
#define KEY 282 |
152 |
#define MASK 283 |
153 |
#define MAX_READ 284 |
154 |
#define MODE 285 |
155 |
#define NAME 286 |
156 |
#define NEGCACHE 287 |
157 |
#define NEGCACHE_REBUILD 288 |
158 |
#define NICK 289 |
159 |
#define NICKSERV 290 |
160 |
#define NOTICE 291 |
161 |
#define OPER 292 |
162 |
#define OPM 293 |
163 |
#define OPTIONS 294 |
164 |
#define PASSWORD 295 |
165 |
#define PERFORM 296 |
166 |
#define PIDFILE 297 |
167 |
#define PORT 298 |
168 |
#define PROTOCOL 299 |
169 |
#define RSA_PRIVATE_KEY_FILE 300 |
170 |
#define READTIMEOUT 301 |
171 |
#define REALNAME 302 |
172 |
#define RECONNECTINTERVAL 303 |
173 |
#define REPLY 304 |
174 |
#define SCANLOG 305 |
175 |
#define SCANNER 306 |
176 |
#define SECONDS 307 |
177 |
#define MINUTES 308 |
178 |
#define HOURS 309 |
179 |
#define DAYS 310 |
180 |
#define WEEKS 311 |
181 |
#define MONTHS 312 |
182 |
#define YEARS 313 |
183 |
#define SENDMAIL 314 |
184 |
#define SERVER 315 |
185 |
#define TARGET_IP 316 |
186 |
#define TARGET_PORT 317 |
187 |
#define TARGET_STRING 318 |
188 |
#define TIMEOUT 319 |
189 |
#define TLS 320 |
190 |
#define TLS_CERTIFICATE_FILE 321 |
191 |
#define TLS_HOSTNAME_VERIFICATION 322 |
192 |
#define TLS_DISABLE_CERTIFICATE_VERIFICATION 323 |
193 |
#define TYPE 324 |
194 |
#define USERNAME 325 |
195 |
#define USER 326 |
196 |
#define NUMBER 327 |
197 |
#define STRING 328 |
198 |
#define PROTOCOLTYPE 329 |
199 |
|
200 |
/* Value type. */ |
201 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
202 |
union YYSTYPE |
203 |
{ |
204 |
#line 96 "config-parser.y" |
205 |
|
206 |
int number; |
207 |
char *string; |
208 |
|
209 |
#line 210 "config-parser.h" |
210 |
|
211 |
}; |
212 |
typedef union YYSTYPE YYSTYPE; |
213 |
# define YYSTYPE_IS_TRIVIAL 1 |
214 |
# define YYSTYPE_IS_DECLARED 1 |
215 |
#endif |
216 |
|
217 |
|
218 |
extern YYSTYPE yylval; |
219 |
|
220 |
int yyparse (void); |
221 |
|
222 |
#endif /* !YY_YY_CONFIG_PARSER_H_INCLUDED */ |