hoaparse: also accept LBTT input
This is probably the worse grammar I wrote: the LBTT format is designed to be scanned with scanf, and very inconvenient to parse with bison/flex. Here the scanner basically has to emulate a parser to classify the different INTs as tokens with different types. * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll: Add rules for LBTT. * src/hoaparse/parsedecl.hh: Add a way to reset the parser between each automata. * src/tgbatest/hoaparse.test, src/tgbatest/lbttparse.test: Add more tests.
This commit is contained in:
parent
e4158c21ee
commit
6eb2b06fa7
5 changed files with 340 additions and 72 deletions
|
|
@ -32,6 +32,7 @@ YY_DECL;
|
|||
|
||||
namespace spot
|
||||
{
|
||||
void hoayyreset();
|
||||
int hoayyopen(const std::string& name);
|
||||
void hoayyclose();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue