python: add xargs support to translate() and postprocess()

Fixes #361.

* python/spot/__init__.py: Implement it.
* tests/python/optionmap.py: Test it.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2018-10-17 18:16:46 +02:00
parent b8e47fdc28
commit e0958ee7c6
3 changed files with 75 additions and 8 deletions

10
NEWS
View file

@ -18,6 +18,16 @@ New in spot 2.6.3.dev (not yet released)
- ltlfilt learned --liveness to match formulas representing liveness
properties.
Python:
- spot.translate() and spot.postprocess() now take an xargs=
argument similar to the -x option of ltl2tgba and autfilt, making
it easier to fine tune these operations. For instance
ltl2tgba 'GF(a <-> XXa)' --det -x gf-guarantee=0
would be written in Python as
spot.translate('GF(a <-> XXa)', 'det', xargs='gf-guarantee=0')
(Note: those extra options are documented in the spot-x(7) man page.)
Library:
- The LTL parser learned syntactic sugar for nested ranges of X