spot  1.0.1
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 3 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 this program. If not, see <http://www.gnu.org/licenses/>.
22 
23 #ifndef SPOT_TGBAPARSE_PUBLIC_HH
24 # define SPOT_TGBAPARSE_PUBLIC_HH
25 
26 # include "tgba/tgbaexplicit.hh"
27 // Unfortunately Bison 2.3 uses the same guards in all parsers :(
28 # undef BISON_LOCATION_HH
29 # undef BISON_POSITION_HH
30 # include "tgbaparse/location.hh"
31 # include "ltlenv/defaultenv.hh"
32 # include <string>
33 # include <list>
34 # include <utility>
35 # include <iosfwd>
36 
37 namespace spot
38 {
41 
42 #ifndef SWIG
43 
44  typedef std::pair<tgbayy::location, std::string> tgba_parse_error;
46  typedef std::list<tgba_parse_error> tgba_parse_error_list;
47 #else
48  // Turn parse_error_list into an opaque type for Swig.
49  struct tgba_parse_error_list {};
50 #endif
51 
71  tgba_explicit_string* tgba_parse(const std::string& filename,
72  tgba_parse_error_list& error_list,
73  bdd_dict* dict,
74  ltl::environment& env
76  ltl::environment& envacc
78  bool debug = false);
79 
86  bool format_tgba_parse_errors(std::ostream& os,
87  const std::string& filename,
88  tgba_parse_error_list& error_list);
89 
91 }
92 
93 #endif // SPOT_TGBAPARSE_PUBLIC_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Jan 23 2013 15:00:00 for spot by doxygen 1.8.1.2