2
/* A Bison parser, made by GNU Bison 2.4.1. */
4
/* Skeleton interface for Bison's Yacc-like parsers in C
6
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7
Free Software Foundation, Inc.
9
This program is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
/* As a special exception, you may create a larger work that contains
23
part or all of the Bison parser skeleton and distribute that work
24
under terms of your choice, so long as that work isn't itself a
25
parser generator using the skeleton or a modified version thereof
26
as a parser skeleton. Alternatively, if you modify or redistribute
27
the parser skeleton itself, you may (at your option) remove this
28
special exception, which will cause the skeleton and the resulting
29
Bison output files to be licensed under the GNU General Public
30
License without this special exception.
32
This special exception was added by the Free Software Foundation in
33
version 2.2 of Bison. */
39
/* Put the tokens into the symbol table, so that GDB and other debuggers
43
LL_CONTEXT_DESTINATION = 2,
44
LL_CONTEXT_SOURCE = 3,
45
LL_CONTEXT_PARSER = 4,
46
LL_CONTEXT_REWRITE = 5,
47
LL_CONTEXT_FILTER = 6,
49
LL_CONTEXT_BLOCK_DEF = 8,
50
LL_CONTEXT_BLOCK_REF = 9,
51
LL_CONTEXT_BLOCK_CONTENT = 10,
52
LL_CONTEXT_PRAGMA = 11,
53
LL_CONTEXT_FORMAT = 12,
54
LL_CONTEXT_TEMPLATE_FUNC = 13,
58
KW_DESTINATION = 10003,
75
KW_SESSION_STATEMENTS = 10040,
76
KW_DELIMITERS = 10050,
78
KW_QUOTE_PAIRS = 10052,
82
KW_STATS_FREQ = 10072,
83
KW_STATS_LEVEL = 10073,
84
KW_FLUSH_LINES = 10074,
86
KW_FLUSH_TIMEOUT = 10076,
87
KW_LOG_MSG_SIZE = 10077,
88
KW_FILE_TEMPLATE = 10078,
89
KW_PROTO_TEMPLATE = 10079,
90
KW_CHAIN_HOSTNAMES = 10090,
91
KW_NORMALIZE_HOSTNAMES = 10091,
92
KW_KEEP_HOSTNAME = 10092,
93
KW_CHECK_HOSTNAME = 10093,
94
KW_BAD_HOSTNAME = 10094,
95
KW_KEEP_TIMESTAMP = 10100,
99
KW_DNS_CACHE_SIZE = 10121,
100
KW_DNS_CACHE_EXPIRE = 10130,
101
KW_DNS_CACHE_EXPIRE_FAILED = 10131,
102
KW_DNS_CACHE_HOSTS = 10132,
103
KW_PERSIST_ONLY = 10140,
104
KW_TZ_CONVERT = 10150,
105
KW_TS_FORMAT = 10151,
106
KW_FRAC_DIGITS = 10152,
107
KW_LOG_FIFO_SIZE = 10160,
108
KW_LOG_FETCH_LIMIT = 10162,
109
KW_LOG_IW_SIZE = 10163,
110
KW_LOG_PREFIX = 10164,
111
KW_PROGRAM_OVERRIDE = 10165,
112
KW_HOST_OVERRIDE = 10166,
116
KW_TIME_ZONE = 10201,
117
KW_RECV_TIME_ZONE = 10202,
118
KW_SEND_TIME_ZONE = 10203,
119
KW_LOCAL_TIME_ZONE = 10204,
121
KW_TIME_REOPEN = 10210,
122
KW_TIME_REAP = 10211,
123
KW_TIME_SLEEP = 10212,
124
KW_TMPL_ESCAPE = 10220,
126
KW_CREATE_DIRS = 10240,
130
KW_DIR_OWNER = 10260,
131
KW_DIR_GROUP = 10261,
134
KW_TEMPLATE_ESCAPE = 10271,
135
KW_DEFAULT_FACILITY = 10300,
136
KW_DEFAULT_LEVEL = 10301,
138
KW_USE_TIME_RECVD = 10340,
155
LL_IDENTIFIER = 10421,
168
#define LL_CONTEXT_ROOT 1
169
#define LL_CONTEXT_DESTINATION 2
170
#define LL_CONTEXT_SOURCE 3
171
#define LL_CONTEXT_PARSER 4
172
#define LL_CONTEXT_REWRITE 5
173
#define LL_CONTEXT_FILTER 6
174
#define LL_CONTEXT_LOG 7
175
#define LL_CONTEXT_BLOCK_DEF 8
176
#define LL_CONTEXT_BLOCK_REF 9
177
#define LL_CONTEXT_BLOCK_CONTENT 10
178
#define LL_CONTEXT_PRAGMA 11
179
#define LL_CONTEXT_FORMAT 12
180
#define LL_CONTEXT_TEMPLATE_FUNC 13
181
#define KW_SOURCE 10000
182
#define KW_FILTER 10001
183
#define KW_PARSER 10002
184
#define KW_DESTINATION 10003
186
#define KW_OPTIONS 10005
187
#define KW_INCLUDE 10006
188
#define KW_BLOCK 10007
189
#define KW_INTERNAL 10010
190
#define KW_FILE 10011
192
#define KW_TYPE 10031
193
#define KW_COLUMNS 10032
194
#define KW_INDEXES 10033
195
#define KW_VALUES 10034
196
#define KW_PASSWORD 10035
197
#define KW_DATABASE 10036
198
#define KW_USERNAME 10037
199
#define KW_TABLE 10038
200
#define KW_ENCODING 10039
201
#define KW_SESSION_STATEMENTS 10040
202
#define KW_DELIMITERS 10050
203
#define KW_QUOTES 10051
204
#define KW_QUOTE_PAIRS 10052
205
#define KW_NULL 10053
206
#define KW_SYSLOG 10060
207
#define KW_MARK_FREQ 10071
208
#define KW_STATS_FREQ 10072
209
#define KW_STATS_LEVEL 10073
210
#define KW_FLUSH_LINES 10074
211
#define KW_SUPPRESS 10075
212
#define KW_FLUSH_TIMEOUT 10076
213
#define KW_LOG_MSG_SIZE 10077
214
#define KW_FILE_TEMPLATE 10078
215
#define KW_PROTO_TEMPLATE 10079
216
#define KW_CHAIN_HOSTNAMES 10090
217
#define KW_NORMALIZE_HOSTNAMES 10091
218
#define KW_KEEP_HOSTNAME 10092
219
#define KW_CHECK_HOSTNAME 10093
220
#define KW_BAD_HOSTNAME 10094
221
#define KW_KEEP_TIMESTAMP 10100
222
#define KW_USE_DNS 10110
223
#define KW_USE_FQDN 10111
224
#define KW_DNS_CACHE 10120
225
#define KW_DNS_CACHE_SIZE 10121
226
#define KW_DNS_CACHE_EXPIRE 10130
227
#define KW_DNS_CACHE_EXPIRE_FAILED 10131
228
#define KW_DNS_CACHE_HOSTS 10132
229
#define KW_PERSIST_ONLY 10140
230
#define KW_TZ_CONVERT 10150
231
#define KW_TS_FORMAT 10151
232
#define KW_FRAC_DIGITS 10152
233
#define KW_LOG_FIFO_SIZE 10160
234
#define KW_LOG_FETCH_LIMIT 10162
235
#define KW_LOG_IW_SIZE 10163
236
#define KW_LOG_PREFIX 10164
237
#define KW_PROGRAM_OVERRIDE 10165
238
#define KW_HOST_OVERRIDE 10166
239
#define KW_THROTTLE 10170
240
#define KW_FLAGS 10190
241
#define KW_PAD_SIZE 10200
242
#define KW_TIME_ZONE 10201
243
#define KW_RECV_TIME_ZONE 10202
244
#define KW_SEND_TIME_ZONE 10203
245
#define KW_LOCAL_TIME_ZONE 10204
246
#define KW_FORMAT 10205
247
#define KW_TIME_REOPEN 10210
248
#define KW_TIME_REAP 10211
249
#define KW_TIME_SLEEP 10212
250
#define KW_TMPL_ESCAPE 10220
251
#define KW_OPTIONAL 10230
252
#define KW_CREATE_DIRS 10240
253
#define KW_OWNER 10250
254
#define KW_GROUP 10251
255
#define KW_PERM 10252
256
#define KW_DIR_OWNER 10260
257
#define KW_DIR_GROUP 10261
258
#define KW_DIR_PERM 10262
259
#define KW_TEMPLATE 10270
260
#define KW_TEMPLATE_ESCAPE 10271
261
#define KW_DEFAULT_FACILITY 10300
262
#define KW_DEFAULT_LEVEL 10301
263
#define KW_PORT 10323
264
#define KW_USE_TIME_RECVD 10340
265
#define KW_FACILITY 10350
266
#define KW_LEVEL 10351
267
#define KW_HOST 10352
268
#define KW_MATCH 10353
269
#define KW_MESSAGE 10354
270
#define KW_NETMASK 10355
271
#define KW_TAGS 10356
272
#define KW_VALUE 10361
273
#define KW_REWRITE 10370
275
#define KW_SUBST 10372
278
#define KW_IFDEF 10410
279
#define KW_ENDIF 10411
280
#define LL_DOTDOT 10420
281
#define LL_IDENTIFIER 10421
282
#define LL_NUMBER 10422
283
#define LL_FLOAT 10423
284
#define LL_STRING 10424
285
#define LL_TOKEN 10425
286
#define LL_BLOCK 10426
287
#define LL_PRAGMA 10427
289
#define LL_ERROR 10429
290
#define KW_DB_PARSER 10431
295
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
297
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
298
# define YYSTYPE_IS_DECLARED 1
303
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
304
typedef struct YYLTYPE
311
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
312
# define YYLTYPE_IS_DECLARED 1
313
# define YYLTYPE_IS_TRIVIAL 1