1 [/==============================================================================
2 Copyright (C) 2001-2011 Joel de Guzman
3 Copyright (C) 2001-2011 Hartmut Kaiser
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ===============================================================================/]
13 Spirit is a header file only library. There are no libraries to link to.
14 This section documents the structure of the Spirit headers.
16 Spirit contains five sub-libraries plus a 'support' module where common
17 support classes are placed:
26 The top Spirit directory is:
28 BOOST_ROOT/boost/spirit
30 Currently, the directory contains:
32 [actor] [attribute] [core] [debug]
33 [dynamic] [error_handling][home] [include]
34 [iterator] [meta] [phoenix] [repository]
35 [symbols] [tree] [utility]
37 These include some old v1.8 directories that are now deprecated. These
38 are: actor, attribute, core, debug, dynamic, error_handling, iterator,
39 meta, phoenix, symbols, tree and utility. There is no guarantee that these
40 directories will still be present in future versions of Spirit. We only
41 keep them for backward compatibility. Please be warned.
43 Each directory (except include, home, and repository) has a corresponding
44 header file that contains forwarding includes of each relevant include file
45 that the directory contains. For example, there exists a
46 <boost/spirit/actor.hpp> header file which includes all the relevant files
47 from the boost/spirit/actor directory.
49 To distinguish between Spirit versions, you can inspect the version file:
51 <boost/spirit/version.hpp>
53 using the preprocessor define
57 It is a hex number where the first two digits determine the major version while
58 the last two digits determine the minor version. For example:
60 #define SPIRIT_VERSION 0x2010 // version 2.1
62 The include directory at:
64 BOOST_ROOT/boost/spirit/include
66 is a special flat directory that contains all the Spirit headers. To
67 accommodate the flat structure, the headers are prefixed with the
78 For example, if you used to include <boost/spirit/actor.hpp>,
79 which is now a deprecated header, you should instead include
80 <boost/spirit/include/classic_actor.hpp>
82 If you want to simply include the main sub-library name, then you can
85 * <boost/spirit/include/classic.hpp>
86 * <boost/spirit/include/karma.hpp>
87 * <boost/spirit/include/lex.hpp>
88 * <boost/spirit/include/phoenix1.hpp>
89 * <boost/spirit/include/phoenix.hpp>
90 * <boost/spirit/include/qi.hpp>
91 * <boost/spirit/include/support.hpp>
95 BOOST_ROOT/boost/spirit/home
97 is the /real/ home of Spirit. It is the place where the various sub-libraries
98 actually exist. The home directory contains:
100 [classic] [karma] [lex]
101 [phoenix] [qi] [support]
103 As usual, these directories have their corresponding include files:
105 * <boost/spirit/home/classic.hpp>
106 * <boost/spirit/home/karma.hpp>
107 * <boost/spirit/home/lex.hpp>
108 * <boost/spirit/home/phoenix.hpp>
109 * <boost/spirit/home/qi.hpp>
110 * <boost/spirit/home/support.hpp>
112 The various sub-libraries include files can be found in each
113 sub-directory containing the particular sub-library. The include
114 structure of a sub-library is covered in its documentation. For
115 consistency, each library follows the same scheme as above.
117 To keep it simple, you should use the flat include directory at
118 boost/spirit/include.
120 For some additional information about the rationale you might want to have a
121 look at the FAQ entry __include_structure_faq__.
123 The subdirectory `boost/spirit/repository` does not belong to the main Spirit
124 distribution. For more information please refer to:
125 [link spirit.repository Spirit Repository].