| 1 | /* A Bison parser, made by GNU Bison 2.3. */
|
|---|
| 2 |
|
|---|
| 3 | /* Skeleton interface for Bison's Yacc-like parsers in C
|
|---|
| 4 |
|
|---|
| 5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
|---|
| 6 | Free Software Foundation, 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 2, or (at your option)
|
|---|
| 11 | 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, write to the Free Software
|
|---|
| 20 | Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|---|
| 21 | Boston, MA 02110-1301, USA. */
|
|---|
| 22 |
|
|---|
| 23 | /* As a special exception, you may create a larger work that contains
|
|---|
| 24 | part or all of the Bison parser skeleton and distribute that work
|
|---|
| 25 | under terms of your choice, so long as that work isn't itself a
|
|---|
| 26 | parser generator using the skeleton or a modified version thereof
|
|---|
| 27 | as a parser skeleton. Alternatively, if you modify or redistribute
|
|---|
| 28 | the parser skeleton itself, you may (at your option) remove this
|
|---|
| 29 | special exception, which will cause the skeleton and the resulting
|
|---|
| 30 | Bison output files to be licensed under the GNU General Public
|
|---|
| 31 | License without this special exception.
|
|---|
| 32 |
|
|---|
| 33 | This special exception was added by the Free Software Foundation in
|
|---|
| 34 | version 2.2 of Bison. */
|
|---|
| 35 |
|
|---|
| 36 | /* Tokens. */
|
|---|
| 37 | #ifndef YYTOKENTYPE
|
|---|
| 38 | # define YYTOKENTYPE
|
|---|
| 39 | /* Put the tokens into the symbol table, so that GDB and other debuggers
|
|---|
| 40 | know about them. */
|
|---|
| 41 | enum yytokentype {
|
|---|
| 42 | T_MAINMENU = 258,
|
|---|
| 43 | T_MENU = 259,
|
|---|
| 44 | T_ENDMENU = 260,
|
|---|
| 45 | T_SOURCE = 261,
|
|---|
| 46 | T_CHOICE = 262,
|
|---|
| 47 | T_ENDCHOICE = 263,
|
|---|
| 48 | T_COMMENT = 264,
|
|---|
| 49 | T_CONFIG = 265,
|
|---|
| 50 | T_MENUCONFIG = 266,
|
|---|
| 51 | T_HELP = 267,
|
|---|
| 52 | T_HELPTEXT = 268,
|
|---|
| 53 | T_IF = 269,
|
|---|
| 54 | T_ENDIF = 270,
|
|---|
| 55 | T_DEPENDS = 271,
|
|---|
| 56 | T_REQUIRES = 272,
|
|---|
| 57 | T_OPTIONAL = 273,
|
|---|
| 58 | T_PROMPT = 274,
|
|---|
| 59 | T_DEFAULT = 275,
|
|---|
| 60 | T_TRISTATE = 276,
|
|---|
| 61 | T_DEF_TRISTATE = 277,
|
|---|
| 62 | T_BOOLEAN = 278,
|
|---|
| 63 | T_DEF_BOOLEAN = 279,
|
|---|
| 64 | T_STRING = 280,
|
|---|
| 65 | T_INT = 281,
|
|---|
| 66 | T_HEX = 282,
|
|---|
| 67 | T_WORD = 283,
|
|---|
| 68 | T_WORD_QUOTE = 284,
|
|---|
| 69 | T_UNEQUAL = 285,
|
|---|
| 70 | T_EOF = 286,
|
|---|
| 71 | T_EOL = 287,
|
|---|
| 72 | T_CLOSE_PAREN = 288,
|
|---|
| 73 | T_OPEN_PAREN = 289,
|
|---|
| 74 | T_ON = 290,
|
|---|
| 75 | T_SELECT = 291,
|
|---|
| 76 | T_RANGE = 292,
|
|---|
| 77 | T_OR = 293,
|
|---|
| 78 | T_AND = 294,
|
|---|
| 79 | T_EQUAL = 295,
|
|---|
| 80 | T_NOT = 296
|
|---|
| 81 | };
|
|---|
| 82 | #endif
|
|---|
| 83 | /* Tokens. */
|
|---|
| 84 | #define T_MAINMENU 258
|
|---|
| 85 | #define T_MENU 259
|
|---|
| 86 | #define T_ENDMENU 260
|
|---|
| 87 | #define T_SOURCE 261
|
|---|
| 88 | #define T_CHOICE 262
|
|---|
| 89 | #define T_ENDCHOICE 263
|
|---|
| 90 | #define T_COMMENT 264
|
|---|
| 91 | #define T_CONFIG 265
|
|---|
| 92 | #define T_MENUCONFIG 266
|
|---|
| 93 | #define T_HELP 267
|
|---|
| 94 | #define T_HELPTEXT 268
|
|---|
| 95 | #define T_IF 269
|
|---|
| 96 | #define T_ENDIF 270
|
|---|
| 97 | #define T_DEPENDS 271
|
|---|
| 98 | #define T_REQUIRES 272
|
|---|
| 99 | #define T_OPTIONAL 273
|
|---|
| 100 | #define T_PROMPT 274
|
|---|
| 101 | #define T_DEFAULT 275
|
|---|
| 102 | #define T_TRISTATE 276
|
|---|
| 103 | #define T_DEF_TRISTATE 277
|
|---|
| 104 | #define T_BOOLEAN 278
|
|---|
| 105 | #define T_DEF_BOOLEAN 279
|
|---|
| 106 | #define T_STRING 280
|
|---|
| 107 | #define T_INT 281
|
|---|
| 108 | #define T_HEX 282
|
|---|
| 109 | #define T_WORD 283
|
|---|
| 110 | #define T_WORD_QUOTE 284
|
|---|
| 111 | #define T_UNEQUAL 285
|
|---|
| 112 | #define T_EOF 286
|
|---|
| 113 | #define T_EOL 287
|
|---|
| 114 | #define T_CLOSE_PAREN 288
|
|---|
| 115 | #define T_OPEN_PAREN 289
|
|---|
| 116 | #define T_ON 290
|
|---|
| 117 | #define T_SELECT 291
|
|---|
| 118 | #define T_RANGE 292
|
|---|
| 119 | #define T_OR 293
|
|---|
| 120 | #define T_AND 294
|
|---|
| 121 | #define T_EQUAL 295
|
|---|
| 122 | #define T_NOT 296
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|---|
| 128 | typedef union YYSTYPE
|
|---|
| 129 | #line 33 "zconf.y"
|
|---|
| 130 | {
|
|---|
| 131 | int token;
|
|---|
| 132 | char *string;
|
|---|
| 133 | struct symbol *symbol;
|
|---|
| 134 | struct expr *expr;
|
|---|
| 135 | struct menu *menu;
|
|---|
| 136 | }
|
|---|
| 137 | /* Line 1529 of yacc.c. */
|
|---|
| 138 | #line 139 "zconf.tab.h"
|
|---|
| 139 | YYSTYPE;
|
|---|
| 140 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|---|
| 141 | # define YYSTYPE_IS_DECLARED 1
|
|---|
| 142 | # define YYSTYPE_IS_TRIVIAL 1
|
|---|
| 143 | #endif
|
|---|
| 144 |
|
|---|
| 145 | extern YYSTYPE zconflval;
|
|---|
| 146 |
|
|---|