Google OR-Tools
v9.15
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_PARSER_TAB_HH_INCLUDED
39
# define YY_ORFZ_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 0
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 32 "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 "parser.tab.hh"
73
74
/* Token kinds. */
75
#ifndef ORFZ_TOKENTYPE
76
# define ORFZ_TOKENTYPE
77
enum
orfz_tokentype
78
{
79
ORFZ_EMPTY
= -2,
80
ORFZ_EOF
= 0,
/* "end of file" */
81
ORFZ_error
= 256,
/* error */
82
ORFZ_UNDEF
= 257,
/* "invalid token" */
83
ARRAY
= 258,
/* ARRAY */
84
TOKEN_BOOL
= 259,
/* TOKEN_BOOL */
85
CONSTRAINT
= 260,
/* CONSTRAINT */
86
TOKEN_FLOAT
= 261,
/* TOKEN_FLOAT */
87
TOKEN_INT
= 262,
/* TOKEN_INT */
88
MAXIMIZE
= 263,
/* MAXIMIZE */
89
MINIMIZE
= 264,
/* MINIMIZE */
90
OF
= 265,
/* OF */
91
PREDICATE
= 266,
/* PREDICATE */
92
SATISFY
= 267,
/* SATISFY */
93
SET
= 268,
/* SET */
94
SOLVE
= 269,
/* SOLVE */
95
VAR
= 270,
/* VAR */
96
DOTDOT
= 271,
/* DOTDOT */
97
COLONCOLON
= 272,
/* COLONCOLON */
98
IVALUE
= 273,
/* IVALUE */
99
SVALUE
= 274,
/* SVALUE */
100
IDENTIFIER
= 275,
/* IDENTIFIER */
101
DVALUE
= 276
/* DVALUE */
102
};
103
typedef
enum
orfz_tokentype
orfz_token_kind_t
;
104
#endif
105
106
/* Value type. */
107
108
109
110
111
int
orfz_parse
(
operations_research::fz::ParserContext
* context,
operations_research::fz::Model
* model,
bool
* ok,
void
* scanner);
112
113
114
#endif
/* !YY_ORFZ_PARSER_TAB_HH_INCLUDED */
operations_research::fz::Model
Definition
model.h:345
YYSTYPE
#define YYSTYPE
Definition
parser.tab.cc:67
orfz_token_kind_t
enum orfz_tokentype orfz_token_kind_t
Definition
parser.tab.hh:103
orfz_tokentype
orfz_tokentype
Definition
parser.tab.hh:78
TOKEN_FLOAT
@ TOKEN_FLOAT
Definition
parser.tab.hh:86
ARRAY
@ ARRAY
Definition
parser.tab.hh:83
MINIMIZE
@ MINIMIZE
Definition
parser.tab.hh:89
MAXIMIZE
@ MAXIMIZE
Definition
parser.tab.hh:88
SVALUE
@ SVALUE
Definition
parser.tab.hh:99
CONSTRAINT
@ CONSTRAINT
Definition
parser.tab.hh:85
ORFZ_UNDEF
@ ORFZ_UNDEF
Definition
parser.tab.hh:82
OF
@ OF
Definition
parser.tab.hh:90
IDENTIFIER
@ IDENTIFIER
Definition
parser.tab.hh:100
IVALUE
@ IVALUE
Definition
parser.tab.hh:98
TOKEN_INT
@ TOKEN_INT
Definition
parser.tab.hh:87
PREDICATE
@ PREDICATE
Definition
parser.tab.hh:91
DOTDOT
@ DOTDOT
Definition
parser.tab.hh:96
ORFZ_EMPTY
@ ORFZ_EMPTY
Definition
parser.tab.hh:79
SET
@ SET
Definition
parser.tab.hh:93
SOLVE
@ SOLVE
Definition
parser.tab.hh:94
COLONCOLON
@ COLONCOLON
Definition
parser.tab.hh:97
SATISFY
@ SATISFY
Definition
parser.tab.hh:92
ORFZ_EOF
@ ORFZ_EOF
Definition
parser.tab.hh:80
DVALUE
@ DVALUE
Definition
parser.tab.hh:101
TOKEN_BOOL
@ TOKEN_BOOL
Definition
parser.tab.hh:84
VAR
@ VAR
Definition
parser.tab.hh:95
ORFZ_error
@ ORFZ_error
Definition
parser.tab.hh:81
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:86
operations_research::fz::ParserContext
Definition
parser_util.h:30
ortools
flatzinc
parser.tab.hh
Generated by
1.15.0