hoa: store the automaton name as a property

* src/hoaparse/hoaparse.yy: Store the automaton name.
* src/tgbaalgos/hoa.cc: Output it if it exists.
* src/tgbatest/hoaparse.test: Adjust tests.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-09 16:00:10 +01:00
parent f37ff8407c
commit 5a1e38d90f
3 changed files with 10 additions and 2 deletions

View file

@ -359,7 +359,9 @@ header-item: "States:" INT
}
| "name:" STRING
{
delete $2;
res.h->aut->set_named_prop("automaton-name", $2, [](void* name) {
delete static_cast<std::string*>(name);
});
}
| "properties:" properties
| HEADERNAME header-spec