Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
3699e6cd
Commit
3699e6cd
authored
Mar 03, 2017
by
Alexandre Duret-Lutz
Browse files
doc: simplify a C++ example
* doc/org/tut10.org: Remove a couple of useless includes.
parent
bb23ea99
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/org/tut10.org
View file @
3699e6cd
...
...
@@ -128,17 +128,14 @@ various preferences (like small or deterministic) or characteristic
output as a never claim is done via the =print_never_claim= function.
#+BEGIN_SRC C++ :results verbatim :exports both
#include <string>
#include <iostream>
#include <spot/tl/parse.hh>
#include <spot/tl/print.hh>
#include <spot/twaalgos/translate.hh>
#include <spot/twaalgos/neverclaim.hh>
int main()
{
std::string input = "[]<>p0 || <>[]p1";
spot::parsed_formula pf = spot::parse_infix_psl(input);
spot::parsed_formula pf = spot::parse_infix_psl("[]<>p0 || <>[]p1");
if (pf.format_errors(std::cerr))
return 1;
spot::translator trans;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment