Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SPOT_LTLPARSE_PUBLIC_HH
00025 # define SPOT_LTLPARSE_PUBLIC_HH
00026
00027 # include "ltlast/formula.hh"
00028
00029 # undef BISON_LOCATION_HH
00030 # undef BISON_POSITION_HH
00031 # include "ltlparse/location.hh"
00032 # include "ltlenv/defaultenv.hh"
00033 # include <string>
00034 # include <list>
00035 # include <utility>
00036 # include <iosfwd>
00037
00038 namespace spot
00039 {
00040 namespace ltl
00041 {
00044
00045 #ifndef SWIG
00046
00047 typedef std::pair<ltlyy::location, std::string> parse_error;
00049 typedef std::list<parse_error> parse_error_list;
00050 #else
00051
00052 struct parse_error_list {};
00053 #endif
00054
00070 formula* parse(const std::string& ltl_string,
00071 parse_error_list& error_list,
00072 environment& env = default_environment::instance(),
00073 bool debug = false);
00074
00081 bool format_parse_errors(std::ostream& os,
00082 const std::string& ltl_string,
00083 parse_error_list& error_list);
00084
00086 }
00087 }
00088
00089 #endif // SPOT_LTLPARSE_PUBLIC_HH