python: read automata from pipes
* src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll, src/hoaparse/parsedecl.hh, src/hoaparse/public.hh: Add a way to read automata from a file descriptor. * wrap/python/spot.py: Add machinery to read from pipes. * wrap/python/tests/piperead.ipynb: New file. * wrap/python/tests/Makefile.am: Add it. * wrap/python/tests/run.in: Setup PATH.
This commit is contained in:
parent
af8e7d62de
commit
961d005b84
8 changed files with 603 additions and 8 deletions
|
|
@ -1620,6 +1620,15 @@ namespace spot
|
|||
throw std::runtime_error(std::string("Cannot open file ") + name);
|
||||
}
|
||||
|
||||
hoa_stream_parser::hoa_stream_parser(int fd,
|
||||
const std::string& name,
|
||||
bool ignore_abort)
|
||||
: filename_(name), ignore_abort_(ignore_abort)
|
||||
{
|
||||
if (hoayyopen(fd))
|
||||
throw std::runtime_error(std::string("Cannot open file ") + name);
|
||||
}
|
||||
|
||||
hoa_stream_parser::~hoa_stream_parser()
|
||||
{
|
||||
hoayyclose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue