20 #ifndef SPOT_ELTLPARSE_PUBLIC_HH
21 # define SPOT_ELTLPARSE_PUBLIC_HH
24 # include "ltlenv/defaultenv.hh"
26 # include "misc/location.hh"
42 typedef std::pair<std::string, std::string> spair;
96 #endif // SPOT_ELTLPARSE_PUBLIC_HH
NFA interface used by automatop.
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: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_string(const std::string &eltl_string, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false)
Build a formula from an ELTL string.
SPOT_API const formula * parse_file(const std::string &filename, parse_error_list &error_list, environment &env=default_environment::instance(), bool debug=false)
Build a formula from a text file.
static default_environment & instance()
Get the sole instance of spot::ltl::default_environment.