22 #include "twa/twagraph.hh"
23 #include "misc/location.hh"
24 #include "ltlenv/defaultenv.hh"
29 #include <misc/bitvect.hh>
43 struct parse_aut_error_list {};
57 typedef std::shared_ptr<parsed_aut> parsed_aut_ptr;
58 typedef std::shared_ptr<const parsed_aut> const_parsed_aut_ptr;
62 spot::location last_loc;
63 std::string filename_;
67 bool ignore_abort =
false);
71 bool ignore_abort =
false);
74 const std::string& filename,
75 bool ignore_abort =
false);
77 parsed_aut_ptr parse(parse_aut_error_list& error_list,
78 const bdd_dict_ptr& dict,
83 twa_graph_ptr parse_strict(
const bdd_dict_ptr& dict,
116 inline parsed_aut_ptr
118 parse_aut_error_list& error_list,
119 const bdd_dict_ptr& dict,
126 return p.parse(error_list, dict, env, debug);
128 catch (std::runtime_error& e)
130 error_list.emplace_back(spot::location(), e.what());
143 const std::string& filename,
144 parse_aut_error_list& error_list);
std::pair< spot::location, std::string > parse_aut_error
A parse diagnostic with its location.
Definition: public.hh:38
Temporary encoding of an omega automaton produced by the parser.
Definition: public.hh:48
SPOT_API bool format_parse_aut_errors(std::ostream &os, const std::string &filename, parse_aut_error_list &error_list)
Format diagnostics produced by spot::parse_aut.
std::list< parse_aut_error > parse_aut_error_list
A list of parser diagnostics, as filled by parse.
Definition: public.hh:40
parsed_aut_ptr parse_aut(const std::string &filename, parse_aut_error_list &error_list, const bdd_dict_ptr &dict, ltl::environment &env=ltl::default_environment::instance(), bool debug=false)
Build a spot::twa_graph from a HOA file or a neverclaim.
Definition: public.hh:117
An environment that describes atomic propositions.
Definition: environment.hh:34
static default_environment & instance()
Get the sole instance of spot::ltl::default_environment.