1 /* A Bison parser, made by GNU Bison 3.0.4. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. 6 7 This program is free software: you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 20 /* As a special exception, you may create a larger work that contains 21 part or all of the Bison parser skeleton and distribute that work 22 under terms of your choice, so long as that work isn't itself a 23 parser generator using the skeleton or a modified version thereof 24 as a parser skeleton. Alternatively, if you modify or redistribute 25 the parser skeleton itself, you may (at your option) remove this 26 special exception, which will cause the skeleton and the resulting 27 Bison output files to be licensed under the GNU General Public 28 License without this special exception. 29 30 This special exception was added by the Free Software Foundation in 31 version 2.2 of Bison. */ 32 33 #ifndef YY_DVDVM_DVDVMY_H_INCLUDED 34 # define YY_DVDVM_DVDVMY_H_INCLUDED 35 /* Debug traces. */ 36 #ifndef YYDEBUG 37 # define YYDEBUG 0 38 #endif 39 #if YYDEBUG 40 extern int dvdvmdebug; 41 #endif 42 43 /* Token type. */ 44 #ifndef YYTOKENTYPE 45 # define YYTOKENTYPE 46 enum yytokentype 47 { 48 NUM_TOK = 258, 49 G_TOK = 259, 50 S_TOK = 260, 51 ID_TOK = 261, 52 ANGLE_TOK = 262, 53 AUDIO_TOK = 263, 54 BREAK_TOK = 264, 55 BUTTON_TOK = 265, 56 CALL_TOK = 266, 57 CELL_TOK = 267, 58 CHAPTER_TOK = 268, 59 CLOSEBRACE_TOK = 269, 60 CLOSEPAREN_TOK = 270, 61 COUNTER_TOK = 271, 62 ELSE_TOK = 272, 63 ENTRY_TOK = 273, 64 EXIT_TOK = 274, 65 FPC_TOK = 275, 66 GOTO_TOK = 276, 67 IF_TOK = 277, 68 JUMP_TOK = 278, 69 LAST_TOK = 279, 70 MENU_TOK = 280, 71 NEXT_TOK = 281, 72 OPENBRACE_TOK = 282, 73 OPENPAREN_TOK = 283, 74 PGC_TOK = 284, 75 PREV_TOK = 285, 76 PROGRAM_TOK = 286, 77 PTT_TOK = 287, 78 REGION_TOK = 288, 79 RESUME_TOK = 289, 80 RND_TOK = 290, 81 ROOT_TOK = 291, 82 SET_TOK = 292, 83 SUBTITLE_TOK = 293, 84 TAIL_TOK = 294, 85 TITLE_TOK = 295, 86 TITLESET_TOK = 296, 87 TOP_TOK = 297, 88 UP_TOK = 298, 89 VMGM_TOK = 299, 90 _OR_TOK = 300, 91 XOR_TOK = 301, 92 LOR_TOK = 302, 93 BOR_TOK = 303, 94 _AND_TOK = 304, 95 LAND_TOK = 305, 96 BAND_TOK = 306, 97 NOT_TOK = 307, 98 EQ_TOK = 308, 99 NE_TOK = 309, 100 GE_TOK = 310, 101 GT_TOK = 311, 102 LE_TOK = 312, 103 LT_TOK = 313, 104 ADD_TOK = 314, 105 SUB_TOK = 315, 106 MUL_TOK = 316, 107 DIV_TOK = 317, 108 MOD_TOK = 318, 109 ADDSET_TOK = 319, 110 SUBSET_TOK = 320, 111 MULSET_TOK = 321, 112 DIVSET_TOK = 322, 113 MODSET_TOK = 323, 114 ANDSET_TOK = 324, 115 ORSET_TOK = 325, 116 XORSET_TOK = 326, 117 SEMICOLON_TOK = 327, 118 COLON_TOK = 328, 119 ERROR_TOK = 329 120 }; 121 #endif 122 /* Tokens. */ 123 #define NUM_TOK 258 124 #define G_TOK 259 125 #define S_TOK 260 126 #define ID_TOK 261 127 #define ANGLE_TOK 262 128 #define AUDIO_TOK 263 129 #define BREAK_TOK 264 130 #define BUTTON_TOK 265 131 #define CALL_TOK 266 132 #define CELL_TOK 267 133 #define CHAPTER_TOK 268 134 #define CLOSEBRACE_TOK 269 135 #define CLOSEPAREN_TOK 270 136 #define COUNTER_TOK 271 137 #define ELSE_TOK 272 138 #define ENTRY_TOK 273 139 #define EXIT_TOK 274 140 #define FPC_TOK 275 141 #define GOTO_TOK 276 142 #define IF_TOK 277 143 #define JUMP_TOK 278 144 #define LAST_TOK 279 145 #define MENU_TOK 280 146 #define NEXT_TOK 281 147 #define OPENBRACE_TOK 282 148 #define OPENPAREN_TOK 283 149 #define PGC_TOK 284 150 #define PREV_TOK 285 151 #define PROGRAM_TOK 286 152 #define PTT_TOK 287 153 #define REGION_TOK 288 154 #define RESUME_TOK 289 155 #define RND_TOK 290 156 #define ROOT_TOK 291 157 #define SET_TOK 292 158 #define SUBTITLE_TOK 293 159 #define TAIL_TOK 294 160 #define TITLE_TOK 295 161 #define TITLESET_TOK 296 162 #define TOP_TOK 297 163 #define UP_TOK 298 164 #define VMGM_TOK 299 165 #define _OR_TOK 300 166 #define XOR_TOK 301 167 #define LOR_TOK 302 168 #define BOR_TOK 303 169 #define _AND_TOK 304 170 #define LAND_TOK 305 171 #define BAND_TOK 306 172 #define NOT_TOK 307 173 #define EQ_TOK 308 174 #define NE_TOK 309 175 #define GE_TOK 310 176 #define GT_TOK 311 177 #define LE_TOK 312 178 #define LT_TOK 313 179 #define ADD_TOK 314 180 #define SUB_TOK 315 181 #define MUL_TOK 316 182 #define DIV_TOK 317 183 #define MOD_TOK 318 184 #define ADDSET_TOK 319 185 #define SUBSET_TOK 320 186 #define MULSET_TOK 321 187 #define DIVSET_TOK 322 188 #define MODSET_TOK 323 189 #define ANDSET_TOK 324 190 #define ORSET_TOK 325 191 #define XORSET_TOK 326 192 #define SEMICOLON_TOK 327 193 #define COLON_TOK 328 194 #define ERROR_TOK 329 195 196 /* Value type. */ 197 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 198 199 union YYSTYPE 200 { 201 #line 92 "dvdvmy.y" /* yacc.c:1909 */ 202 203 unsigned int int_val; 204 char *str_val; 205 struct vm_statement *statement; 206 207 #line 208 "dvdvmy.h" /* yacc.c:1909 */ 208 }; 209 210 typedef union YYSTYPE YYSTYPE; 211 # define YYSTYPE_IS_TRIVIAL 1 212 # define YYSTYPE_IS_DECLARED 1 213 #endif 214 215 216 extern YYSTYPE dvdvmlval; 217 218 int dvdvmparse (void); 219 220 #endif /* !YY_DVDVM_DVDVMY_H_INCLUDED */ 221