The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
#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) ;
}
|