1 /* A Bison parser, made by GNU Bison 3.7.1. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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 <http://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_YY_USERS_JDEK0001_DROPBOX_DEVELOPMENT_CHUFFED_BUILD_CHUFFED_FLATZINC_PARSER_TAB_H_INCLUDED 39 # define YY_YY_USERS_JDEK0001_DROPBOX_DEVELOPMENT_CHUFFED_BUILD_CHUFFED_FLATZINC_PARSER_TAB_H_INCLUDED 40 /* Debug traces. */ 41 #ifndef YYDEBUG 42 # define YYDEBUG 0 43 #endif 44 #if YYDEBUG 45 extern int 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 INT_LIT = 258, /* INT_LIT */ 58 BOOL_LIT = 259, /* BOOL_LIT */ 59 FLOAT_LIT = 260, /* FLOAT_LIT */ 60 ID = 261, /* ID */ 61 STRING_LIT = 262, /* STRING_LIT */ 62 VAR = 263, /* VAR */ 63 PAR = 264, /* PAR */ 64 ANNOTATION = 265, /* ANNOTATION */ 65 ANY = 266, /* ANY */ 66 ARRAY = 267, /* ARRAY */ 67 BOOLTOK = 268, /* BOOLTOK */ 68 CASE = 269, /* CASE */ 69 COLONCOLON = 270, /* COLONCOLON */ 70 CONSTRAINT = 271, /* CONSTRAINT */ 71 DEFAULT = 272, /* DEFAULT */ 72 DOTDOT = 273, /* DOTDOT */ 73 ELSE = 274, /* ELSE */ 74 ELSEIF = 275, /* ELSEIF */ 75 ENDIF = 276, /* ENDIF */ 76 ENUM = 277, /* ENUM */ 77 FLOATTOK = 278, /* FLOATTOK */ 78 FUNCTION = 279, /* FUNCTION */ 79 IF = 280, /* IF */ 80 INCLUDE = 281, /* INCLUDE */ 81 INTTOK = 282, /* INTTOK */ 82 LET = 283, /* LET */ 83 MAXIMIZE = 284, /* MAXIMIZE */ 84 MINIMIZE = 285, /* MINIMIZE */ 85 OF = 286, /* OF */ 86 SATISFY = 287, /* SATISFY */ 87 OUTPUT = 288, /* OUTPUT */ 88 PREDICATE = 289, /* PREDICATE */ 89 RECORD = 290, /* RECORD */ 90 SET = 291, /* SET */ 91 SHOW = 292, /* SHOW */ 92 SHOWCOND = 293, /* SHOWCOND */ 93 SOLVE = 294, /* SOLVE */ 94 STRING = 295, /* STRING */ 95 TEST = 296, /* TEST */ 96 THEN = 297, /* THEN */ 97 TUPLE = 298, /* TUPLE */ 98 TYPE = 299, /* TYPE */ 99 VARIANT_RECORD = 300, /* VARIANT_RECORD */ 100 WHERE = 301 /* WHERE */ 101 }; 102 typedef enum yytokentype yytoken_kind_t; 103 #endif 104 105 /* Value type. */ 106 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 107 union YYSTYPE 108 { 109 110 int iValue; 111 char* sValue; 112 bool bValue; 113 double dValue; 114 std::vector<int>* setValue; 115 FlatZinc::AST::SetLit* setLit; 116 std::vector<double>* floatSetValue; 117 std::vector<FlatZinc::AST::SetLit>* setValueList; 118 FlatZinc::Option<FlatZinc::AST::SetLit* > oSet; 119 FlatZinc::VarSpec* varSpec; 120 FlatZinc::Option<FlatZinc::AST::Node*> oArg; 121 std::vector<FlatZinc::VarSpec*>* varSpecVec; 122 FlatZinc::Option<std::vector<FlatZinc::VarSpec*>* > oVarSpecVec; 123 FlatZinc::AST::Node* arg; 124 FlatZinc::AST::Array* argVec; 125 126 127 }; 128 typedef union YYSTYPE YYSTYPE; 129 # define YYSTYPE_IS_TRIVIAL 1 130 # define YYSTYPE_IS_DECLARED 1 131 #endif 132 133 134 135 int yyparse (void *parm); 136 137 #endif /* !YY_YY_USERS_JDEK0001_DROPBOX_DEVELOPMENT_CHUFFED_BUILD_CHUFFED_FLATZINC_PARSER_TAB_H_INCLUDED */ 138