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:
parent
8c8c2f0b7c
commit
c12b2d63b3
6 changed files with 64 additions and 11 deletions
|
|
@ -65,6 +65,7 @@ identifier [[:alpha:]_][[:alnum:]_-]*
|
|||
"name:" return token::NAME;
|
||||
"properties:" return token::PROPERTIES;
|
||||
"--BODY--" return token::BODY;
|
||||
"--ABORT--" throw spot::hoa_abort{*yylloc};
|
||||
"--END--" return token::END;
|
||||
"State:" return token::STATE;
|
||||
[tf{}()\[\]&|!] return *yytext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue