23 #ifndef SPOT_LTLPARSE_PUBLIC_HH
24 # define SPOT_LTLPARSE_PUBLIC_HH
27 # include "misc/location.hh"
28 # include "ltlenv/defaultenv.hh"
42 typedef std::pair<location, std::string>
parse_error;
48 struct parse_error_list {};
71 parse_error_list& error_list,
74 bool lenient =
false);
96 parse_error_list& error_list,
100 bool lenient =
false);
123 parse_error_list& error_list,
147 parse_error_list& error_list,
151 bool lenient =
false);
168 const std::string& input_string,
169 const parse_error_list& error_list);
197 parse_error_list& error_list);
203 #endif // SPOT_LTLPARSE_PUBLIC_HH
SPOT_API void fix_utf8_locations(const std::string &input_string, parse_error_list &error_list)
Fix location of diagnostics assuming the input is utf8.
this class acts like a wrapper to the C code of the open_set.
Definition: public.hh:32
SPOT_API const formula * parse_boolean(const std::string <l_string, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false, bool lenient=false)
Build a Boolean formula from a string.
SPOT_API const formula * parse(const std::string <l_string, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false, bool lenient=false)
Build a formula from an LTL string.
SPOT_API bool format_parse_errors(std::ostream &os, const std::string &input_string, const parse_error_list &error_list)
Format diagnostics produced by spot::ltl::parse or spot::ltl::ratexp.
std::list< parse_error > parse_error_list
A list of parser diagnostics, as filled by parse.
Definition: public.hh:45
SPOT_API const formula * parse_sere(const std::string &sere_string, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false, bool lenient=false)
Build a formula from a string representing a SERE.
An environment that describes atomic propositions.
Definition: environment.hh:34
SPOT_API const formula * parse_lbt(const std::string <l_string, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false)
Build a formula from an LTL string in LBT's format.
std::pair< location, std::string > parse_error
A parse diagnostic with its location.
Definition: public.hh:43
static default_environment & instance()
Get the sole instance of spot::ltl::default_environment.