| 1 | /* A Bison parser, made by GNU Bison 3.8.2. */cxx . . $ `<file>/src/conf_yacc.h`/ |
| 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_INCLUDEDcxx . . $ `src/conf_yacc.h:39:10`! |
| 40 | /* Debug traces. */ |
| 41 | #ifndef YYDEBUGcxx . . $ `src/conf_lex.c:1071:9`! |
| 42 | # define YYDEBUGcxx . . $ `src/conf_yacc.h:42:10`! 0 |
| 43 | #endif |
| 44 | #if YYDEBUGcxx . . $ `src/conf_lex.c:1071:9`! |
| 45 | extern int cxx . . $ config_option#confcxx . . $ confdebug.dcxx . . $ confdebug.ebugcxx . . $ YYSTYPE#option.;cxx . . $ YYSTYPE#option. |
| 46 | #endif |
| 47 | /* "%code requicxx . . $ bool_operator#res" bloccxx . . $ YYSTYPE#operator.ks. */ |
| 48 | #line 1 "src/conf_yacc.y" |
| 49 | |
| 50 | #include "conf_ast.h" |
| 51 | |
| 52 | #line 53 "src/concxx . . $ bool_expression#f_yacc.h"cxx . . $ YYSTYPE#bool_expr. |
| 53 | |
| 54 | /* Token kinds. */cxx . . $ restriction_expression# |
| 55 | #ifndef YYTOKENTYPEcxx . . $ ft_restriction_expression# |
| 56 | # define cxx . . $ string_expression#YYTOKENTYPcxx . . $ `src/conf_yacc.h:56:10`!Ecxx . . $ `src/conf_yacc.h:56:10`! |
| 57 | enum yytokentypecxx . . $ yytokentype# |
| 58 | { |
| 59 | YYEMPTYcxx . . $ YYEMPTY. = -2, |
| 60 | YYEOFcxx . . $ YYEOF. = 0, /* "end of file" */ |
| 61 | YYerrorcxx . . $ YYerror. = 256, /* error */ |
| 62 | YYUNDEFcxx . . $ YYUNDEF. = 257, /* "invalid token" */ |
| 63 | TDEFINEcxx . . $ TDEFINE. = 258, /* "@@define" */ |
| 64 | TUNDEFINEcxx . . $ TUNDEFINE. = 259, /* "@@undef" */ |
| 65 | TIFDEFcxx . . $ TIFDEF. = 260, /* "@@ifdef" */ |
| 66 | TIFNDEFcxx . . $ TIFNDEF. = 261, /* "@@ifndef" */ |
| 67 | TIFNHOSTcxx . . $ TIFNHOST. = 262, /* "@@ifnhost" */ |
| 68 | TIFHOSTcxx . . $ TIFHOST. = 263, /* "@@ifhost" */ |
| 69 | TIFcxx . . $ TIF. = 264, /* "@@if" */ |
| 70 | TBOOLNOTcxx . . $ TBOOLNOT. = 265, /* "not" */ |
| 71 | TBOOLFUNCcxx . . $ TBOOLFUNC. = 266, /* "boolean function" */ |
| 72 | TBOOLOPcxx . . $ TBOOLOP. = 267, /* "boolean operator" */ |
| 73 | TELSEcxx . . $ TELSE. = 268, /* "@@else" */ |
| 74 | TENDIFcxx . . $ TENDIF. = 269, /* "@@endif" */ |
| 75 | TINCLUDEcxx . . $ TINCLUDE. = 270, /* "@@include" */ |
| 76 | TXINCLUDEcxx . . $ TXINCLUDE. = 271, /* "@@x_include" */ |
| 77 | TSETENVcxx . . $ TSETENV. = 272, /* "@@x_include_setenv" */ |
| 78 | TGROUPcxx . . $ TGROUP. = 273, /* "group name" */ |
| 79 | TSTRINGcxx . . $ TSTRING. = 274, /* "string" */ |
| 80 | TEXPRcxx . . $ TEXPR. = 275, /* "group" */ |
| 81 | TVARIABLEcxx . . $ TVARIABLE. = 276, /* "variable name" */ |
| 82 | TSPACEcxx . . $ TSPACE. = 277, /* "whitespace" */ |
| 83 | TNEWLINEcxx . . $ TNEWLINE. = 278, /* "new line" */ |
| 84 | TSELRXRULEcxx . . $ TSELRXRULE. = 279, /* "regular rule" */ |
| 85 | TEQURXRULEcxx . . $ TEQURXRULE. = 280, /* "equals rule" */ |
| 86 | TRECNEGRXRULEcxx . . $ TRECNEGRXRULE. = 281, /* "recursive negative rule" */ |
| 87 | TNONRECNEGRXRULEcxx . . $ TNONRECNEGRXRULE. = 282, /* "non-recursive negative rule" */ |
| 88 | CONFIGOPTIONcxx . . $ CONFIGOPTION. = 283 /* "configuration option" */ |
| 89 | }; |
| 90 | typedef enum yytokentypecxx . . $ yytokentype# yytoken_kind_tcxx . . $ yytoken_kind_t#; |
| 91 | #endif |
| 92 | /* Token kinds. */ |
| 93 | #define YYEMPTYcxx . . $ `src/conf_yacc.h:93:9`! -2 |
| 94 | #define YYEOFcxx . . $ `src/conf_yacc.h:94:9`! 0 |
| 95 | #define YYerrorcxx . . $ `src/conf_yacc.h:95:9`! 256 |
| 96 | #define YYUNDEFcxx . . $ `src/conf_yacc.h:96:9`! 257 |
| 97 | #define TDEFINEcxx . . $ `src/conf_yacc.h:97:9`! 258 |
| 98 | #define TUNDEFINEcxx . . $ `src/conf_yacc.h:98:9`! 259 |
| 99 | #define TIFDEFcxx . . $ `src/conf_yacc.h:99:9`! 260 |
| 100 | #define TIFNDEFcxx . . $ `src/conf_yacc.h:100:9`! 261 |
| 101 | #define TIFNHOSTcxx . . $ `src/conf_yacc.h:101:9`! 262 |
| 102 | #define TIFHOSTcxx . . $ `src/conf_yacc.h:102:9`! 263 |
| 103 | #define TIFcxx . . $ `src/conf_yacc.h:103:9`! 264 |
| 104 | #define TBOOLNOTcxx . . $ `src/conf_yacc.h:104:9`! 265 |
| 105 | #define TBOOLFUNCcxx . . $ `src/conf_yacc.h:105:9`! 266 |
| 106 | #define TBOOLOPcxx . . $ `src/conf_yacc.h:106:9`! 267 |
| 107 | #define TELSEcxx . . $ `src/conf_yacc.h:107:9`! 268 |
| 108 | #define TENDIFcxx . . $ `src/conf_yacc.h:108:9`! 269 |
| 109 | #define TINCLUDEcxx . . $ `src/conf_yacc.h:109:9`! 270 |
| 110 | #define TXINCLUDEcxx . . $ `src/conf_yacc.h:110:9`! 271 |
| 111 | #define TSETENVcxx . . $ `src/conf_yacc.h:111:9`! 272 |
| 112 | #define TGROUPcxx . . $ `src/conf_yacc.h:112:9`! 273 |
| 113 | #define TSTRINGcxx . . $ `src/conf_yacc.h:113:9`! 274 |
| 114 | #define TEXPRcxx . . $ `src/conf_yacc.h:114:9`! 275 |
| 115 | #define TVARIABLEcxx . . $ `src/conf_yacc.h:115:9`! 276 |
| 116 | #define TSPACEcxx . . $ `src/conf_yacc.h:116:9`! 277 |
| 117 | #define TNEWLINEcxx . . $ `src/conf_yacc.h:117:9`! 278 |
| 118 | #define TSELRXRULEcxx . . $ `src/conf_yacc.h:118:9`! 279 |
| 119 | #define TEQURXRULEcxx . . $ `src/conf_yacc.h:119:9`! 280 |
| 120 | #define TRECNEGRXRULEcxx . . $ `src/conf_yacc.h:120:9`! 281 |
| 121 | #define TNONRECNEGRXRULEcxx . . $ `src/conf_yacc.h:121:9`! 282 |
| 122 | #define CONFIGOPTIONcxx . . $ `src/conf_yacc.h:122:9`! 283 |
| 123 | |
| 124 | /* Value type. */ |
| 125 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 126 | union YYSTYPEcxx . . $ 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 YYSTYPEcxx . . $ YYSTYPE# YYSTYPEcxx . . $ YYSTYPE#; |
| 149 | # define YYSTYPE_IS_TRIVIALcxx . . $ `src/conf_yacc.h:149:10`! 1 |
| 150 | # define YYSTYPE_IS_DECLAREDcxx . . $ `src/conf_yacc.h:150:10`! 1 |
| 151 | #endif |
| 152 | |
| 153 | |
| 154 | extern YYSTYPEcxx . . $ YYSTYPE# conflvalcxx . . $ conflval.; |
| 155 | |
| 156 | |
| 157 | int confparsecxx . . $ confparse(2292d3dea3e4c376). (astcxx . . $ ast#** config_ast); |
| 158 | |
| 159 | |
| 160 | #endif /* !YY_CONF_SRC_CONF_YACC_H_INCLUDED */ |