acc_code: parse from the constructor
* spot/twa/acc.hh, spot/twa/acc.cc (parse_acc_code): Rename as... (acc_cond::acc_code): ... this, making it a lot easier to build acceptance conditions from strings. * NEWS: Mention the change. * spot/twaalgos/dtwasat.cc, spot/bin/randaut.cc, spot/tests/acc.cc: Adjust. * wrap/python/tests/acc_cond.ipynb, wrap/python/tests/accparse.ipynb, wrap/python/tests/accparse2.py: Simplify, but not completely to exercise all variants. * wrap/python/spot_impl.i: Make acc_code's constructor implicit.
This commit is contained in:
parent
d0b29051b2
commit
df1ef302e8
10 changed files with 189 additions and 133 deletions
3
NEWS
3
NEWS
|
|
@ -48,10 +48,11 @@ New in spot 1.99.6a (not yet released)
|
|||
acc_cond::cap(l, r) -> use l & r
|
||||
acc_cond::set_minus(l, r) -> use l - r
|
||||
|
||||
Additionally, the following methods have been renamed:
|
||||
Additionally, the following methods/functions have been renamed:
|
||||
|
||||
acc_cond::is_tt() -> acc_cond::is_t()
|
||||
acc_cond::is_ff() -> acc_cond::is_f()
|
||||
parse_acc_code() -> acc_cond::acc_code(...)
|
||||
|
||||
Python:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue