Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
parser.cc File Reference
#include "ortools/flatzinc/parser.h"
#include <cstdio>
#include <string>
#include "ortools/base/logging.h"
#include "ortools/flatzinc/model.h"
#include "ortools/flatzinc/parser.tab.hh"
#include "ortools/flatzinc/parser_util.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::fz
 

Functions

int orfz_parse (operations_research::fz::ParserContext *parser, operations_research::fz::Model *model, bool *ok, void *scanner)
 Declare external functions in the flatzinc.tab.cc generated file.
 
int orfz_lex_init (void **scanner)
 
int orfz_lex_destroy (void *scanner)
 
void orfz_set_in (FILE *in_str, void *yyscanner)
 
yy_buffer_stateorfz__scan_bytes (const char *input, int size, void *scanner)
 
void orfz__delete_buffer (yy_buffer_state *b, void *scanner)
 
bool operations_research::fz::ParseFlatzincFile (const std::string &filename, Model *model)
 --— public parsing API --—
 
bool operations_research::fz::ParseFlatzincString (const std::string &input, Model *model)
 

Function Documentation

◆ orfz__delete_buffer()

void orfz__delete_buffer ( yy_buffer_state * b,
void * scanner )
extern

◆ orfz__scan_bytes()

yy_buffer_state * orfz__scan_bytes ( const char * input,
int size,
void * scanner )
extern

◆ orfz_lex_destroy()

int orfz_lex_destroy ( void * scanner)
extern

◆ orfz_lex_init()

int orfz_lex_init ( void ** scanner)
extern

◆ orfz_parse()

int orfz_parse ( operations_research::fz::ParserContext * parser,
operations_research::fz::Model * model,
bool * ok,
void * scanner )
extern

Declare external functions in the flatzinc.tab.cc generated file.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ orfz_set_in()

void orfz_set_in ( FILE * in_str,
void * yyscanner )
extern