spot  1.0.2
public.hh
Go to the documentation of this file.
1 // -*- coding: utf-8 -*-
2 // Copyright (C) 2010, 2011, 2012, 2013 Laboratoire de Recherche et
3 // Développement de l'Epita (LRDE).
4 // Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
5 // Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
6 // 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_LTLPARSE_PUBLIC_HH
24 # define SPOT_LTLPARSE_PUBLIC_HH
25 
26 # include "ltlast/formula.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 "ltlparse/location.hh"
31 # include "ltlenv/defaultenv.hh"
32 # include <string>
33 # include <list>
34 # include <utility>
35 # include <iosfwd>
36 
37 namespace spot
38 {
39  namespace ltl
40  {
43 
44 #ifndef SWIG
45 
46  typedef std::pair<ltlyy::location, std::string> parse_error;
48  typedef std::list<parse_error> parse_error_list;
49 #else
50  // Turn parse_error_list into an opaque type for Swig.
51  struct parse_error_list {};
52 #endif
53 
72  const formula* parse(const std::string& ltl_string,
73  parse_error_list& error_list,
75  bool debug = false,
76  bool lenient = false);
77 
96  const formula* parse_boolean(const std::string& ltl_string,
97  parse_error_list& error_list,
98  environment& env =
100  bool debug = false,
101  bool lenient = false);
102 
122  const formula* parse_lbt(const std::string& ltl_string,
123  parse_error_list& error_list,
125  bool debug = false);
126 
145  const formula* parse_sere(const std::string& sere_string,
146  parse_error_list& error_list,
147  environment& env =
149  bool debug = false,
150  bool lenient = false);
151 
165  bool format_parse_errors(std::ostream& os,
166  const std::string& input_string,
167  const parse_error_list& error_list);
168 
192  void
193  fix_utf8_locations(const std::string& input_string,
194  parse_error_list& error_list);
195 
197  }
198 }
199 
200 #endif // SPOT_LTLPARSE_PUBLIC_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Mar 6 2013 09:25:14 for spot by doxygen 1.8.1.2