#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "lkc.h"
#include "lex.zconf.c"
#include "confdata.c"
#include "expr.c"
#include "symbol.c"
#include "menu.c"
Include dependency graph for zconf.tab.c:
Go to the source code of this file.
Data Structures | |
union | YYSTYPE |
union | yyalloc |
Defines | |
#define | YYBISON 1 |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYLSP_NEEDED 0 |
#define | yyparse zconfparse |
#define | yylex zconflex |
#define | yyerror zconferror |
#define | yylval zconflval |
#define | yychar zconfchar |
#define | yydebug zconfdebug |
#define | yynerrs zconfnerrs |
#define | T_MAINMENU 258 |
#define | T_MENU 259 |
#define | T_ENDMENU 260 |
#define | T_SOURCE 261 |
#define | T_CHOICE 262 |
#define | T_ENDCHOICE 263 |
#define | T_COMMENT 264 |
#define | T_CONFIG 265 |
#define | T_MENUCONFIG 266 |
#define | T_HELP 267 |
#define | T_HELPTEXT 268 |
#define | T_IF 269 |
#define | T_ENDIF 270 |
#define | T_DEPENDS 271 |
#define | T_REQUIRES 272 |
#define | T_OPTIONAL 273 |
#define | T_PROMPT 274 |
#define | T_DEFAULT 275 |
#define | T_TRISTATE 276 |
#define | T_DEF_TRISTATE 277 |
#define | T_BOOLEAN 278 |
#define | T_DEF_BOOLEAN 279 |
#define | T_STRING 280 |
#define | T_INT 281 |
#define | T_HEX 282 |
#define | T_WORD 283 |
#define | T_WORD_QUOTE 284 |
#define | T_UNEQUAL 285 |
#define | T_EOF 286 |
#define | T_EOL 287 |
#define | T_CLOSE_PAREN 288 |
#define | T_OPEN_PAREN 289 |
#define | T_ON 290 |
#define | T_SELECT 291 |
#define | T_RANGE 292 |
#define | T_OR 293 |
#define | T_AND 294 |
#define | T_EQUAL 295 |
#define | T_NOT 296 |
#define | printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) |
#define | PRINTD 0x0001 |
#define | DEBUG_PARSE 0x0002 |
#define | YYERROR_VERBOSE |
#define | YYDEBUG 0 |
#define | YYERROR_VERBOSE 1 |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | LKC_DIRECT_LINK |
#define | YYSTACK_ALLOC malloc |
#define | YYSTACK_FREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY(To, From, Count) |
#define | YYSTACK_RELOCATE(Stack) |
#define | YYFINAL 2 |
#define | YYLAST 201 |
#define | YYNTOKENS 42 |
#define | YYNNTS 41 |
#define | YYNRULES 104 |
#define | YYNSTATES 182 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 296 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -99 |
#define | YYTABLE_NINF -68 |
#define | YYSIZE_T unsigned int |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrlab1 |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLEX yylex () |
#define | YYDPRINTF(Args) |
#define | YYDSYMPRINT(Args) |
#define | YYDSYMPRINTF(Title, Token, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPOPSTACK (yyvsp--, yyssp--) |
Typedefs | |
typedef YYSTYPE | YYSTYPE |
typedef short | yysigned_char |
Enumerations | |
enum | yytokentype { T_MAINMENU = 258, T_MENU = 259, T_ENDMENU = 260, T_SOURCE = 261, T_CHOICE = 262, T_ENDCHOICE = 263, T_COMMENT = 264, T_CONFIG = 265, T_MENUCONFIG = 266, T_HELP = 267, T_HELPTEXT = 268, T_IF = 269, T_ENDIF = 270, T_DEPENDS = 271, T_REQUIRES = 272, T_OPTIONAL = 273, T_PROMPT = 274, T_DEFAULT = 275, T_TRISTATE = 276, T_DEF_TRISTATE = 277, T_BOOLEAN = 278, T_DEF_BOOLEAN = 279, T_STRING = 280, T_INT = 281, T_HEX = 282, T_WORD = 283, T_WORD_QUOTE = 284, T_UNEQUAL = 285, T_EOF = 286, T_EOL = 287, T_CLOSE_PAREN = 288, T_OPEN_PAREN = 289, T_ON = 290, T_SELECT = 291, T_RANGE = 292, T_OR = 293, T_AND = 294, T_EQUAL = 295, T_NOT = 296 } |
Functions | |
int | zconflex (void) |
void | zconfprint (const char *err,...) |
void | zconferror (const char *err) |
bool | zconf_endtoken (int token, int starttoken, int endtoken) |
YYSIZE_T | yystrlen (char *yystr) const |
char * | yystpcpy (char *yydest, const char *yysrc) |
void | yydestruct (int yytype, YYSTYPE *yyvaluep) |
int | yyparse () |
void | conf_parse (const char *name) |
const char * | zconf_tokenname (int token) |
void | print_quoted_string (FILE *out, const char *str) |
void | print_symbol (FILE *out, struct menu *menu) |
void | zconfdump (FILE *out) |
Variables | |
int | cdebug = PRINTD |
symbol * | symbol_hash [257] |
const unsigned char | yytranslate [] |
const char *const | yytname [] |
const unsigned char | yyr1 [] |
const unsigned char | yyr2 [] |
const unsigned char | yydefact [] |
const short | yydefgoto [] |
const short | yypact [] |
const short | yypgoto [] |
const short | yytable [] |
const unsigned char | yycheck [] |
const unsigned char | yystos [] |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
|
Definition at line 167 of file zconf.tab.c. |
|
Definition at line 215 of file zconf.tab.c. |
|
Definition at line 166 of file zconf.tab.c. |
|
Definition at line 164 of file zconf.tab.c. |
|
Definition at line 142 of file zconf.tab.c. |
|
Definition at line 126 of file zconf.tab.c. |
|
Definition at line 110 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 136 of file zconf.tab.c. |
|
Definition at line 112 of file zconf.tab.c. |
|
Definition at line 113 of file zconf.tab.c. |
|
Definition at line 127 of file zconf.tab.c. |
|
Definition at line 125 of file zconf.tab.c. |
|
Definition at line 123 of file zconf.tab.c. |
|
Definition at line 119 of file zconf.tab.c. |
|
Definition at line 111 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 118 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 108 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 134 of file zconf.tab.c. |
|
Definition at line 135 of file zconf.tab.c. |
|
Definition at line 143 of file zconf.tab.c. |
|
Definition at line 115 of file zconf.tab.c. |
|
Definition at line 116 of file zconf.tab.c. |
|
Definition at line 130 of file zconf.tab.c. |
|
Definition at line 117 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 129 of file zconf.tab.c. |
|
Definition at line 106 of file zconf.tab.c. |
|
Definition at line 107 of file zconf.tab.c. Referenced by zconf_tokenname(). |
|
Definition at line 114 of file zconf.tab.c. |
|
Definition at line 144 of file zconf.tab.c. |
|
Definition at line 138 of file zconf.tab.c. |
|
Definition at line 137 of file zconf.tab.c. |
|
Definition at line 121 of file zconf.tab.c. |
|
Definition at line 141 of file zconf.tab.c. |
|
Definition at line 122 of file zconf.tab.c. |
|
Definition at line 140 of file zconf.tab.c. |
|
Definition at line 120 of file zconf.tab.c. |
|
Definition at line 139 of file zconf.tab.c. |
|
Definition at line 109 of file zconf.tab.c. |
|
Definition at line 128 of file zconf.tab.c. |
|
Definition at line 124 of file zconf.tab.c. |
|
Definition at line 133 of file zconf.tab.c. |
|
Definition at line 131 of file zconf.tab.c. |
|
Definition at line 132 of file zconf.tab.c. |
|
Definition at line 834 of file zconf.tab.c. |
|
Definition at line 833 of file zconf.tab.c. |
|
Definition at line 687 of file zconf.tab.c. |
|
Definition at line 686 of file zconf.tab.c. |
|
Value: Definition at line 699 of file zconf.tab.c. |
|
Definition at line 37 of file zconf.tab.c. |
|
Definition at line 54 of file zconf.tab.c. |
|
Definition at line 682 of file zconf.tab.c. |
|
Value: Definition at line 281 of file zconf.tab.c. |
|
Definition at line 183 of file zconf.tab.c. |
|
Definition at line 55 of file zconf.tab.c. |
|
Definition at line 830 of file zconf.tab.c. |
|
Definition at line 831 of file zconf.tab.c. |
|
Definition at line 832 of file zconf.tab.c. |
|
Definition at line 683 of file zconf.tab.c. |
|
Definition at line 684 of file zconf.tab.c. |
|
Definition at line 717 of file zconf.tab.c. |
|
Definition at line 681 of file zconf.tab.c. |
|
Definition at line 688 of file zconf.tab.c. |
|
Definition at line 52 of file zconf.tab.c. |
|
Definition at line 189 of file zconf.tab.c. |
|
Definition at line 189 of file zconf.tab.c. |
|
Definition at line 695 of file zconf.tab.c. |
|
Definition at line 317 of file zconf.tab.c. |
|
Definition at line 840 of file zconf.tab.c. |
|
Definition at line 319 of file zconf.tab.c. |
|
Definition at line 735 of file zconf.tab.c. |
|
Definition at line 51 of file zconf.tab.c. |
|
Value: Definition at line 723 of file zconf.tab.c. |
|
Definition at line 46 of file zconf.tab.c. |
|
Definition at line 53 of file zconf.tab.c. |
|
Definition at line 855 of file zconf.tab.c. |
|
Definition at line 332 of file zconf.tab.c. |
|
Definition at line 56 of file zconf.tab.c. |
|
Definition at line 324 of file zconf.tab.c. |
|
Definition at line 326 of file zconf.tab.c. |
|
Definition at line 328 of file zconf.tab.c. |
|
Definition at line 322 of file zconf.tab.c. |
|
Definition at line 551 of file zconf.tab.c. |
|
Definition at line 50 of file zconf.tab.c. |
|
|
|
Definition at line 43 of file zconf.tab.c. |
|
Definition at line 697 of file zconf.tab.c. |
|
Definition at line 678 of file zconf.tab.c. |
|
Definition at line 40 of file zconf.tab.c. |
|
Definition at line 248 of file zconf.tab.c. |
|
Value: Definition at line 270 of file zconf.tab.c. |
|
Definition at line 249 of file zconf.tab.c. |
|
Definition at line 266 of file zconf.tab.c. |
|
Value: Definition at line 297 of file zconf.tab.c. |
|
Definition at line 205 of file zconf.tab.c. |
|
Definition at line 206 of file zconf.tab.c. |
|
Definition at line 207 of file zconf.tab.c. |
|
Definition at line 589 of file zconf.tab.c. |
|
Definition at line 716 of file zconf.tab.c. |
|
Definition at line 334 of file zconf.tab.c. |
|
Definition at line 331 of file zconf.tab.c. |
|
Definition at line 313 of file zconf.tab.c. |
|
|
|
|
|
Definition at line 1916 of file zconf.tab.c. References for_all_symbols, menu_add_prop(), menu_finalize(), menu_init(), modules_sym, P_MENU, menu::prompt, rootmenu, sym_change_count, sym_check_deps(), sym_init(), sym_lookup(), SYMBOL_CHECK_DONE, SYMBOL_CHECKED, zconf_initscan(), and zconfparse(). Referenced by main(). Here is the call graph for this function: |
|
Definition at line 1988 of file zconf.tab.c. References out. Referenced by print_symbol(), and zconfdump(). |
|
Definition at line 2005 of file zconf.tab.c. References expr_fprint(), expr_is_yes(), out, P_CHOICE, P_DEFAULT, P_PROMPT, print_quoted_string(), S_BOOLEAN, S_HEX, S_INT, S_STRING, S_TRISTATE, menu::sym, and sym_is_choice(). Referenced by zconfdump(). Here is the call graph for this function: |
|
Definition at line 962 of file zconf.tab.c. |
|
|
|
Definition at line 895 of file zconf.tab.c. |
|
Definition at line 871 of file zconf.tab.c. |
|
Definition at line 1956 of file zconf.tab.c. References current_file, current_menu, menu::file, zconf_tokenname(), and zconfprint(). Here is the call graph for this function: |
|
Definition at line 1943 of file zconf.tab.c. References T_CHOICE, T_ENDCHOICE, T_ENDIF, T_ENDMENU, T_IF, and T_MENU. Referenced by zconf_endtoken(). |
|
Definition at line 2073 of file zconf.tab.c. References expr_fprint(), expr_is_yes(), menu::list, out, P_COMMENT, P_MENU, print_quoted_string(), print_symbol(), and rootmenu. Here is the call graph for this function: |
|
Definition at line 1983 of file zconf.tab.c. References zconf_curname(), and zconf_lineno(). Here is the call graph for this function: |
|
|
|
Definition at line 1972 of file zconf.tab.c. References zconf_curname(), and zconf_lineno(). Referenced by zconf_endtoken(). Here is the call graph for this function: |
|
Definition at line 169 of file zconf.tab.c. Referenced by print_expr(). |
|
Definition at line 176 of file zconf.tab.c. Referenced by sym_find(), and sym_lookup(). |
|
Definition at line 998 of file zconf.tab.c. |
|
Initial value: Definition at line 615 of file zconf.tab.c. |
|
Initial value: Definition at line 516 of file zconf.tab.c. |
|
Initial value: Definition at line 540 of file zconf.tab.c. |
|
Definition at line 1001 of file zconf.tab.c. |
|
Definition at line 1004 of file zconf.tab.c. |
|
Initial value: Definition at line 552 of file zconf.tab.c. |
|
Initial value: Definition at line 576 of file zconf.tab.c. |
|
Initial value: Definition at line 482 of file zconf.tab.c. |
|
Initial value: Definition at line 498 of file zconf.tab.c. |
|
Initial value: Definition at line 642 of file zconf.tab.c. |
|
Initial value: Definition at line 590 of file zconf.tab.c. |
|
Initial value: Definition at line 447 of file zconf.tab.c. |
|
Definition at line 338 of file zconf.tab.c. |