| 1 |
/* A Bison parser, made by GNU Bison 3.7.6. */ |
| 2 |
|
| 3 |
/* Bison interface for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 <https://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_PARSER_TAB_H_INCLUDED |
| 39 |
# define YY_YY_PARSER_TAB_H_INCLUDED |
| 40 |
/* Debug traces. */ |
| 41 |
#ifndef YYDEBUG |
| 42 |
# define YYDEBUG 1 |
| 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_HELPTEXT = 258, /* T_HELPTEXT */ |
| 58 |
T_WORD = 259, /* T_WORD */ |
| 59 |
T_WORD_QUOTE = 260, /* T_WORD_QUOTE */ |
| 60 |
T_BOOL = 261, /* T_BOOL */ |
| 61 |
T_CHOICE = 262, /* T_CHOICE */ |
| 62 |
T_CLOSE_PAREN = 263, /* T_CLOSE_PAREN */ |
| 63 |
T_COLON_EQUAL = 264, /* T_COLON_EQUAL */ |
| 64 |
T_COMMENT = 265, /* T_COMMENT */ |
| 65 |
T_CONFIG = 266, /* T_CONFIG */ |
| 66 |
T_DEFAULT = 267, /* T_DEFAULT */ |
| 67 |
T_DEF_BOOL = 268, /* T_DEF_BOOL */ |
| 68 |
T_DEF_TRISTATE = 269, /* T_DEF_TRISTATE */ |
| 69 |
T_DEPENDS = 270, /* T_DEPENDS */ |
| 70 |
T_ENDCHOICE = 271, /* T_ENDCHOICE */ |
| 71 |
T_ENDIF = 272, /* T_ENDIF */ |
| 72 |
T_ENDMENU = 273, /* T_ENDMENU */ |
| 73 |
T_HELP = 274, /* T_HELP */ |
| 74 |
T_HEX = 275, /* T_HEX */ |
| 75 |
T_IF = 276, /* T_IF */ |
| 76 |
T_IMPLY = 277, /* T_IMPLY */ |
| 77 |
T_INT = 278, /* T_INT */ |
| 78 |
T_MAINMENU = 279, /* T_MAINMENU */ |
| 79 |
T_MENU = 280, /* T_MENU */ |
| 80 |
T_MENUCONFIG = 281, /* T_MENUCONFIG */ |
| 81 |
T_MODULES = 282, /* T_MODULES */ |
| 82 |
T_ON = 283, /* T_ON */ |
| 83 |
T_OPEN_PAREN = 284, /* T_OPEN_PAREN */ |
| 84 |
T_OPTIONAL = 285, /* T_OPTIONAL */ |
| 85 |
T_PLUS_EQUAL = 286, /* T_PLUS_EQUAL */ |
| 86 |
T_PROMPT = 287, /* T_PROMPT */ |
| 87 |
T_RANGE = 288, /* T_RANGE */ |
| 88 |
T_SELECT = 289, /* T_SELECT */ |
| 89 |
T_SOURCE = 290, /* T_SOURCE */ |
| 90 |
T_STRING = 291, /* T_STRING */ |
| 91 |
T_TRISTATE = 292, /* T_TRISTATE */ |
| 92 |
T_VISIBLE = 293, /* T_VISIBLE */ |
| 93 |
T_EOL = 294, /* T_EOL */ |
| 94 |
T_ASSIGN_VAL = 295, /* T_ASSIGN_VAL */ |
| 95 |
T_OR = 296, /* T_OR */ |
| 96 |
T_AND = 297, /* T_AND */ |
| 97 |
T_EQUAL = 298, /* T_EQUAL */ |
| 98 |
T_UNEQUAL = 299, /* T_UNEQUAL */ |
| 99 |
T_LESS = 300, /* T_LESS */ |
| 100 |
T_LESS_EQUAL = 301, /* T_LESS_EQUAL */ |
| 101 |
T_GREATER = 302, /* T_GREATER */ |
| 102 |
T_GREATER_EQUAL = 303, /* T_GREATER_EQUAL */ |
| 103 |
T_NOT = 304 /* T_NOT */ |
| 104 |
}; |
| 105 |
typedef enum yytokentype yytoken_kind_t; |
| 106 |
#endif |
| 107 |
|
| 108 |
/* Value type. */ |
| 109 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 110 |
union YYSTYPE |
| 111 |
{ |
| 112 |
|
| 113 |
char *string; |
| 114 |
struct symbol *symbol; |
| 115 |
struct expr *expr; |
| 116 |
struct menu *menu; |
| 117 |
enum symbol_type type; |
| 118 |
enum variable_flavor flavor; |
| 119 |
|
| 120 |
|
| 121 |
}; |
| 122 |
typedef union YYSTYPE YYSTYPE; |
| 123 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 124 |
# define YYSTYPE_IS_DECLARED 1 |
| 125 |
#endif |
| 126 |
|
| 127 |
|
| 128 |
extern YYSTYPE yylval; |
| 129 |
|
| 130 |
int yyparse (void); |
| 131 |
|
| 132 |
#endif /* !YY_YY_PARSER_TAB_H_INCLUDED */ |