xo-pyexpression: + lambda getters .type_str .n_arg
This commit is contained in:
parent
ac2c0a7f26
commit
abd33daec0
1 changed files with 2 additions and 0 deletions
|
|
@ -143,8 +143,10 @@ namespace xo {
|
|||
|
||||
py::class_<Lambda, Expression, rp<Lambda>>(m, "Lambda")
|
||||
.def_property_readonly("name", &Lambda::name, py::doc("lambda name (maybe automatically generated?)"))
|
||||
.def_property_readonly("type_str", &Lambda::type_str, py::doc("string specifying lambda type. e.g. \"double(double,double)\""))
|
||||
.def_property_readonly("argv", &Lambda::argv, py::doc("lambda formal parameters"))
|
||||
.def_property_readonly("body", &Lambda::body, py::doc("lambda body expression"))
|
||||
.def_property_readonly("n_arg", &Lambda::n_arg, py::doc("number of format parameters to this lambda function"))
|
||||
;
|
||||
|
||||
m.def("make_lambda", &make_lambda);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue