lxrgmr
[build-config.git] / src / config / lxrgmr-code / gmr / parser.tab.h
blob8e1fd78a7d50f3ed5ea35356074e00ada1b11ce5
1 /* A Bison parser, made by GNU Bison 3.4.2. */
3 /* Bison interface for Yacc-like parsers in C
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
6 Inc.
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.
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.
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/>. */
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.
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
34 /* Undocumented macros, especially those whose name start with YY_,
35 are private implementation details. Do not rely on them. */
37 #ifndef YY_YY_SCRIPTS_KCONFIG_PARSER_TAB_H_INCLUDED
38 # define YY_YY_SCRIPTS_KCONFIG_PARSER_TAB_H_INCLUDED
39 /* Debug traces. */
40 #ifndef YYDEBUG
41 # define YYDEBUG 1
42 #endif
43 #if YYDEBUG
44 extern int yydebug;
45 #endif
47 #include "lxrgmr/preprocess.h"
48 //#include "expr.h"
49 #include "../token_id.h"
50 #include "src/symbol.h"
53 * this struct copied from expr.h for temp.
55 struct file {
56 struct file *next;
57 struct file *parent;
58 const char *name;
59 int lineno;
62 #define kconf_id token_id
64 /* Value type. */
65 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
66 union YYSTYPE
69 char *string;
70 struct file *file;
71 struct symbol *symbol;
72 struct expr *expr;
73 struct menu *menu;
74 enum symbol_type type;
75 enum variable_flavor flavor;
76 const struct kconf_id *id;
79 typedef union YYSTYPE YYSTYPE;
80 # define YYSTYPE_IS_TRIVIAL 1
81 # define YYSTYPE_IS_DECLARED 1
82 #endif
84 #if 0
86 /* Token type. */
87 #ifndef YYTOKENTYPE
88 # define YYTOKENTYPE
89 enum yytokentype
91 T_HELPTEXT = 258,
92 T_WORD = 259,
93 T_WORD_QUOTE = 260,
94 T_ALLNOCONFIG_Y = 261,
95 T_BOOL = 262,
96 T_CHOICE = 263,
97 T_CLOSE_PAREN = 264,
98 T_COLON_EQUAL = 265,
99 T_COMMENT = 266,
100 T_CONFIG = 267,
101 T_DEFAULT = 268,
102 T_DEFCONFIG_LIST = 269,
103 T_DEF_BOOL = 270,
104 T_DEF_TRISTATE = 271,
105 T_DEPENDS = 272,
106 T_ENDCHOICE = 273,
107 T_ENDIF = 274,
108 T_ENDMENU = 275,
109 T_HELP = 276,
110 T_HEX = 277,
111 T_IF = 278,
112 T_IMPLY = 279,
113 T_INT = 280,
114 T_MAINMENU = 281,
115 T_MENU = 282,
116 T_MENUCONFIG = 283,
117 T_MODULES = 284,
118 T_ON = 285,
119 T_OPEN_PAREN = 286,
120 T_OPTION = 287,
121 T_OPTIONAL = 288,
122 T_PLUS_EQUAL = 289,
123 T_PROMPT = 290,
124 T_RANGE = 291,
125 T_SELECT = 292,
126 T_SOURCE = 293,
127 T_STRING = 294,
128 T_TRISTATE = 295,
129 T_VISIBLE = 296,
130 T_EOL = 297,
131 T_ASSIGN_VAL = 298,
132 T_OR = 299,
133 T_AND = 300,
134 T_EQUAL = 301,
135 T_UNEQUAL = 302,
136 T_LESS = 303,
137 T_LESS_EQUAL = 304,
138 T_GREATER = 305,
139 T_GREATER_EQUAL = 306,
140 T_NOT = 307
142 #endif
144 #else
146 enum yytokentype
148 T_HELPTEXT = 268,
149 T_WORD = 282,
150 T_WORD_QUOTE = 283,
153 T_CHOICE = 262,
154 T_CLOSE_PAREN = 289,
156 T_COMMENT = 264,
157 T_CONFIG = 265,
158 T_DEFAULT = 275,
162 T_DEPENDS = 271,
163 T_ENDCHOICE = 263,
164 T_ENDIF = 270,
165 T_ENDMENU = 260,
166 T_HELP = 267,
168 T_IF = 269,
169 T_IMPLY = 277,
171 T_MAINMENU = 258,
172 T_MENU = 259,
173 T_MENUCONFIG = 266,
175 T_ON = 281,
176 T_OPEN_PAREN = 290,
177 T_OPTION = 280,
178 T_OPTIONAL = 272,
180 T_PROMPT = 273,
181 T_RANGE = 278,
182 T_SELECT = 276,
183 T_SOURCE = 261,
186 T_VISIBLE = 279,
187 T_EOL = 291,
189 T_OR = 292,
190 T_AND = 293,
191 T_EQUAL = 294,
192 T_UNEQUAL = 284,
193 T_LESS = 285,
194 T_LESS_EQUAL = 286,
195 T_GREATER = 287,
196 T_GREATER_EQUAL = 288,
197 T_NOT = 295,
199 T_TYPE = 274,
201 T_PLUS_EQUAL = 289,
202 T_COLON_EQUAL = 265,
204 T_TAIL_SUB = 400,
206 * tokens below defined for extension.
208 T_CMNT_STR = T_TAIL_SUB + 1,
209 // [[:alnum:]_] string, started with [[:alpha:]_]
210 T_SYMBOL,
211 T_HEX_WORD,
212 T_DIGIT_WORD,
213 T_OCT_WORD,
214 T_BIN_WORD,
215 T_FLOAT_WORD,
217 * T_STR_LITERAL: "pure c-style string without word combination"
218 * T_WORD: SH_WORD"string mix with word"ANOTHER_WORD
220 T_STR_LITERAL,
221 T_ENV_VAR,
223 T_MDEFINE,
224 T_MIFDEF,
225 T_MIFNDEF,
226 T_MIF,
227 T_MELSE,
228 T_MENDIF,
229 T_MPRAGMA,
230 T_MLINK,
232 T_DOLLAR,
233 T_AT,
234 T_EXCLAM,
237 #endif
240 extern YYSTYPE yylval;
242 extern int yyparse (void);
244 #endif /* !YY_YY_SCRIPTS_KCONFIG_PARSER_TAB_H_INCLUDED */