hoa: add support for --ABORT--

* src/hoaparse/parsedecl.hh (hoa_abort): New structure.
* src/hoaparse/hoascan.ll: Throw hoa_abort on --ABORT--.
* src/hoaparse/hoaparse.yy: Deal with this exception.
* src/hoaparse/public.hh: Add a boolean flag to mark aborted automata.
* src/bin/autfilt.cc: Report aborted automata.
* src/tgbatest/hoaparse.test: Add test case.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-21 15:03:11 +01:00
parent 8c8c2f0b7c
commit c12b2d63b3
6 changed files with 64 additions and 11 deletions

View file

@ -34,6 +34,12 @@ namespace spot
{
int hoayyopen(const std::string& name);
void hoayyclose();
// This exception is thrown by the lexer when it reads "--ABORT--".
struct hoa_abort
{
spot::location pos;
};
}
#endif // SPOT_HOAPARSE_PARSEDECL_HH