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;
74 bool lenient =
false);
100 bool lenient =
false);
151 bool lenient =
false);
168 const std::string& input_string,
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.
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.
std::pair< spot::location, spair > parse_error
A parse diagnostic <location, <file, message>>.
Definition: public.hh:44
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.
std::list< parse_error > parse_error_list
A list of parser diagnostics, as filled by parse.
Definition: public.hh:46
SPOT_API bool format_parse_errors(std::ostream &os, parse_error_list &error_list)
Format diagnostics produced by spot::eltl::parse.
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.
static default_environment & instance()
Get the sole instance of spot::ltl::default_environment.