parser.tab.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* A Bison parser, made by GNU Bison 3.7.6. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
  4. Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>. */
  15. /* As a special exception, you may create a larger work that contains
  16. part or all of the Bison parser skeleton and distribute that work
  17. under terms of your choice, so long as that work isn't itself a
  18. parser generator using the skeleton or a modified version thereof
  19. as a parser skeleton. Alternatively, if you modify or redistribute
  20. the parser skeleton itself, you may (at your option) remove this
  21. special exception, which will cause the skeleton and the resulting
  22. Bison output files to be licensed under the GNU General Public
  23. License without this special exception.
  24. This special exception was added by the Free Software Foundation in
  25. version 2.2 of Bison. */
  26. /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
  27. especially those whose name start with YY_ or yy_. They are
  28. private implementation details that can be changed or removed. */
  29. #ifndef YY_YY_PARSER_TAB_H_INCLUDED
  30. # define YY_YY_PARSER_TAB_H_INCLUDED
  31. /* Debug traces. */
  32. #ifndef YYDEBUG
  33. # define YYDEBUG 0
  34. #endif
  35. #if YYDEBUG
  36. extern int yydebug;
  37. #endif
  38. /* Token kinds. */
  39. #ifndef YYTOKENTYPE
  40. # define YYTOKENTYPE
  41. enum yytokentype
  42. {
  43. YYEMPTY = -2,
  44. YYEOF = 0, /* "end of file" */
  45. YYerror = 256, /* error */
  46. YYUNDEF = 257, /* "invalid token" */
  47. T_HELPTEXT = 258, /* T_HELPTEXT */
  48. T_WORD = 259, /* T_WORD */
  49. T_WORD_QUOTE = 260, /* T_WORD_QUOTE */
  50. T_BOOL = 261, /* T_BOOL */
  51. T_CHOICE = 262, /* T_CHOICE */
  52. T_CLOSE_PAREN = 263, /* T_CLOSE_PAREN */
  53. T_COLON_EQUAL = 264, /* T_COLON_EQUAL */
  54. T_COMMENT = 265, /* T_COMMENT */
  55. T_CONFIG = 266, /* T_CONFIG */
  56. T_DEFAULT = 267, /* T_DEFAULT */
  57. T_DEF_BOOL = 268, /* T_DEF_BOOL */
  58. T_DEF_TRISTATE = 269, /* T_DEF_TRISTATE */
  59. T_DEPENDS = 270, /* T_DEPENDS */
  60. T_ENDCHOICE = 271, /* T_ENDCHOICE */
  61. T_ENDIF = 272, /* T_ENDIF */
  62. T_ENDMENU = 273, /* T_ENDMENU */
  63. T_HELP = 274, /* T_HELP */
  64. T_HEX = 275, /* T_HEX */
  65. T_IF = 276, /* T_IF */
  66. T_IMPLY = 277, /* T_IMPLY */
  67. T_INT = 278, /* T_INT */
  68. T_MAINMENU = 279, /* T_MAINMENU */
  69. T_MENU = 280, /* T_MENU */
  70. T_MENUCONFIG = 281, /* T_MENUCONFIG */
  71. T_MODULES = 282, /* T_MODULES */
  72. T_ON = 283, /* T_ON */
  73. T_OPEN_PAREN = 284, /* T_OPEN_PAREN */
  74. T_OPTIONAL = 285, /* T_OPTIONAL */
  75. T_PLUS_EQUAL = 286, /* T_PLUS_EQUAL */
  76. T_PROMPT = 287, /* T_PROMPT */
  77. T_RANGE = 288, /* T_RANGE */
  78. T_RESET = 289, /* T_RESET */
  79. T_SELECT = 290, /* T_SELECT */
  80. T_SOURCE = 291, /* T_SOURCE */
  81. T_STRING = 292, /* T_STRING */
  82. T_TRISTATE = 293, /* T_TRISTATE */
  83. T_VISIBLE = 294, /* T_VISIBLE */
  84. T_EOL = 295, /* T_EOL */
  85. T_ASSIGN_VAL = 296, /* T_ASSIGN_VAL */
  86. T_OR = 297, /* T_OR */
  87. T_AND = 298, /* T_AND */
  88. T_EQUAL = 299, /* T_EQUAL */
  89. T_UNEQUAL = 300, /* T_UNEQUAL */
  90. T_LESS = 301, /* T_LESS */
  91. T_LESS_EQUAL = 302, /* T_LESS_EQUAL */
  92. T_GREATER = 303, /* T_GREATER */
  93. T_GREATER_EQUAL = 304, /* T_GREATER_EQUAL */
  94. T_NOT = 305 /* T_NOT */
  95. };
  96. typedef enum yytokentype yytoken_kind_t;
  97. #endif
  98. /* Value type. */
  99. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  100. union YYSTYPE
  101. {
  102. char *string;
  103. struct symbol *symbol;
  104. struct expr *expr;
  105. struct menu *menu;
  106. enum symbol_type type;
  107. enum variable_flavor flavor;
  108. };
  109. typedef union YYSTYPE YYSTYPE;
  110. # define YYSTYPE_IS_TRIVIAL 1
  111. # define YYSTYPE_IS_DECLARED 1
  112. #endif
  113. extern YYSTYPE yylval;
  114. int yyparse (void);
  115. #endif /* !YY_YY_PARSER_TAB_H_INCLUDED */