|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71237 - in trunk/libs/spirit/doc: . html html/spirit html/spirit/abstracts html/spirit/karma html/spirit/qi html/spirit/qi/reference html/spirit/qi/reference/auxiliary html/spirit/qi/reference/char html/spirit/qi/reference/directive html/spirit/qi/reference/numeric html/spirit/qi/reference/operator html/spirit/qi/reference/stream html/spirit/qi/reference/string html/spirit/qi/tutorials html/spirit/support html/spirit/what_s_new
From: hartmut.kaiser_at_[hidden]
Date: 2011-04-13 21:02:04
Author: hkaiser
Date: 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
New Revision: 71237
URL: http://svn.boost.org/trac/boost/changeset/71237
Log:
Spirit: regenerate updated docs
Text files modified:
trunk/libs/spirit/doc/html/index.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/abstracts/parsing_expression_grammar.html | 6 +++---
trunk/libs/spirit/doc/html/spirit/abstracts/syntax_diagram.html | 10 +++++-----
trunk/libs/spirit/doc/html/spirit/introduction.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/karma/s05.html | 2 +-
trunk/libs/spirit/doc/html/spirit/preface.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/attr_cast.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/eps.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/reference/basics.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/reference/char/char.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/qi/reference/directive/as.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/reference/directive/hold.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/qi/reference/directive/no_skip.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/qi/reference/directive/repeat.html | 8 ++++----
trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/boolean.html | 5 +++--
trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/int.html | 17 ++++++++---------
trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/real.html | 15 ++++++++-------
trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/uint.html | 11 +++++------
trunk/libs/spirit/doc/html/spirit/qi/reference/operator/difference.html | 4 ++--
trunk/libs/spirit/doc/html/spirit/qi/reference/operator/kleene.html | 6 +++---
trunk/libs/spirit/doc/html/spirit/qi/reference/operator/list.html | 6 +++---
trunk/libs/spirit/doc/html/spirit/qi/reference/operator/optional.html | 6 +++---
trunk/libs/spirit/doc/html/spirit/qi/reference/stream/stream.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/reference/string/string.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/s04.html | 2 +-
trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list___stuffing_numbers_into_a_std__vector.html | 5 ++---
trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list_redux___list_syntax.html | 3 +--
trunk/libs/spirit/doc/html/spirit/support/utree.html | 6 ++++++
trunk/libs/spirit/doc/html/spirit/what_s_new/spirit_2_5.html | 14 +++++++++-----
trunk/libs/spirit/doc/what_s_new.qbk | 4 ++--
30 files changed, 87 insertions(+), 79 deletions(-)
Modified: trunk/libs/spirit/doc/html/index.html
==============================================================================
--- trunk/libs/spirit/doc/html/index.html (original)
+++ trunk/libs/spirit/doc/html/index.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -33,7 +33,7 @@
</div></div>
<div><p class="copyright">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser</p></div>
<div><div class="legalnotice">
-<a name="id855974"></a><p>
+<a name="id844587"></a><p>
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)
</p>
@@ -294,7 +294,7 @@
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: March 30, 2011 at 16:25:24 GMT</small></p></td>
+<td align="left"><p><small>Last revised: April 14, 2011 at 00:54:43 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: trunk/libs/spirit/doc/html/spirit/abstracts/parsing_expression_grammar.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/abstracts/parsing_expression_grammar.html (original)
+++ trunk/libs/spirit/doc/html/spirit/abstracts/parsing_expression_grammar.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -28,7 +28,7 @@
Expression Grammar</a>
</h3></div></div></div>
<p>
- Parsing Expression Grammars (PEG) <sup>[<a name="id873622" href="#ftn.id873622" class="footnote">6</a>]</sup> are a derivative of Extended Backus-Naur Form (EBNF) <sup>[<a name="id873634" href="#ftn.id873634" class="footnote">7</a>]</sup> with a different interpretation, designed to represent a recursive
+ Parsing Expression Grammars (PEG) <sup>[<a name="id864758" href="#ftn.id864758" class="footnote">6</a>]</sup> are a derivative of Extended Backus-Naur Form (EBNF) <sup>[<a name="id864770" href="#ftn.id864770" class="footnote">7</a>]</sup> with a different interpretation, designed to represent a recursive
descent parser. A PEG can be directly represented as a recursive-descent
parser.
</p>
@@ -189,11 +189,11 @@
</table></div>
<div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id873622" href="#id873622" class="para">6</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id864758" href="#id864758" class="para">6</a>] </sup>
Bryan Ford: Parsing Expression Grammars: A Recognition-Based Syntactic
Foundation, http://pdos.csail.mit.edu/~baford/packrat/popl04/
</p></div>
-<div class="footnote"><p><sup>[<a name="ftn.id873634" href="#id873634" class="para">7</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id864770" href="#id864770" class="para">7</a>] </sup>
Richard E. Pattis: EBNF: A Notation to Describe Syntax, http://www.cs.cmu.edu/~pattis/misc/ebnf.pdf
</p></div>
</div>
Modified: trunk/libs/spirit/doc/html/spirit/abstracts/syntax_diagram.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/abstracts/syntax_diagram.html (original)
+++ trunk/libs/spirit/doc/html/spirit/abstracts/syntax_diagram.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -28,9 +28,9 @@
</h3></div></div></div>
<p>
In the next section, we will deal with Parsing Expression Grammars (PEG)
- <sup>[<a name="id871894" href="#ftn.id871894" class="footnote">3</a>]</sup>, a variant of Extended Backus-Naur Form (EBNF) <sup>[<a name="id871906" href="#ftn.id871906" class="footnote">4</a>]</sup> with a different interpretation. It is easier to understand PEG
+ <sup>[<a name="id864351" href="#ftn.id864351" class="footnote">3</a>]</sup>, a variant of Extended Backus-Naur Form (EBNF) <sup>[<a name="id864363" href="#ftn.id864363" class="footnote">4</a>]</sup> with a different interpretation. It is easier to understand PEG
using Syntax Diagrams. Syntax diagrams represent a grammar graphically. It
- was used extensively by Niklaus Wirth <sup>[<a name="id871918" href="#ftn.id871918" class="footnote">5</a>]</sup> in the "Pascal User Manual". Syntax Diagrams are easily
+ was used extensively by Niklaus Wirth <sup>[<a name="id864375" href="#ftn.id864375" class="footnote">5</a>]</sup> in the "Pascal User Manual". Syntax Diagrams are easily
understandable by programmers due to their similarity to flow charts. The
isomorphism of the diagrams and functions make them ideal for representing
Recursive Descent parsers which are essentially mutually recursive functions.
@@ -147,14 +147,14 @@
</p>
<div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id871894" href="#id871894" class="para">3</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id864351" href="#id864351" class="para">3</a>] </sup>
Bryan Ford: Parsing Expression Grammars: A Recognition-Based Syntactic
Foundation, http://pdos.csail.mit.edu/~baford/packrat/popl04/
</p></div>
-<div class="footnote"><p><sup>[<a name="ftn.id871906" href="#id871906" class="para">4</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id864363" href="#id864363" class="para">4</a>] </sup>
Richard E. Pattis: EBNF: A Notation to Describe Syntax, http://www.cs.cmu.edu/~pattis/misc/ebnf.pdf
</p></div>
-<div class="footnote"><p><sup>[<a name="ftn.id871918" href="#id871918" class="para">5</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id864375" href="#id864375" class="para">5</a>] </sup>
Niklaus Wirth: The Programming Language Pascal. (July 1973)
</p></div>
</div>
Modified: trunk/libs/spirit/doc/html/spirit/introduction.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/introduction.html (original)
+++ trunk/libs/spirit/doc/html/spirit/introduction.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -29,7 +29,7 @@
<p>
Boost Spirit is an object-oriented, recursive-descent parser and output generation
library for C++. It allows you to write grammars and format descriptions using
- a format similar to Extended Backus Naur Form (EBNF)<sup>[<a name="id868648" href="#ftn.id868648" class="footnote">2</a>]</sup> directly in C++. These inline grammar specifications can mix freely
+ a format similar to Extended Backus Naur Form (EBNF)<sup>[<a name="id859388" href="#ftn.id859388" class="footnote">2</a>]</sup> directly in C++. These inline grammar specifications can mix freely
with other C++ code and, thanks to the generative power of C++ templates, are
immediately executable. In retrospect, conventional compiler-compilers or parser-generators
have to perform an additional translation step from the source EBNF code to
@@ -453,7 +453,7 @@
</div>
<br class="table-break"><div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id868648" href="#id868648" class="para">2</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id859388" href="#id859388" class="para">2</a>] </sup>
<a href="http://www.cl.cam.ac.uk/%7Emgk25/iso-14977.pdf" target="_top">ISO-EBNF</a>
</p></div>
</div>
Modified: trunk/libs/spirit/doc/html/spirit/karma/s05.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/karma/s05.html (original)
+++ trunk/libs/spirit/doc/html/spirit/karma/s05.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id1227726"></a>Karma Index</h3></div></div></div>
+<a name="id1219264"></a>Karma Index</h3></div></div></div>
<p><a class="link" href="s05.html#idx_id_22">A</a> <a class="link" href="s05.html#idx_id_23">B</a> <a class="link" href="s05.html#idx_id_24">C</a> <a class="link" href="s05.html#idx_id_25">D</a> <a class="link" href="s05.html#idx_id_26">E</a> <a class="link" href="s05.html#idx_id_27">F</a> <a class="link" href="s05.html#idx_id_28">G</a> <a class="link" href="s05.html#idx_id_29">H</a> <a class="link" href="s05.html#idx_id_30">I</a> <a class="link" href="s05.html#idx_id_31">K</a> <a class="link" href="s05.html#idx_id_32">L</a> <a class="link" href="s05.html#idx_id_33">M</a> <a class="link" href="s05.html#idx_id_34">N</a> <a class="link" href="s05.html#idx_id_35">O</a> <a class="link" href="s05.html#idx_id_36">P</a> <a class="link" href="s05.html#idx_id_37">Q</a> <a class="link" href="s05.html#idx_id_38">R</a> <a class="link" href="s05.html#idx_id_39">S</a> <a class="link" href="s05.html#idx_id_40">T</a> <a class="link" href="s05.html#idx_id_41">U</a> <a class="link" href="s05.html#idx_id_42">V</a> <a class="l
ink" href="s05.html#idx_id_43">W</a> <a class="link" href="s05.html#idx_id_44">X</a> </p>
<div class="variablelist"><dl>
<dt>
Modified: trunk/libs/spirit/doc/html/spirit/preface.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/preface.html (original)
+++ trunk/libs/spirit/doc/html/spirit/preface.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -162,7 +162,7 @@
</h4>
<p>
Just before the development of Spirit V2 began, Hartmut came across the StringTemplate library that is
- a part of the ANTLR parser framework. <sup>[<a name="id856242" href="#ftn.id856242" class="footnote">1</a>]</sup> The concepts presented in that library lead Hartmut to the next
+ a part of the ANTLR parser framework. <sup>[<a name="id844855" href="#ftn.id844855" class="footnote">1</a>]</sup> The concepts presented in that library lead Hartmut to the next
step in the evolution of Spirit. Parsing and generation are tightly connected
to a formal notation, or a grammar. The grammar describes both input and output,
and therefore, a parser library should have a grammar driven output. This duality
@@ -353,7 +353,7 @@
</p>
<div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id856242" href="#id856242" class="para">1</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id844855" href="#id844855" class="para">1</a>] </sup>
Quote from http:<span class="emphasis"><em>/www.stringtemplate.org</em></span>: It is a Java
template engine (with ports for C# and Python) for generating source code,
web pages, emails, or any other formatted text output.
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/attr_cast.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/attr_cast.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/attr_cast.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -372,7 +372,7 @@
<span class="comment">// we provide a custom attribute transformation to allow its use as an int
</span><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">spirit</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">traits</span>
<span class="special">{</span>
- <span class="comment">// in this case we just expose the embedded 'int' as the attribute instance
+ <span class="comment">// in this case we just expose the embedded 'int' as the attribute instance
</span> <span class="comment">// to use, allowing to leave the function 'post()' empty
</span> <span class="keyword">template</span> <span class="special"><></span>
<span class="keyword">struct</span> <span class="identifier">transform_attribute</span><span class="special"><</span><span class="identifier">int_data</span><span class="special">,</span> <span class="keyword">int</span><span class="special">,</span> <span class="identifier">qi</span><span class="special">::</span><span class="identifier">domain</span><span class="special">></span>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/eps.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/eps.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/eps.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -280,7 +280,7 @@
<p>
</p>
-<pre class="programlisting"><span class="identifier">test_phrase_parser</span><span class="special">(</span><span class="string">"1 2 3 4"</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">test_phrase_parser</span><span class="special">(</span><span class="string">"1 2 3 4"</span><span class="special">,</span>
<span class="special">*(</span><span class="identifier">eps</span><span class="special">(</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">c</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">int_</span><span class="special">[</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">c</span><span class="special">)</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">_1</span> <span class="special">==</span> <span class="number">4</span><span class="special">)]));</span>
</pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/basics.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/basics.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/basics.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -167,7 +167,7 @@
<span class="special">{</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">phrase_parse</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">ascii</span><span class="special">::</span><span class="identifier">space</span><span class="special">;</span>
-
+
<span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">f</span><span class="special">(</span><span class="identifier">input</span><span class="special">);</span>
<span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">l</span><span class="special">(</span><span class="identifier">f</span> <span class="special">+</span> <span class="identifier">strlen</span><span class="special">(</span><span class="identifier">f</span><span class="special">));</span>
<span class="keyword">if</span> <span class="special">(</span><span class="identifier">phrase_parse</span><span class="special">(</span><span class="identifier">f</span><span class="special">,</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">space</span><span class="special">)</span> <span class="special">&&</span> <span class="special">(!</span><span class="identifier">full_match</span> <span class="special">||</span> <span class="special">(</span><span class="identifier">f</span> <span class="special">==</span> <span class="identifier">l</span><span class="special">)))</span>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/char/char.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/char/char.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/char/char.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -560,9 +560,9 @@
<p>
</p>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">phx</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">phx</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">;</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"x"</span><span class="special">,</span> <span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="char">'x'</span><span class="special">));</span> <span class="comment">// direct
-</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"5"</span><span class="special">,</span>
+</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"5"</span><span class="special">,</span>
<span class="identifier">char_</span><span class="special">(</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="char">'0'</span><span class="special">),</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="char">'9'</span><span class="special">)));</span> <span class="comment">// ascii::char_ range
</span></pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/directive/as.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/directive/as.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/directive/as.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -337,7 +337,7 @@
</p>
<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">utree</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">utree_type</span><span class="special">;</span>
-<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">utf8_symbol_type</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">utf8_symbol_type</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">as</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">as_string</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">char_</span><span class="special">;</span>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/directive/hold.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/directive/hold.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/directive/hold.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -226,8 +226,8 @@
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
-<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span><span class="string">"123"</span><span class="special">,</span>
- <span class="identifier">hold</span><span class="special">[</span><span class="identifier">int_</span> <span class="special">>></span> <span class="char">':'</span> <span class="special">>></span> <span class="identifier">int_</span><span class="special">]</span> <span class="special">|</span> <span class="identifier">int_</span> <span class="special">>></span> <span class="identifier">attr</span><span class="special">(</span><span class="number">0</span><span class="special">),</span> <span class="identifier">v</span><span class="special">);</span>
+<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span><span class="string">"123"</span><span class="special">,</span>
+ <span class="identifier">hold</span><span class="special">[</span><span class="identifier">int_</span> <span class="special">>></span> <span class="char">':'</span> <span class="special">>></span> <span class="identifier">int_</span><span class="special">]</span> <span class="special">|</span> <span class="identifier">int_</span> <span class="special">>></span> <span class="identifier">attr</span><span class="special">(</span><span class="number">0</span><span class="special">),</span> <span class="identifier">v</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">v</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="string">","</span> <span class="special"><<</span> <span class="identifier">v</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="comment">// will output: >123,0<
</span></pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/directive/no_skip.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/directive/no_skip.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/directive/no_skip.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -210,8 +210,8 @@
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">str</span><span class="special">;</span>
-<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span><span class="string">"' abc '"</span><span class="special">,</span>
- <span class="char">'\''</span> <span class="special">>></span> <span class="identifier">no_skip</span><span class="special">[+~</span><span class="identifier">char_</span><span class="special">(</span><span class="char">'\''</span><span class="special">)]</span> <span class="special">>></span> <span class="char">'\''</span><span class="special">,</span> <span class="identifier">str</span><span class="special">);</span>
+<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span><span class="string">"' abc '"</span><span class="special">,</span>
+ <span class="char">'\''</span> <span class="special">>></span> <span class="identifier">no_skip</span><span class="special">[+~</span><span class="identifier">char_</span><span class="special">(</span><span class="char">'\''</span><span class="special">)]</span> <span class="special">>></span> <span class="char">'\''</span><span class="special">,</span> <span class="identifier">str</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">str</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="comment">// will output: > abc <
</span></pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/directive/repeat.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/directive/repeat.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/directive/repeat.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -352,10 +352,10 @@
<pre class="programlisting"><span class="identifier">uint_parser</span><span class="special"><</span><span class="keyword">unsigned</span><span class="special">,</span> <span class="number">16</span><span class="special">,</span> <span class="number">6</span><span class="special">,</span> <span class="number">6</span><span class="special">></span> <span class="identifier">rgb</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">unsigned</span><span class="special">></span> <span class="identifier">colors</span><span class="special">;</span>
<span class="identifier">test_parser_attr</span><span class="special">(</span><span class="string">"ffffff0000003f3f3f"</span><span class="special">,</span> <span class="identifier">repeat</span><span class="special">(</span><span class="number">3</span><span class="special">)[</span><span class="identifier">rgb</span><span class="special">],</span> <span class="identifier">colors</span><span class="special">);</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
<span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">hex</span>
- <span class="special"><<</span> <span class="identifier">colors</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
- <span class="special"><<</span> <span class="identifier">colors</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
+ <span class="special"><<</span> <span class="identifier">colors</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
+ <span class="special"><<</span> <span class="identifier">colors</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
<span class="special"><<</span> <span class="identifier">colors</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span></pre>
<p>
</p>
@@ -392,7 +392,7 @@
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">str</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">n</span><span class="special">;</span>
-<span class="identifier">test_parser_attr</span><span class="special">(</span><span class="string">"\x0bHello World"</span><span class="special">,</span>
+<span class="identifier">test_parser_attr</span><span class="special">(</span><span class="string">"\x0bHello World"</span><span class="special">,</span>
<span class="identifier">char_</span><span class="special">[</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">n</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">_1</span><span class="special">]</span> <span class="special">>></span> <span class="identifier">repeat</span><span class="special">(</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">n</span><span class="special">))[</span><span class="identifier">char_</span><span class="special">],</span> <span class="identifier">str</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">n</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">str</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="comment">// will print "11,Hello World"
</span></pre>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/boolean.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/boolean.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/boolean.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -265,7 +265,7 @@
</p>
<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">true_</span>
-<span class="identifier">false_</span>
+<span class="identifier">false_</span>
</pre>
<p>
</p>
@@ -596,6 +596,7 @@
<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">val</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">bool_</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">bool_parser</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">lit</span><span class="special">;</span>
</pre>
<p>
</p>
@@ -628,7 +629,7 @@
</p>
<pre class="programlisting"><span class="comment">///////////////////////////////////////////////////////////////////////////////
-</span><span class="comment">// These policies can be used to parse "eurt" (i.e. "true" spelled backwards)
+</span><span class="comment">// These policies can be used to parse "eurt" (i.e. "true" spelled backwards)
</span><span class="comment">// as `false`
</span><span class="comment">///////////////////////////////////////////////////////////////////////////////
</span><span class="keyword">struct</span> <span class="identifier">backwards_bool_policies</span> <span class="special">:</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">bool_policies</span><span class="special"><></span>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/int.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/int.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/int.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -190,8 +190,7 @@
</td>
<td>
<p>
- The radix base. This can be either 2 for binary, 8 for octal,
- 10 for decimal and 16 for hexadecimal.
+ The radix base. This can be any base from 2..10 and 16
</p>
</td>
<td>
@@ -719,18 +718,18 @@
</p>
<pre class="programlisting"><span class="comment">// signed int
-</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">);</span>
+</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">);</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">);</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(-</span><span class="number">12345</span><span class="special">));</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="identifier">val</span><span class="special">(-</span><span class="number">12345</span><span class="special">)));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">int_</span><span class="special">(</span><span class="identifier">val</span><span class="special">(-</span><span class="number">12345</span><span class="special">)));</span>
<span class="comment">// literals
-</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
+</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(-</span><span class="number">12345</span><span class="special">));</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(-</span><span class="number">12345</span><span class="special">)));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"+12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"-12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(-</span><span class="number">12345</span><span class="special">)));</span>
</pre>
<p>
</p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/real.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/real.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/real.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -695,11 +695,11 @@
<span class="special">=</span> <span class="identifier">lit</span><span class="special">(</span><span class="char">'+'</span><span class="special">)</span> <span class="special">|</span> <span class="char">'-'</span>
<span class="special">;</span>
-<span class="identifier">nan</span>
- <span class="special">=</span> <span class="special">-</span><span class="identifier">lit</span><span class="special">(</span><span class="string">"1.0#"</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">no_case</span><span class="special">[</span><span class="string">"nan"</span><span class="special">]</span>
+<span class="identifier">nan</span>
+ <span class="special">=</span> <span class="special">-</span><span class="identifier">lit</span><span class="special">(</span><span class="string">"1.0#"</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">no_case</span><span class="special">[</span><span class="string">"nan"</span><span class="special">]</span>
<span class="special">>></span> <span class="special">-(</span><span class="char">'('</span> <span class="special">>></span> <span class="special">*(</span><span class="identifier">char_</span> <span class="special">-</span> <span class="char">')'</span><span class="special">)</span> <span class="special">>></span> <span class="char">')'</span><span class="special">)</span>
<span class="special">;</span>
-
+
<span class="identifier">inf</span>
<span class="special">=</span> <span class="identifier">no_case</span><span class="special">[</span><span class="identifier">lit</span><span class="special">(</span><span class="string">"inf"</span><span class="special">)</span> <span class="special">>></span> <span class="special">-</span><span class="identifier">lit</span><span class="special">(</span><span class="string">"inity"</span><span class="special">)]</span>
<span class="special">;</span>
@@ -749,7 +749,7 @@
<tr>
<td>
<p>
- <code class="computeroutput"><span class="identifier">ureal_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="special">></span></code>
+ <code class="computeroutput"><span class="identifier">ureal_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span></code>
</p>
</td>
<td>
@@ -761,7 +761,7 @@
<tr>
<td>
<p>
- <code class="computeroutput"><span class="identifier">real_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="special">></span></code>
+ <code class="computeroutput"><span class="identifier">real_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span></code>
</p>
</td>
<td>
@@ -773,7 +773,7 @@
<tr>
<td>
<p>
- <code class="computeroutput"><span class="identifier">strict_ureal_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="special">></span></code>
+ <code class="computeroutput"><span class="identifier">strict_ureal_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span></code>
</p>
</td>
<td>
@@ -785,7 +785,7 @@
<tr>
<td>
<p>
- <code class="computeroutput"><span class="identifier">strict_real_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="special">></span></code>
+ <code class="computeroutput"><span class="identifier">strict_real_policies</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span></code>
</p>
</td>
<td>
@@ -1065,6 +1065,7 @@
<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">val</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">double_</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">real_parser</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">spirit</span><span class="special">::</span><span class="identifier">qi</span><span class="special">::</span><span class="identifier">lit</span><span class="special">;</span>
</pre>
<p>
</p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/uint.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/uint.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/numeric/uint.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -204,8 +204,7 @@
</td>
<td>
<p>
- The radix base. This can be either 2 for binary, 8 for octal,
- 10 for decimal and 16 for hexadecimal.
+ The radix base. This can be any base from 2..10 and 16
</p>
</td>
<td>
@@ -771,12 +770,12 @@
</p>
<pre class="programlisting"><span class="comment">// unsigned int
</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">uint_</span><span class="special">);</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">uint_</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">uint_</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">uint_</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
<span class="comment">// literals
-</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
-<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
+</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="number">12345</span><span class="special">));</span>
+<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12345"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">val</span><span class="special">(</span><span class="number">12345</span><span class="special">)));</span>
</pre>
<p>
</p>
@@ -787,7 +786,7 @@
</p>
<pre class="programlisting"><span class="identifier">uint_parser</span><span class="special"><</span><span class="keyword">unsigned</span><span class="special">,</span> <span class="number">10</span><span class="special">,</span> <span class="number">1</span><span class="special">,</span> <span class="number">3</span><span class="special">></span> <span class="identifier">uint3_p</span><span class="special">;</span> <span class="comment">// 1..3 digits
-</span><span class="identifier">uint_parser</span><span class="special"><</span><span class="keyword">unsigned</span><span class="special">,</span> <span class="number">10</span><span class="special">,</span> <span class="number">3</span><span class="special">,</span> <span class="number">3</span><span class="special">></span> <span class="identifier">uint3_3_p</span><span class="special">;</span> <span class="comment">// exactly 3 digits
+</span><span class="identifier">uint_parser</span><span class="special"><</span><span class="keyword">unsigned</span><span class="special">,</span> <span class="number">10</span><span class="special">,</span> <span class="number">3</span><span class="special">,</span> <span class="number">3</span><span class="special">></span> <span class="identifier">uint3_3_p</span><span class="special">;</span> <span class="comment">// exactly 3 digits
</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"12,345,678"</span><span class="special">,</span> <span class="identifier">uint3_p</span> <span class="special">>></span> <span class="special">*(</span><span class="char">','</span> <span class="special">>></span> <span class="identifier">uint3_3_p</span><span class="special">));</span>
</pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/operator/difference.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/operator/difference.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/operator/difference.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -36,7 +36,7 @@
The difference operator, <code class="computeroutput"><span class="identifier">a</span>
<span class="special">-</span> <span class="identifier">b</span></code>,
is a binary operator that matches the first (LHS) operand but not the
- second (RHS). <sup>[<a name="id1022734" href="#ftn.id1022734" class="footnote">8</a>]</sup>
+ second (RHS). <sup>[<a name="id1014958" href="#ftn.id1014958" class="footnote">8</a>]</sup>
</p>
<a name="spirit.qi.reference.operator.difference.header"></a><h6>
<a name="spirit.qi.reference.operator.difference.header-heading"></a>
@@ -192,7 +192,7 @@
</p>
<div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id1022734" href="#id1022734" class="para">8</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id1014958" href="#id1014958" class="para">8</a>] </sup>
Unlike classic Spirit, with Spirit2, the expression will always fail
if the RHS is a successful match regardless if the RHS matches less
characters. For example, the rule <code class="computeroutput"><span class="identifier">lit</span><span class="special">(</span><span class="string">"policeman"</span><span class="special">)</span> <span class="special">-</span> <span class="string">"police"</span></code> will always fail to
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/operator/kleene.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/operator/kleene.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/operator/kleene.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -185,9 +185,9 @@
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">attr</span><span class="special">;</span>
<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span>
<span class="string">"111, 222, 333, 444, 555"</span><span class="special">,</span> <span class="identifier">int_</span> <span class="special">>></span> <span class="special">*(</span><span class="char">','</span> <span class="special">>></span> <span class="identifier">int_</span><span class="special">),</span> <span class="identifier">attr</span><span class="special">);</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
- <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
- <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">3</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">4</span><span class="special">]</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
+ <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
+ <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">3</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">4</span><span class="special">]</span>
<span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/operator/list.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/operator/list.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/operator/list.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -194,9 +194,9 @@
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">attr</span><span class="special">;</span>
<span class="identifier">test_phrase_parser_attr</span><span class="special">(</span>
<span class="string">"111, 222, 333, 444, 555"</span><span class="special">,</span> <span class="identifier">int_</span> <span class="special">%</span> <span class="char">','</span><span class="special">,</span> <span class="identifier">attr</span><span class="special">);</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
- <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
- <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">3</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">4</span><span class="special">]</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span>
+ <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">0</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span>
+ <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">3</span><span class="special">]</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="identifier">attr</span><span class="special">[</span><span class="number">4</span><span class="special">]</span>
<span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre>
<p>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/operator/optional.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/operator/optional.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/operator/optional.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -180,7 +180,7 @@
<p>
</p>
<p>
- Parse a person info with name (in quotes) optional age <sup>[<a name="id1030736" href="#ftn.id1030736" class="footnote">9</a>]</sup> and optional sex, all separated by comma.
+ Parse a person info with name (in quotes) optional age <sup>[<a name="id1022407" href="#ftn.id1022407" class="footnote">9</a>]</sup> and optional sex, all separated by comma.
</p>
<p>
@@ -200,13 +200,13 @@
</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="special">*</span><span class="identifier">at_c</span><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">attr</span><span class="special">);</span>
<span class="keyword">if</span> <span class="special">(</span><span class="identifier">at_c</span><span class="special"><</span><span class="number">2</span><span class="special">>(</span><span class="identifier">attr</span><span class="special">))</span> <span class="comment">// print optional sex
</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="char">','</span> <span class="special"><<</span> <span class="special">*</span><span class="identifier">at_c</span><span class="special"><</span><span class="number">2</span><span class="special">>(</span><span class="identifier">attr</span><span class="special">);</span>
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
+<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre>
<p>
</p>
<div class="footnotes">
<br><hr width="100" align="left">
-<div class="footnote"><p><sup>[<a name="ftn.id1030736" href="#id1030736" class="para">9</a>] </sup>
+<div class="footnote"><p><sup>[<a name="ftn.id1022407" href="#id1022407" class="para">9</a>] </sup>
James Bond is shy about his age :-)
</p></div>
</div>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/stream/stream.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/stream/stream.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/stream/stream.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -440,7 +440,7 @@
</p>
<pre class="programlisting"><span class="comment">// define streaming operator for the type complex
-</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istream</span><span class="special">&</span>
+</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istream</span><span class="special">&</span>
<span class="keyword">operator</span><span class="special">>></span> <span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istream</span><span class="special">&</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">complex</span><span class="special">&</span> <span class="identifier">z</span><span class="special">)</span>
<span class="special">{</span>
<span class="keyword">char</span> <span class="identifier">lbrace</span> <span class="special">=</span> <span class="char">'\0'</span><span class="special">,</span> <span class="identifier">comma</span> <span class="special">=</span> <span class="char">'\0'</span><span class="special">,</span> <span class="identifier">rbrace</span> <span class="special">=</span> <span class="char">'\0'</span><span class="special">;</span>
Modified: trunk/libs/spirit/doc/html/spirit/qi/reference/string/string.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/reference/string/string.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/reference/string/string.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -309,7 +309,7 @@
<p>
</p>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">phx</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">phx</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">phoenix</span><span class="special">;</span>
<span class="identifier">test_parser</span><span class="special">(</span><span class="string">"boost"</span><span class="special">,</span> <span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="string">"boost"</span><span class="special">));</span> <span class="comment">// direct
</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"boost"</span><span class="special">,</span> <span class="identifier">lit</span><span class="special">(</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="string">"boost"</span><span class="special">)));</span> <span class="comment">// explicit
</span><span class="identifier">test_parser</span><span class="special">(</span><span class="string">"boost"</span><span class="special">,</span> <span class="identifier">string</span><span class="special">(</span><span class="identifier">phx</span><span class="special">::</span><span class="identifier">val</span><span class="special">(</span><span class="string">"boost"</span><span class="special">)));</span> <span class="comment">// ascii::string
Modified: trunk/libs/spirit/doc/html/spirit/qi/s04.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/s04.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/s04.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id1051110"></a>Qi Index</h3></div></div></div>
+<a name="id1040733"></a>Qi Index</h3></div></div></div>
<p><a class="link" href="s04.html#idx_id_0">A</a> <a class="link" href="s04.html#idx_id_1">B</a> <a class="link" href="s04.html#idx_id_2">C</a> <a class="link" href="s04.html#idx_id_3">D</a> <a class="link" href="s04.html#idx_id_4">E</a> <a class="link" href="s04.html#idx_id_5">F</a> <a class="link" href="s04.html#idx_id_6">G</a> <a class="link" href="s04.html#idx_id_7">H</a> <a class="link" href="s04.html#idx_id_8">I</a> <a class="link" href="s04.html#idx_id_9">K</a> <a class="link" href="s04.html#idx_id_10">L</a> <a class="link" href="s04.html#idx_id_11">M</a> <a class="link" href="s04.html#idx_id_12">N</a> <a class="link" href="s04.html#idx_id_13">O</a> <a class="link" href="s04.html#idx_id_14">P</a> <a class="link" href="s04.html#idx_id_15">Q</a> <a class="link" href="s04.html#idx_id_16">R</a> <a class="link" href="s04.html#idx_id_17">S</a> <a class="link" href="s04.html#idx_id_18">T</a> <a class="link" href="s04.html#idx_id_19">U</a> <a class="link" href="s04.html#idx_id_20">W</a> <a class="link" href=
"s04.html#idx_id_21">X</a> </p>
<div class="variablelist"><dl>
<dt>
Modified: trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list___stuffing_numbers_into_a_std__vector.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list___stuffing_numbers_into_a_std__vector.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list___stuffing_numbers_into_a_std__vector.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -42,14 +42,13 @@
<span class="keyword">using</span> <span class="identifier">qi</span><span class="special">::</span><span class="identifier">_1</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">ascii</span><span class="special">::</span><span class="identifier">space</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">push_back</span><span class="special">;</span>
- <span class="keyword">using</span> <span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">ref</span><span class="special">;</span>
<span class="keyword">bool</span> <span class="identifier">r</span> <span class="special">=</span> <span class="identifier">phrase_parse</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span>
<span class="comment">// Begin grammar
</span> <span class="special">(</span>
- <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)]</span>
- <span class="special">>></span> <span class="special">*(</span><span class="char">','</span> <span class="special">>></span> <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)])</span>
+ <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)]</span>
+ <span class="special">>></span> <span class="special">*(</span><span class="char">','</span> <span class="special">>></span> <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)])</span>
<span class="special">)</span>
<span class="special">,</span>
<span class="comment">// End grammar
Modified: trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list_redux___list_syntax.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list_redux___list_syntax.html (original)
+++ trunk/libs/spirit/doc/html/spirit/qi/tutorials/number_list_redux___list_syntax.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -57,13 +57,12 @@
<span class="keyword">using</span> <span class="identifier">qi</span><span class="special">::</span><span class="identifier">_1</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">ascii</span><span class="special">::</span><span class="identifier">space</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">push_back</span><span class="special">;</span>
- <span class="keyword">using</span> <span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">ref</span><span class="special">;</span>
<span class="keyword">bool</span> <span class="identifier">r</span> <span class="special">=</span> <span class="identifier">phrase_parse</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span>
<span class="comment">// Begin grammar
</span> <span class="special">(</span>
- <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)]</span> <span class="special">%</span> <span class="char">','</span>
+ <span class="identifier">double_</span><span class="special">[</span><span class="identifier">push_back</span><span class="special">(</span><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">ref</span><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <span class="identifier">_1</span><span class="special">)]</span> <span class="special">%</span> <span class="char">','</span>
<span class="special">)</span>
<span class="special">,</span>
<span class="comment">// End grammar
Modified: trunk/libs/spirit/doc/html/spirit/support/utree.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/support/utree.html (original)
+++ trunk/libs/spirit/doc/html/spirit/support/utree.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -159,6 +159,12 @@
<span class="identifier">iterator</span> <span class="identifier">end</span><span class="special">();</span>
<span class="identifier">const_iterator</span> <span class="identifier">end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">ref_iterator</span> <span class="identifier">ref_end</span><span class="special">();</span>
+
+<span class="comment">// access Nth element if the utree holds a sequence
+</span><span class="comment">//
+</span><span class="comment">// beware: this function has O(N) time complexity
+</span><span class="identifier">reference</span> <span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span><span class="special">);</span>
+<span class="identifier">const_reference</span> <span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
</p>
Modified: trunk/libs/spirit/doc/html/spirit/what_s_new/spirit_2_5.html
==============================================================================
--- trunk/libs/spirit/doc/html/spirit/what_s_new/spirit_2_5.html (original)
+++ trunk/libs/spirit/doc/html/spirit/what_s_new/spirit_2_5.html 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -39,16 +39,13 @@
support is purely preliminary and should not be considered production quality.
The reason why we are releasing this now is to enable people who want to
use the new version of Boost.Phoenix
- in their code can do without any conflicts with existing code using Spirit. Generally, no Spirit
+ in their code to do so without any conflicts with existing code using Spirit. Generally, no Spirit
code needs to be changed. To activate the use of Boost.Phoenix
V3 for Spirit you need to define
- the following preprocessor constants for your builds (before including any
+ the following preprocessor constant for your builds (before including any
of Spirit's include files):
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_SPIRIT_USE_PHOENIX_V3</span> <span class="number">1</span>
-<span class="preprocessor">#define</span> <span class="identifier">BOOST_PROTO_MAX_ARITY</span> <span class="number">11</span>
-<span class="preprocessor">#define</span> <span class="identifier">BOOST_PROTO_MAX_LOGICAL_ARITY</span> <span class="number">11</span>
-<span class="preprocessor">#define</span> <span class="identifier">BOOST_MPL_LIMIT_METAFUNCTION_ARITY</span> <span class="number">12</span>
</pre>
<a name="spirit.what_s_new.spirit_2_5.new_features_in_qi_or_karma"></a><h5>
<a name="spirit.what_s_new.spirit_2_5.new_features_in_qi_or_karma-heading"></a>
@@ -75,6 +72,9 @@
with a bogus double underscore that is reserved for system use in C++.
</li>
<li class="listitem">
+ The numeric parsers now allow arbitrary radix from 2..10 and 16
+ </li>
+<li class="listitem">
The placeholder <code class="computeroutput"><span class="identifier">_val</span></code>
now can be used in top level semantic actions outside of any right hand
side of a rule. Here is an example:
@@ -129,6 +129,10 @@
parser component was successful. Thanks to Brian O'Kennedy who reported
the problem on Stackoverflow.
</li>
+<li class="listitem">
+ Fixed failing Karma numerics generators when used with adapted ADTs (thanks
+ to Colin Rundel for reporting that problem).
+ </li>
</ul></div>
<a name="spirit.what_s_new.spirit_2_5.breaking_changes"></a><h5>
<a name="spirit.what_s_new.spirit_2_5.breaking_changes-heading"></a>
Modified: trunk/libs/spirit/doc/what_s_new.qbk
==============================================================================
--- trunk/libs/spirit/doc/what_s_new.qbk (original)
+++ trunk/libs/spirit/doc/what_s_new.qbk 2011-04-13 21:01:59 EDT (Wed, 13 Apr 2011)
@@ -17,10 +17,10 @@
which has been released as part of Boost V1.47. Please note that this support
is purely preliminary and should not be considered production quality. The
reason why we are releasing this now is to enable people who want to use the
-new version of __boost_phoenix__ in their code can do without any conflicts with
+new version of __boost_phoenix__ in their code to do so without any conflicts with
existing code using __spirit__. Generally, no __spirit__ code needs to be
changed. To activate the use of __boost_phoenix__ V3 for __spirit__ you need to
-define the following preprocessor constants for your builds (before including
+define the following preprocessor constant for your builds (before including
any of Spirit's include files):
#define BOOST_SPIRIT_USE_PHOENIX_V3 1
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk