Google OR-Tools
v9.12
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
53
extern
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"
62
#include "
ortools/flatzinc/parser_util.h
"
63
64
// Tells flex to use the LexerInfo class to communicate with the bison parser.
65
typedef
operations_research::fz::LexerInfo
YYSTYPE
;
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
77
enum
orfz_tokentype
{
78
ORFZ_EMPTY
= -2,
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 */
101
};
102
typedef
enum
orfz_tokentype
orfz_token_kind_t
;
103
#endif
104
105
/* Value type. */
106
107
int
orfz_parse
(
operations_research::fz::ParserContext
* context,
108
operations_research::fz::Model
* model,
bool
* ok,
void
* scanner);
109
110
#endif
/* !YY_ORFZ_ORTOOLS_FLATZINC_PARSER_TAB_HH_INCLUDED */
operations_research::fz::Model
Definition
model.h:341
orfz_token_kind_t
enum orfz_tokentype orfz_token_kind_t
Definition
parser.tab.cc:158
YYSTYPE
#define YYSTYPE
Definition
parser.tab.cc:67
orfz_tokentype
orfz_tokentype
Definition
parser.tab.cc:133
TOKEN_FLOAT
@ TOKEN_FLOAT
Definition
parser.tab.cc:141
ARRAY
@ ARRAY
Definition
parser.tab.cc:138
MINIMIZE
@ MINIMIZE
Definition
parser.tab.cc:144
MAXIMIZE
@ MAXIMIZE
Definition
parser.tab.cc:143
SVALUE
@ SVALUE
Definition
parser.tab.cc:154
CONSTRAINT
@ CONSTRAINT
Definition
parser.tab.cc:140
ORFZ_UNDEF
@ ORFZ_UNDEF
Definition
parser.tab.cc:137
OF
@ OF
Definition
parser.tab.cc:145
IDENTIFIER
@ IDENTIFIER
Definition
parser.tab.cc:155
IVALUE
@ IVALUE
Definition
parser.tab.cc:153
TOKEN_INT
@ TOKEN_INT
Definition
parser.tab.cc:142
PREDICATE
@ PREDICATE
Definition
parser.tab.cc:146
DOTDOT
@ DOTDOT
Definition
parser.tab.cc:151
ORFZ_EMPTY
@ ORFZ_EMPTY
Definition
parser.tab.cc:134
SET
@ SET
Definition
parser.tab.cc:148
SOLVE
@ SOLVE
Definition
parser.tab.cc:149
COLONCOLON
@ COLONCOLON
Definition
parser.tab.cc:152
SATISFY
@ SATISFY
Definition
parser.tab.cc:147
ORFZ_EOF
@ ORFZ_EOF
Definition
parser.tab.cc:135
DVALUE
@ DVALUE
Definition
parser.tab.cc:156
TOKEN_BOOL
@ TOKEN_BOOL
Definition
parser.tab.cc:139
VAR
@ VAR
Definition
parser.tab.cc:150
ORFZ_error
@ ORFZ_error
Definition
parser.tab.cc:136
orfz_parse
int orfz_parse(operations_research::fz::ParserContext *context, operations_research::fz::Model *model, bool *ok, void *scanner)
orfz_debug
int orfz_debug
parser_util.h
operations_research::fz::LexerInfo
Definition
parser_util.h:76
operations_research::fz::ParserContext
This is the context used during parsing.
Definition
parser_util.h:31
ortools
flatzinc
parser.tab.hh
Generated by
1.13.2