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.

29 lines
896 B

2 months ago
  1. #include "common.h"
  2. #include <carl-parser/Parser.h>
  3. #include <carl/formula/Formula.h>
  4. /**
  5. * The actual module definition
  6. */
  7. PYBIND11_MODULE(parse, m) {
  8. m.doc() = "pycarl parsing functions";
  9. // Constraint relies on Rational
  10. m.import("pycarl.core");
  11. py::enum_<carlparser::ParserReturnType>(m, "_ParserReturnType")
  12. .value("Rational", carlparser::ParserReturnType::Rational)
  13. .value("Variable", carlparser::ParserReturnType::Variable)
  14. .value("Monomial", carlparser::ParserReturnType::Monomial)
  15. .value("Term", carlparser::ParserReturnType::Term)
  16. .value("Polynomial", carlparser::ParserReturnType::Polynomial)
  17. .value("RationalFunction", carlparser::ParserReturnType::RationalFunction)
  18. .value("Constraint", carlparser::ParserReturnType::Constraint)
  19. .value("Formula", carlparser::ParserReturnType::Formula)
  20. ;
  21. }