python: implement formula.__format__
Fixes #105. * src/bin/common_trans.cc (quote_shell_string): Move ... * src/misc/escape.cc, src/misc/escape.hh (quote_shell_string): ... here. * wrap/python/spot_impl.i: Wrap escape.hh. * wrap/python/spot.py: Implement formula.__format__. * wrap/python/tests/ltlsimple.py: Test it. * NEWS, doc/org/tut01.org, wrap/python/tests/formulas.ipynb: Document it.
This commit is contained in:
parent
20bb171904
commit
5bfd0267e7
9 changed files with 364 additions and 67 deletions
|
|
@ -79,6 +79,7 @@
|
|||
#include "misc/minato.hh"
|
||||
#include "misc/optionmap.hh"
|
||||
#include "misc/random.hh"
|
||||
#include "misc/escape.hh"
|
||||
|
||||
#include "tl/formula.hh"
|
||||
|
||||
|
|
@ -215,6 +216,7 @@ using namespace spot;
|
|||
%include "misc/minato.hh"
|
||||
%include "misc/optionmap.hh"
|
||||
%include "misc/random.hh"
|
||||
%include "misc/escape.hh"
|
||||
|
||||
%implicitconv std::vector<spot::formula>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue