]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/spirit/doc/x3/tutorial/tutorial_intro.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / spirit / doc / x3 / tutorial / tutorial_intro.qbk
CommitLineData
7c673cae
FG
1[/==============================================================================
2 Copyright (C) 2001-2015 Joel de Guzman
3 Copyright (C) 2001-2011 Hartmut Kaiser
4
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===============================================================================/]
8
9[section Quick Start]
10
11[heading Why would you want to use __x3__?]
12
13__x3__ is designed to be a practical parsing tool. The ability to generate a
14fully-working parser from a formal EBNF specification inlined in C++
15significantly reduces development time. Programmers typically approach parsing
16using ad hoc hacks with primitive tools such as scanf. Even regular-expression
17libraries (such as boost regex) or scanners (such as Boost tokenizer) do not
18scale well when we need to write more elaborate parsers. Attempting to write
19even a moderately-complex parser using these tools leads to code that is hard to
20understand and maintain.
21
22One prime objective is to make the tool easy to use. When one thinks of a
23parser generator, the usual reaction is "it must be big and complex with a
24steep learning curve." Not so. Spirit is designed to be fully scalable. The
25library is structured in layers. This permits learning on an as-needed basis,
26after only learning the minimal core and basic concepts.
27
28For development simplicity and ease in deployment, the entire library
29consists of only header files, with no libraries to link against or build.
30Just put the Spirit distribution in your include path, compile and run. Code
31size? -very tight -essentially comparable to hand written recursive descent
32code.
33
34Our tutorials will walk you through the simplest Spirit examples, incrementally
35building on top of the earlier examples as we expose more and more features and
36techniques. We will try to be as gentle as possible with the learning curve.
37We will present the tutorials in a cookbook style approach. This style of
38presentation is based on our BoostCon '07 and BoostCon '08 slides.
39
40Have fun!
41
42[endsect] [/ Quickstart]