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
53extern 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"
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 "parser.tab.hh"
73
74/* Token kinds. */
75#ifndef ORFZ_TOKENTYPE
76# define ORFZ_TOKENTYPE
78 {
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 };
104#endif
105
106/* Value type. */
107
108
109
110
112
113
114#endif /* !YY_ORFZ_PARSER_TAB_HH_INCLUDED */
#define YYSTYPE
Definition parser.tab.cc:67
enum orfz_tokentype orfz_token_kind_t
orfz_tokentype
Definition parser.tab.hh:78
@ TOKEN_FLOAT
Definition parser.tab.hh:86
@ ARRAY
Definition parser.tab.hh:83
@ MINIMIZE
Definition parser.tab.hh:89
@ MAXIMIZE
Definition parser.tab.hh:88
@ SVALUE
Definition parser.tab.hh:99
@ CONSTRAINT
Definition parser.tab.hh:85
@ ORFZ_UNDEF
Definition parser.tab.hh:82
@ OF
Definition parser.tab.hh:90
@ IDENTIFIER
@ IVALUE
Definition parser.tab.hh:98
@ TOKEN_INT
Definition parser.tab.hh:87
@ PREDICATE
Definition parser.tab.hh:91
@ DOTDOT
Definition parser.tab.hh:96
@ ORFZ_EMPTY
Definition parser.tab.hh:79
@ SET
Definition parser.tab.hh:93
@ SOLVE
Definition parser.tab.hh:94
@ COLONCOLON
Definition parser.tab.hh:97
@ SATISFY
Definition parser.tab.hh:92
@ ORFZ_EOF
Definition parser.tab.hh:80
@ DVALUE
@ TOKEN_BOOL
Definition parser.tab.hh:84
@ VAR
Definition parser.tab.hh:95
@ ORFZ_error
Definition parser.tab.hh:81
int orfz_parse(operations_research::fz::ParserContext *context, operations_research::fz::Model *model, bool *ok, void *scanner)
int orfz_debug