]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/example/qi/display_attribute_type.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / spirit / example / qi / display_attribute_type.cpp
1 // Copyright (c) 2001-2010 Hartmut Kaiser
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // This example implements a simple utility allowing to print the attribute
7 // type as it is exposed by an arbitrary Qi parser expression. Just insert
8 // your expression below, compile and run this example to see what Qi is
9 // seeing!
10
11 #include "display_attribute_type.hpp"
12
13 namespace qi = boost::spirit::qi;
14
15 int main()
16 {
17 tools::display_attribute_of_parser(
18 std::cerr, // put the required output stream here
19 qi::int_ >> qi::double_ // put your parser expression here
20 );
21 return 0;
22 }