spot  0.9.2
public.hh
Go to the documentation of this file.
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2009, 2012 Laboratoire de Recherche et Développement
3 // de l'Epita.
4 // Copyright (C) 2003, 2004, 2005, 2006 Laboratoire
5 // d'Informatique de Paris 6 (LIP6), département Systèmes Répartis
6 // Coopératifs (SRC), Université Pierre et Marie Curie.
7 //
8 // This file is part of Spot, a model checking library.
9 //
10 // Spot is free software; you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 2 of the License, or
13 // (at your option) any later version.
14 //
15 // Spot is distributed in the hope that it will be useful, but WITHOUT
16 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 // License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Spot; see the file COPYING. If not, write to the Free
22 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 // 02111-1307, USA.
24 
25 #ifndef SPOT_TGBAPARSE_PUBLIC_HH
26 # define SPOT_TGBAPARSE_PUBLIC_HH
27 
28 # include "tgba/tgbaexplicit.hh"
29 // Unfortunately Bison 2.3 uses the same guards in all parsers :(
30 # undef BISON_LOCATION_HH
31 # undef BISON_POSITION_HH
32 # include "tgbaparse/location.hh"
33 # include "ltlenv/defaultenv.hh"
34 # include <string>
35 # include <list>
36 # include <utility>
37 # include <iosfwd>
38 
39 namespace spot
40 {
43 
44 #ifndef SWIG
45 
46  typedef std::pair<tgbayy::location, std::string> tgba_parse_error;
48  typedef std::list<tgba_parse_error> tgba_parse_error_list;
49 #else
50  // Turn parse_error_list into an opaque type for Swig.
51  struct tgba_parse_error_list {};
52 #endif
53 
73  tgba_explicit_string* tgba_parse(const std::string& filename,
74  tgba_parse_error_list& error_list,
75  bdd_dict* dict,
76  ltl::environment& env
78  ltl::environment& envacc
80  bool debug = false);
81 
88  bool format_tgba_parse_errors(std::ostream& os,
89  const std::string& filename,
90  tgba_parse_error_list& error_list);
91 
93 }
94 
95 #endif // SPOT_TGBAPARSE_PUBLIC_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jul 2 2012 17:35:47 for spot by doxygen 1.8.1.1