00001 // Copyright (C) 2010 Laboratoire de Recherche et Développement de 00002 // l'Epita (LRDE). 00003 // 00004 // This file is part of Spot, a model checking library. 00005 // 00006 // Spot is free software; you can redistribute it and/or modify it 00007 // under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // Spot is distributed in the hope that it will be useful, but WITHOUT 00012 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00013 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00014 // License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with Spot; see the file COPYING. If not, write to the Free 00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00019 // 02111-1307, USA. 00020 00021 #ifndef SPOT_NEVERPARSE_PUBLIC_HH 00022 # define SPOT_NEVERPARSE_PUBLIC_HH 00023 00024 # include "tgba/tgbaexplicit.hh" 00025 // Unfortunately Bison 2.3 uses the same guards in all parsers :( 00026 # undef BISON_LOCATION_HH 00027 # undef BISON_POSITION_HH 00028 # include "neverparse/location.hh" 00029 # include "ltlenv/defaultenv.hh" 00030 # include <string> 00031 # include <list> 00032 # include <utility> 00033 # include <iosfwd> 00034 00035 namespace spot 00036 { 00039 00041 typedef std::pair<neverclaimyy::location, std::string> neverclaim_parse_error; 00043 typedef std::list<neverclaim_parse_error> neverclaim_parse_error_list; 00044 00062 tgba_explicit_string* neverclaim_parse( 00063 const std::string& filename, 00064 neverclaim_parse_error_list& 00065 error_list, 00066 bdd_dict* dict, 00067 ltl::environment& env 00068 = ltl::default_environment::instance(), 00069 bool debug = false); 00070 00077 bool format_neverclaim_parse_errors(std::ostream& os, 00078 const std::string& filename, 00079 neverclaim_parse_error_list& error_list); 00081 } 00082 00083 #endif // SPOT_NEVERCLAIMPARSE_PUBLIC_HH