You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
896 B
29 lines
896 B
|
|
#include "common.h"
|
|
|
|
|
|
#include <carl-parser/Parser.h>
|
|
#include <carl/formula/Formula.h>
|
|
|
|
/**
|
|
* The actual module definition
|
|
*/
|
|
PYBIND11_MODULE(parse, m) {
|
|
m.doc() = "pycarl parsing functions";
|
|
|
|
// Constraint relies on Rational
|
|
m.import("pycarl.core");
|
|
|
|
|
|
py::enum_<carlparser::ParserReturnType>(m, "_ParserReturnType")
|
|
.value("Rational", carlparser::ParserReturnType::Rational)
|
|
.value("Variable", carlparser::ParserReturnType::Variable)
|
|
.value("Monomial", carlparser::ParserReturnType::Monomial)
|
|
.value("Term", carlparser::ParserReturnType::Term)
|
|
.value("Polynomial", carlparser::ParserReturnType::Polynomial)
|
|
.value("RationalFunction", carlparser::ParserReturnType::RationalFunction)
|
|
.value("Constraint", carlparser::ParserReturnType::Constraint)
|
|
.value("Formula", carlparser::ParserReturnType::Formula)
|
|
;
|
|
|
|
}
|