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:
parent
f37ff8407c
commit
5a1e38d90f
3 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue