164 lines
5.1 KiB
C
164 lines
5.1 KiB
C
/* A Bison parser, made by GNU Bison 3.8.2. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 <https://www.gnu.org/licenses/>. */
|
|
|
|
/* 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. */
|
|
|
|
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
|
especially those whose name start with YY_ or yy_. They are
|
|
private implementation details that can be changed or removed. */
|
|
|
|
#ifndef YY_YY_CFG_FILE_TAB_H_INCLUDED
|
|
# define YY_YY_CFG_FILE_TAB_H_INCLUDED
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 0
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token kinds. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
YYEMPTY = -2,
|
|
YYEOF = 0, /* "end of file" */
|
|
YYerror = 256, /* error */
|
|
YYUNDEF = 257, /* "invalid token" */
|
|
K_OPTIONS = 258, /* K_OPTIONS */
|
|
K_DEFAULT = 259, /* K_DEFAULT */
|
|
K_PORT = 260, /* K_PORT */
|
|
K_BINDADDR = 261, /* K_BINDADDR */
|
|
K_PERSIST = 262, /* K_PERSIST */
|
|
K_TIMEOUT = 263, /* K_TIMEOUT */
|
|
K_PASSWD = 264, /* K_PASSWD */
|
|
K_PROG = 265, /* K_PROG */
|
|
K_PPP = 266, /* K_PPP */
|
|
K_SPEED = 267, /* K_SPEED */
|
|
K_IFCFG = 268, /* K_IFCFG */
|
|
K_FWALL = 269, /* K_FWALL */
|
|
K_ROUTE = 270, /* K_ROUTE */
|
|
K_DEVICE = 271, /* K_DEVICE */
|
|
K_MULTI = 272, /* K_MULTI */
|
|
K_SRCADDR = 273, /* K_SRCADDR */
|
|
K_IFACE = 274, /* K_IFACE */
|
|
K_ADDR = 275, /* K_ADDR */
|
|
K_TYPE = 276, /* K_TYPE */
|
|
K_PROT = 277, /* K_PROT */
|
|
K_NAT_HACK = 278, /* K_NAT_HACK */
|
|
K_COMPRESS = 279, /* K_COMPRESS */
|
|
K_ENCRYPT = 280, /* K_ENCRYPT */
|
|
K_KALIVE = 281, /* K_KALIVE */
|
|
K_STAT = 282, /* K_STAT */
|
|
K_UP = 283, /* K_UP */
|
|
K_DOWN = 284, /* K_DOWN */
|
|
K_SYSLOG = 285, /* K_SYSLOG */
|
|
K_IPROUTE = 286, /* K_IPROUTE */
|
|
K_HOST = 287, /* K_HOST */
|
|
K_ERROR = 288, /* K_ERROR */
|
|
WORD = 289, /* WORD */
|
|
PATH = 290, /* PATH */
|
|
STRING = 291, /* STRING */
|
|
NUM = 292, /* NUM */
|
|
DNUM = 293 /* DNUM */
|
|
};
|
|
typedef enum yytokentype yytoken_kind_t;
|
|
#endif
|
|
/* Token kinds. */
|
|
#define YYEMPTY -2
|
|
#define YYEOF 0
|
|
#define YYerror 256
|
|
#define YYUNDEF 257
|
|
#define K_OPTIONS 258
|
|
#define K_DEFAULT 259
|
|
#define K_PORT 260
|
|
#define K_BINDADDR 261
|
|
#define K_PERSIST 262
|
|
#define K_TIMEOUT 263
|
|
#define K_PASSWD 264
|
|
#define K_PROG 265
|
|
#define K_PPP 266
|
|
#define K_SPEED 267
|
|
#define K_IFCFG 268
|
|
#define K_FWALL 269
|
|
#define K_ROUTE 270
|
|
#define K_DEVICE 271
|
|
#define K_MULTI 272
|
|
#define K_SRCADDR 273
|
|
#define K_IFACE 274
|
|
#define K_ADDR 275
|
|
#define K_TYPE 276
|
|
#define K_PROT 277
|
|
#define K_NAT_HACK 278
|
|
#define K_COMPRESS 279
|
|
#define K_ENCRYPT 280
|
|
#define K_KALIVE 281
|
|
#define K_STAT 282
|
|
#define K_UP 283
|
|
#define K_DOWN 284
|
|
#define K_SYSLOG 285
|
|
#define K_IPROUTE 286
|
|
#define K_HOST 287
|
|
#define K_ERROR 288
|
|
#define WORD 289
|
|
#define PATH 290
|
|
#define STRING 291
|
|
#define NUM 292
|
|
#define DNUM 293
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
union YYSTYPE
|
|
{
|
|
#line 68 "cfg_file.y"
|
|
|
|
char *str;
|
|
int num;
|
|
struct { int num1; int num2; } dnum;
|
|
|
|
#line 149 "cfg_file.tab.h"
|
|
|
|
};
|
|
typedef union YYSTYPE YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
|
|
int yyparse (void);
|
|
|
|
|
|
#endif /* !YY_YY_CFG_FILE_TAB_H_INCLUDED */
|