spot
0.9.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ltlparse
public.hh
Go to the documentation of this file.
1
// Copyright (C) 2010, 2011, 2012 Laboratoire de Recherche et
2
// Développement de l'Epita (LRDE).
3
// Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
4
// Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
5
// Université Pierre et Marie Curie.
6
//
7
// This file is part of Spot, a model checking library.
8
//
9
// Spot is free software; you can redistribute it and/or modify it
10
// under the terms of the GNU General Public License as published by
11
// the Free Software Foundation; either version 2 of the License, or
12
// (at your option) any later version.
13
//
14
// Spot is distributed in the hope that it will be useful, but WITHOUT
15
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17
// License for more details.
18
//
19
// You should have received a copy of the GNU General Public License
20
// along with Spot; see the file COPYING. If not, write to the Free
21
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
// 02111-1307, USA.
23
24
#ifndef SPOT_LTLPARSE_PUBLIC_HH
25
# define SPOT_LTLPARSE_PUBLIC_HH
26
27
# include "
ltlast/formula.hh
"
28
// Unfortunately Bison 2.3 uses the same guards in all parsers :(
29
# undef BISON_LOCATION_HH
30
# undef BISON_POSITION_HH
31
# include "ltlparse/location.hh"
32
# include "
ltlenv/defaultenv.hh
"
33
# include <string>
34
# include <list>
35
# include <utility>
36
# include <iosfwd>
37
38
namespace
spot
39
{
40
namespace
ltl
41
{
44
45
#ifndef SWIG
46
47
typedef
std::pair<ltlyy::location, std::string>
parse_error
;
49
typedef
std::list<parse_error>
parse_error_list
;
50
#else
51
// Turn parse_error_list into an opaque type for Swig.
52
struct
parse_error_list
{};
53
#endif
54
70
const
formula
*
parse
(
const
std::string& ltl_string,
71
parse_error_list
& error_list,
72
environment
& env =
default_environment::instance
(),
73
bool
debug =
false
);
74
90
const
formula
*
parse_sere
(
const
std::string& sere_string,
91
parse_error_list
& error_list,
92
environment
& env =
93
default_environment::instance
(),
94
bool
debug =
false
);
95
109
bool
format_parse_errors
(std::ostream& os,
110
const
std::string& input_string,
111
const
parse_error_list
& error_list);
112
136
void
137
fix_utf8_locations
(
const
std::string& ltl_string,
138
parse_error_list
& error_list);
139
141
}
142
}
143
144
#endif // SPOT_LTLPARSE_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
1.8.1.1