bin: use regexes to detect shorthands, and add support for owl-21.0

Fixes #480.

* bin/common_trans.cc (shorthands_ltl, shorthands_autproc): Write
those lists using regexes.  Add entries for Owl 21.0.
(show_shorthands, tool_spec): Adjust to use those regexes.
* doc/org/autcross.org, doc/org/ltlcross.org, doc/org/ltldo.org:
Update the list of shorthands.
* tests/core/ltldo.test: Add a couple of tests.
* NEWS: Mention this new feature.
This commit is contained in:
Alexandre Duret-Lutz 2021-11-04 14:12:32 +01:00
parent 97046ea263
commit f99ddef787
6 changed files with 90 additions and 76 deletions

6
NEWS
View file

@ -56,6 +56,12 @@ New in spot 2.9.8.dev (not yet released)
- autfilt learned a --kill-states=NUM[,NUM...] option.
- ltlcross, autcross, ltldo have learned shorthands for
the commands of Owl 21.0. For instance running
ltlcross 'owl-21 ltl2nba' ...
is equivalent to running
ltlcross '{owl-21 ltl2nba}owl-21 ltl2nba -f %f>%O' ...
Library:
- Spot now provides convenient function to create and solve games.
The functions are located in twaalgos/game.hh. Additional