spot  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
public.hh
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 # include "misc/location.hh"
28 # include "ltlenv/defaultenv.hh"
29 # include <string>
30 # include <list>
31 # include <utility>
32 # include <iosfwd>
33 
34 namespace spot
35 {
36  namespace ltl
37  {
40 
41 #ifndef SWIG
42  typedef std::pair<location, std::string> parse_error;
45  typedef std::list<parse_error> parse_error_list;
46 #else
47  // Turn parse_error_list into an opaque type for Swig.
48  struct parse_error_list {};
49 #endif
50 
69  SPOT_API
70  const formula* parse(const std::string& ltl_string,
71  parse_error_list& error_list,
73  bool debug = false,
74  bool lenient = false);
75 
94  SPOT_API
95  const formula* parse_boolean(const std::string& ltl_string,
96  parse_error_list& error_list,
97  environment& env =
99  bool debug = false,
100  bool lenient = false);
101 
121  SPOT_API
122  const formula* parse_lbt(const std::string& ltl_string,
123  parse_error_list& error_list,
125  bool debug = false);
126 
145  SPOT_API
146  const formula* parse_sere(const std::string& sere_string,
147  parse_error_list& error_list,
148  environment& env =
150  bool debug = false,
151  bool lenient = false);
152 
166  SPOT_API
167  bool format_parse_errors(std::ostream& os,
168  const std::string& input_string,
169  const parse_error_list& error_list);
170 
194  SPOT_API
195  void
196  fix_utf8_locations(const std::string& input_string,
197  parse_error_list& error_list);
198 
200  }
201 }
202 
203 #endif // SPOT_LTLPARSE_PUBLIC_HH

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Sat Dec 6 2014 12:28:43 for spot by doxygen 1.8.4