spot  0.9.1
public.hh
Go to the documentation of this file.
00001 // Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et
00002 // Développement de l'Epita (LRDE).
00003 // Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
00004 // Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
00005 // Université Pierre et Marie Curie.
00006 //
00007 // This file is part of Spot, a model checking library.
00008 //
00009 // Spot is free software; you can redistribute it and/or modify it
00010 // under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 2 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // Spot is distributed in the hope that it will be useful, but WITHOUT
00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016 // or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00017 // License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with Spot; see the file COPYING.  If not, write to the Free
00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022 // 02111-1307, USA.
00023 
00024 #ifndef SPOT_LTLPARSE_PUBLIC_HH
00025 # define SPOT_LTLPARSE_PUBLIC_HH
00026 
00027 # include "ltlast/formula.hh"
00028 // Unfortunately Bison 2.3 uses the same guards in all parsers :(
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     // Turn parse_error_list into an opaque type for Swig.
00052     struct parse_error_list {};
00053 #endif
00054 
00070     const formula* parse(const std::string& ltl_string,
00071                          parse_error_list& error_list,
00072                          environment& env = default_environment::instance(),
00073                          bool debug = false);
00074 
00090     const formula* parse_sere(const std::string& sere_string,
00091                               parse_error_list& error_list,
00092                               environment& env =
00093                               default_environment::instance(),
00094                               bool debug = false);
00095 
00109     bool format_parse_errors(std::ostream& os,
00110                              const std::string& input_string,
00111                              const parse_error_list& error_list);
00112 
00136     void
00137     fix_utf8_locations(const std::string& ltl_string,
00138                        parse_error_list& error_list);
00139 
00141   }
00142 }
00143 
00144 #endif // SPOT_LTLPARSE_PUBLIC_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed May 23 2012 12:06:45 for spot by doxygen 1.7.6.1