tutorial_intro.qbk

来自「Boost provides free peer-reviewed portab」· QBK 代码 · 共 43 行

QBK
43
字号
[/==============================================================================    Copyright (C) 2001-2008 Joel de Guzman    Copyright (C) 2001-2008 Hartmut Kaiser    Distributed under the Boost Software License, Version 1.0. (See accompanying    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)===============================================================================/][section Quick Start][heading Why would you want to use Spirit.Qi?]Spirit.Qi is designed to be a practical parsing tool. The ability to generate afully-working parser from a formal EBNF specification inlined in C++significantly reduces development time. Programmers typically approach parsingusing ad hoc hacks with primitive tools such as scanf. Even regular-expressionlibraries (such as boost regex) or scanners (such as Boost tokenizer) do notscale well when we need to write more elaborate parsers. Attempting to writeeven a moderately-complex parser using these tools leads to code that is hard tounderstand and maintain.One prime objective is to make the tool easy to use. When one thinks of aparser generator, the usual reaction is "it must be big and complex with asteep learning curve." Not so. Spirit is designed to be fully scalable. Theframework is structured in layers. This permits learning on an as-needed basis,after only learning the minimal core and basic concepts.For development simplicity and ease in deployment, the entire frameworkconsists of only header files, with no libraries to link against or build.Just put the spirit distribution in your include path, compile and run. Codesize? -very tight -essentially comparable to hand written recursive descentcode.Our tutorials will walk you through the simplest Spirit examples, incrementallybuilding on top of the earlier examples as we expose more and more features andtechniques. We will try to be as gentle as possible with the learning curve.We will present the tutorials in a cookbook style approach. This style ofpresentation is based on our BoostCon '07 and BoostCon '08 slides.Have fun![endsect] [/ Quickstart]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?