this repo has no description
at develop 6.4 kB view raw
1/* A Bison parser, made by GNU Bison 3.7.6. */ 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_MZA_YY_USERS_DEKKER1_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BYTE_BUILD_INCLUDE_MINIZINC_SUPPORT_MZA_PARSER_TAB_HH_INCLUDED 39# define YY_MZA_YY_USERS_DEKKER1_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BYTE_BUILD_INCLUDE_MINIZINC_SUPPORT_MZA_PARSER_TAB_HH_INCLUDED 40/* Debug traces. */ 41#ifndef YYDEBUG 42# define YYDEBUG 0 43#endif 44#if YYDEBUG 45extern int mza_yydebug; 46#endif 47 48/* Token kinds. */ 49#ifndef YYTOKENTYPE 50# define YYTOKENTYPE 51 enum yytokentype 52 { 53 YYEMPTY = -2, 54 YYEOF = 0, /* "end of file" */ 55 YYerror = 256, /* error */ 56 YYUNDEF = 257, /* "invalid token" */ 57 MZA_INT = 258, /* MZA_INT */ 58 MZA_REG = 259, /* MZA_REG */ 59 MZA_MODE = 260, /* MZA_MODE */ 60 MZA_CTX = 261, /* MZA_CTX */ 61 MZA_ID = 262, /* MZA_ID */ 62 MZA_COLON = 263, /* ":" */ 63 MZA_DELAY = 264, /* "D" */ 64 MZA_GLOBAL = 265, /* "GLOBAL" */ 65 MZA_ADDI = 266, /* MZA_ADDI */ 66 MZA_SUBI = 267, /* MZA_SUBI */ 67 MZA_MULI = 268, /* MZA_MULI */ 68 MZA_DIVI = 269, /* MZA_DIVI */ 69 MZA_MODI = 270, /* MZA_MODI */ 70 MZA_INCI = 271, /* MZA_INCI */ 71 MZA_DECI = 272, /* MZA_DECI */ 72 MZA_IMMI = 273, /* MZA_IMMI */ 73 MZA_CLEAR = 274, /* MZA_CLEAR */ 74 MZA_LOAD_GLOBAL = 275, /* MZA_LOAD_GLOBAL */ 75 MZA_STORE_GLOBAL = 276, /* MZA_STORE_GLOBAL */ 76 MZA_MOV = 277, /* MZA_MOV */ 77 MZA_JMP = 278, /* MZA_JMP */ 78 MZA_JMPIF = 279, /* MZA_JMPIF */ 79 MZA_JMPIFNOT = 280, /* MZA_JMPIFNOT */ 80 MZA_EQI = 281, /* MZA_EQI */ 81 MZA_LTI = 282, /* MZA_LTI */ 82 MZA_LEI = 283, /* MZA_LEI */ 83 MZA_AND = 284, /* MZA_AND */ 84 MZA_OR = 285, /* MZA_OR */ 85 MZA_NOT = 286, /* MZA_NOT */ 86 MZA_XOR = 287, /* MZA_XOR */ 87 MZA_ISPAR = 288, /* MZA_ISPAR */ 88 MZA_ISEMPTY = 289, /* MZA_ISEMPTY */ 89 MZA_LENGTH = 290, /* MZA_LENGTH */ 90 MZA_GET_VEC = 291, /* MZA_GET_VEC */ 91 MZA_GET_ARRAY = 292, /* MZA_GET_ARRAY */ 92 MZA_LB = 293, /* MZA_LB */ 93 MZA_UB = 294, /* MZA_UB */ 94 MZA_DOM = 295, /* MZA_DOM */ 95 MZA_MAKE_SET = 296, /* MZA_MAKE_SET */ 96 MZA_DIFF = 297, /* MZA_DIFF */ 97 MZA_INTERSECTION = 298, /* MZA_INTERSECTION */ 98 MZA_UNION = 299, /* MZA_UNION */ 99 MZA_INTERSECT_DOMAIN = 300, /* MZA_INTERSECT_DOMAIN */ 100 MZA_OPEN_AGGREGATION = 301, /* MZA_OPEN_AGGREGATION */ 101 MZA_CLOSE_AGGREGATION = 302, /* MZA_CLOSE_AGGREGATION */ 102 MZA_SIMPLIFY_LIN = 303, /* MZA_SIMPLIFY_LIN */ 103 MZA_PUSH = 304, /* MZA_PUSH */ 104 MZA_POP = 305, /* MZA_POP */ 105 MZA_POST = 306, /* MZA_POST */ 106 MZA_RET = 307, /* MZA_RET */ 107 MZA_CALL = 308, /* MZA_CALL */ 108 MZA_BUILTIN = 309, /* MZA_BUILTIN */ 109 MZA_TCALL = 310, /* MZA_TCALL */ 110 MZA_ITER_ARRAY = 311, /* MZA_ITER_ARRAY */ 111 MZA_ITER_VEC = 312, /* MZA_ITER_VEC */ 112 MZA_ITER_RANGE = 313, /* MZA_ITER_RANGE */ 113 MZA_ITER_NEXT = 314, /* MZA_ITER_NEXT */ 114 MZA_ITER_BREAK = 315, /* MZA_ITER_BREAK */ 115 MZA_TRACE = 316, /* MZA_TRACE */ 116 MZA_ABORT = 317 /* MZA_ABORT */ 117 }; 118 typedef enum yytokentype yytoken_kind_t; 119#endif 120 121/* Value type. */ 122#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 123union YYSTYPE 124{ 125 126 int iValue; 127 char* sValue; 128 MiniZinc::BytecodeStream::Instr bValue; 129 std::list<int>* liValue; 130 std::list<std::string>* sliValue; 131 132 133}; 134typedef union YYSTYPE YYSTYPE; 135# define YYSTYPE_IS_TRIVIAL 1 136# define YYSTYPE_IS_DECLARED 1 137#endif 138 139/* Location type. */ 140#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED 141typedef struct YYLTYPE YYLTYPE; 142struct YYLTYPE 143{ 144 int first_line; 145 int first_column; 146 int last_line; 147 int last_column; 148}; 149# define YYLTYPE_IS_DECLARED 1 150# define YYLTYPE_IS_TRIVIAL 1 151#endif 152 153 154 155int mza_yyparse (MZAContext& ctx); 156 157#endif /* !YY_MZA_YY_USERS_DEKKER1_CODE_GITHUB_COM_MINIZINC_LIBMINIZINC_BYTE_BUILD_INCLUDE_MINIZINC_SUPPORT_MZA_PARSER_TAB_HH_INCLUDED */