File: parser.h

package info (click to toggle)
mpsolve 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,100 kB
  • sloc: ansic: 25,748; sh: 4,925; cpp: 3,155; makefile: 914; python: 407; yacc: 158; lex: 85; xml: 41
file content (32 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * This file is part of MPSolve 3.2.2
 *
 * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
 * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
 *
 * Authors:
 *   Leonardo Robol <leonardo.robol@unipi.it>
 */

/**
 * @file
 * @brief Generic parsers for common polynomial types.
 */

#ifndef MPS_PARSER_H_
#define MPS_PARSER_H_

MPS_BEGIN_DECLS

mps_polynomial * mps_parse_stream (mps_context * s, FILE * input_stream);
mps_polynomial * mps_parse_file (mps_context * s, const char * path);
mps_polynomial * mps_parse_string (mps_context * s, const char * c_string);

mps_polynomial * mps_parse_inline_poly (mps_context * ctx, FILE * stream);
mps_polynomial * mps_parse_inline_poly_from_string (mps_context * ctx, const char * input);


MPS_END_DECLS

#endif /* MPS_PARSER_H_ */