python: fix spot.py script for new acceptance interface

* wrap/python/ajax/spot.in: Adjust to the new interface.
* wrap/python/spot.i: Work around missing support for nested classes.
* wrap/python/tests/ltl2tgba.py, wrap/python/tests/ltl2tgba.test: More
test.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-27 19:09:06 +01:00
parent c494a347c9
commit 10c4a92ddb
4 changed files with 30 additions and 6 deletions

View file

@ -105,6 +105,7 @@ namespace std {
#include "tgba/bddprint.hh"
#include "tgba/fwd.hh"
#include "tgba/acc.hh"
#include "tgba/tgba.hh"
#include "tgba/taatgba.hh"
#include "tgba/tgbaproduct.hh"
@ -226,6 +227,8 @@ using namespace spot;
#define ltl spot::ltl
%include "tgba/bddprint.hh"
%include "tgba/fwd.hh"
%feature("flatnested") spot::acc_cond::mark_t;
%include "tgba/acc.hh"
%include "tgba/tgba.hh"
%include "tgba/taatgba.hh"
%include "tgba/tgbaproduct.hh"
@ -359,6 +362,15 @@ empty_tgba_parse_error_list()
return l;
}
spot::tgba_digraph_ptr
ensure_digraph(const spot::tgba_ptr& a)
{
auto aa = std::dynamic_pointer_cast<spot::tgba_digraph>(a);
if (aa)
return aa;
return spot::make_tgba_digraph(a);
}
std::ostream&
get_cout()
{