Debian Codegraph @

src/conf_yacc.h

raw symbols SCIP
1 /* A Bison parser, made by GNU Bison 3.8.2. */
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_CONF_SRC_CONF_YACC_H_INCLUDED
39 # define YY_CONF_SRC_CONF_YACC_H_INCLUDED
40 /* Debug traces. */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int confdebug;
46 #endif
47 /* "%code requires" blocks. */
48 #line 1 "src/conf_yacc.y"
49
50 #include "conf_ast.h"
51
52 #line 53 "src/conf_yacc.h"
53
54 /* Token kinds. */
55 #ifndef YYTOKENTYPE
56 # define YYTOKENTYPE
57 enum yytokentype
58 {
59 YYEMPTY = -2,
60 YYEOF = 0, /* "end of file" */
61 YYerror = 256, /* error */
62 YYUNDEF = 257, /* "invalid token" */
63 TDEFINE = 258, /* "@@define" */
64 TUNDEFINE = 259, /* "@@undef" */
65 TIFDEF = 260, /* "@@ifdef" */
66 TIFNDEF = 261, /* "@@ifndef" */
67 TIFNHOST = 262, /* "@@ifnhost" */
68 TIFHOST = 263, /* "@@ifhost" */
69 TIF = 264, /* "@@if" */
70 TBOOLNOT = 265, /* "not" */
71 TBOOLFUNC = 266, /* "boolean function" */
72 TBOOLOP = 267, /* "boolean operator" */
73 TELSE = 268, /* "@@else" */
74 TENDIF = 269, /* "@@endif" */
75 TINCLUDE = 270, /* "@@include" */
76 TXINCLUDE = 271, /* "@@x_include" */
77 TSETENV = 272, /* "@@x_include_setenv" */
78 TGROUP = 273, /* "group name" */
79 TSTRING = 274, /* "string" */
80 TEXPR = 275, /* "group" */
81 TVARIABLE = 276, /* "variable name" */
82 TSPACE = 277, /* "whitespace" */
83 TNEWLINE = 278, /* "new line" */
84 TSELRXRULE = 279, /* "regular rule" */
85 TEQURXRULE = 280, /* "equals rule" */
86 TRECNEGRXRULE = 281, /* "recursive negative rule" */
87 TNONRECNEGRXRULE = 282, /* "non-recursive negative rule" */
88 CONFIGOPTION = 283 /* "configuration option" */
89 };
90 typedef enum yytokentype yytoken_kind_t;
91 #endif
92 /* Token kinds. */
93 #define YYEMPTY -2
94 #define YYEOF 0
95 #define YYerror 256
96 #define YYUNDEF 257
97 #define TDEFINE 258
98 #define TUNDEFINE 259
99 #define TIFDEF 260
100 #define TIFNDEF 261
101 #define TIFNHOST 262
102 #define TIFHOST 263
103 #define TIF 264
104 #define TBOOLNOT 265
105 #define TBOOLFUNC 266
106 #define TBOOLOP 267
107 #define TELSE 268
108 #define TENDIF 269
109 #define TINCLUDE 270
110 #define TXINCLUDE 271
111 #define TSETENV 272
112 #define TGROUP 273
113 #define TSTRING 274
114 #define TEXPR 275
115 #define TVARIABLE 276
116 #define TSPACE 277
117 #define TNEWLINE 278
118 #define TSELRXRULE 279
119 #define TEQURXRULE 280
120 #define TRECNEGRXRULE 281
121 #define TNONRECNEGRXRULE 282
122 #define CONFIGOPTION 283
123
124 /* Value type. */
125 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
126 union YYSTYPE
127 {
128 #line 42 "src/conf_yacc.y"
129
130 char* s;
131
132 config_option option;
133
134 bool_operator operator;
135
136 ast* ast;
137
138 if_condition* if_cond;
139 bool_expression* bool_expr;
140 attribute_expression* attr_expr;
141 restriction_expression* rs_expr;
142 ft_restriction_expression* ft_rs_expr;
143 string_expression* string_expr;
144
145 #line 146 "src/conf_yacc.h"
146
147 };
148 typedef union YYSTYPE YYSTYPE;
149 # define YYSTYPE_IS_TRIVIAL 1
150 # define YYSTYPE_IS_DECLARED 1
151 #endif
152
153
154 extern YYSTYPE conflval;
155
156
157 int confparse (ast** config_ast);
158
159
160 #endif /* !YY_CONF_SRC_CONF_YACC_H_INCLUDED */