Browse Source

bindings for expression type

refactoring
sjunges 7 years ago
parent
commit
777a24f29e
  1. 6
      src/storage/expressions.cpp

6
src/storage/expressions.cpp

@ -38,4 +38,10 @@ void define_expressions(py::module& m) {
.def("__str__", &streamToString<storm::expressions::Expression>) .def("__str__", &streamToString<storm::expressions::Expression>)
; ;
py::class_<storm::expressions::Type>(m, "ExpressionType", "The type of an expression")
.def_property_readonly("is_boolean", &storm::expressions::Type::isBooleanType)
.def_property_readonly("is_integer", &storm::expressions::Type::isIntegerType)
.def_property_readonly("is_rational", &storm::expressions::Type::isRationalType)
.def("__str__", &storm::expressions::Type::getStringRepresentation);
} }
Loading…
Cancel
Save