Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
parser.tab.hh
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.8.2. */
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_ORFZ_ORTOOLS_FLATZINC_PARSER_TAB_HH_INCLUDED
39#define YY_ORFZ_ORTOOLS_FLATZINC_PARSER_TAB_HH_INCLUDED
40/* Debug traces. */
41#ifndef ORFZ_DEBUG
42#if defined YYDEBUG
43#if YYDEBUG
44#define ORFZ_DEBUG 1
45#else
46#define ORFZ_DEBUG 0
47#endif
48#else /* ! defined YYDEBUG */
49#define ORFZ_DEBUG 1
50#endif /* ! defined YYDEBUG */
51#endif /* ! defined ORFZ_DEBUG */
52#if ORFZ_DEBUG
53extern int orfz_debug;
54#endif
55/* "%code requires" blocks. */
56#line 19 "./ortools/flatzinc/parser.yy"
57
58#if !defined(OR_TOOLS_FLATZINC_FLATZINC_TAB_HH_)
59#define OR_TOOLS_FLATZINC_FLATZINC_TAB_HH_
60#include "absl/strings/match.h"
61#include "absl/strings/str_format.h"
63
64// Tells flex to use the LexerInfo class to communicate with the bison parser.
66
67// Defines the parameter to the orfz_lex() call from the orfz_parse() method.
68#define YYLEX_PARAM scanner
69
70#endif // OR_TOOLS_FLATZINC_FLATZINC_TAB_HH_
71
72#line 73 "./ortools/flatzinc/parser.tab.hh"
73
74/* Token kinds. */
75#ifndef ORFZ_TOKENTYPE
76#define ORFZ_TOKENTYPE
79 ORFZ_EOF = 0, /* "end of file" */
80 ORFZ_error = 256, /* error */
81 ORFZ_UNDEF = 257, /* "invalid token" */
82 ARRAY = 258, /* ARRAY */
83 TOKEN_BOOL = 259, /* TOKEN_BOOL */
84 CONSTRAINT = 260, /* CONSTRAINT */
85 TOKEN_FLOAT = 261, /* TOKEN_FLOAT */
86 TOKEN_INT = 262, /* TOKEN_INT */
87 MAXIMIZE = 263, /* MAXIMIZE */
88 MINIMIZE = 264, /* MINIMIZE */
89 OF = 265, /* OF */
90 PREDICATE = 266, /* PREDICATE */
91 SATISFY = 267, /* SATISFY */
92 SET = 268, /* SET */
93 SOLVE = 269, /* SOLVE */
94 VAR = 270, /* VAR */
95 DOTDOT = 271, /* DOTDOT */
96 COLONCOLON = 272, /* COLONCOLON */
97 IVALUE = 273, /* IVALUE */
98 SVALUE = 274, /* SVALUE */
99 IDENTIFIER = 275, /* IDENTIFIER */
100 DVALUE = 276 /* DVALUE */
103#endif
104
105/* Value type. */
106
108 operations_research::fz::Model* model, bool* ok, void* scanner);
109
110#endif /* !YY_ORFZ_ORTOOLS_FLATZINC_PARSER_TAB_HH_INCLUDED */
GRBmodel * model
GurobiMPCallbackContext * context
enum orfz_tokentype orfz_token_kind_t
orfz_tokentype
#define YYSTYPE
Tells flex to use the LexerInfo class to communicate with the bison parser.
Definition parser.tab.cc:67
@ TOKEN_FLOAT
Definition parser.tab.hh:85
@ ARRAY
Definition parser.tab.hh:82
@ MINIMIZE
Definition parser.tab.hh:88
@ MAXIMIZE
Definition parser.tab.hh:87
@ SVALUE
Definition parser.tab.hh:98
@ CONSTRAINT
Definition parser.tab.hh:84
@ ORFZ_UNDEF
Definition parser.tab.hh:81
@ OF
Definition parser.tab.hh:89
@ IDENTIFIER
Definition parser.tab.hh:99
@ IVALUE
Definition parser.tab.hh:97
@ TOKEN_INT
Definition parser.tab.hh:86
@ PREDICATE
Definition parser.tab.hh:90
@ DOTDOT
Definition parser.tab.hh:95
@ ORFZ_EMPTY
Definition parser.tab.hh:78
@ SET
Definition parser.tab.hh:92
@ SOLVE
Definition parser.tab.hh:93
@ COLONCOLON
Definition parser.tab.hh:96
@ SATISFY
Definition parser.tab.hh:91
@ ORFZ_EOF
Definition parser.tab.hh:79
@ DVALUE
@ TOKEN_BOOL
Definition parser.tab.hh:83
@ VAR
Definition parser.tab.hh:94
@ ORFZ_error
Definition parser.tab.hh:80
int orfz_parse(operations_research::fz::ParserContext *context, operations_research::fz::Model *model, bool *ok, void *scanner)
int orfz_debug
This is the context used during parsing.
Definition parser_util.h:31