* src/ltlparse/public.hh (format_parse_errors): New function.
* src/ltlparse/fmterror.cc: New file. * src/ltlparse/Makefile.am (libltlparse_a_SOURCES): Add fmterror.cc. * src/ltltests/equals.cc, src/ltltests/readltl.cc: Simplify using format_parse_errors.
This commit is contained in:
parent
7425f4a91e
commit
532f9131f5
6 changed files with 52 additions and 41 deletions
|
|
@ -6,6 +6,7 @@
|
|||
# include "location.hh"
|
||||
# include <list>
|
||||
# include <utility>
|
||||
# include <iostream>
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
|
@ -18,6 +19,11 @@ namespace spot
|
|||
formulae* parse(const std::string& ltl_string,
|
||||
parse_error_list& error_list,
|
||||
bool debug = false);
|
||||
|
||||
// Return true iff any diagnostic was output to os.
|
||||
bool format_parse_errors(std::ostream& os,
|
||||
const std::string& ltl_string,
|
||||
parse_error_list& error_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue