Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63788 - in trunk/libs/spirit: doc doc/karma doc/lex test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2010-07-09 15:02:55


Author: hkaiser
Date: 2010-07-09 15:02:54 EDT (Fri, 09 Jul 2010)
New Revision: 63788
URL: http://svn.boost.org/trac/boost/changeset/63788

Log:
Spirit: minor documentation work, untabified file
Text files modified:
   trunk/libs/spirit/doc/karma/directive.qbk | 2 +-
   trunk/libs/spirit/doc/lex/quick_reference.qbk | 2 +-
   trunk/libs/spirit/doc/what_s_new.qbk | 17 ++++++++++++++++-
   trunk/libs/spirit/test/qi/symbols.cpp | 26 +++++++++++++-------------
   4 files changed, 31 insertions(+), 16 deletions(-)

Modified: trunk/libs/spirit/doc/karma/directive.qbk
==============================================================================
--- trunk/libs/spirit/doc/karma/directive.qbk (original)
+++ trunk/libs/spirit/doc/karma/directive.qbk 2010-07-09 15:02:54 EDT (Fri, 09 Jul 2010)
@@ -614,7 +614,7 @@
     }}
 
 (for more details see the section describing the compilation process of the
-__boost_proto__ expression into the corresponding parser expressions).
+__boost_proto__ expression into the corresponding generator expressions).
 
 [table
     [[Expression] [Semantics]]

Modified: trunk/libs/spirit/doc/lex/quick_reference.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/quick_reference.qbk (original)
+++ trunk/libs/spirit/doc/lex/quick_reference.qbk 2010-07-09 15:02:54 EDT (Fri, 09 Jul 2010)
@@ -99,7 +99,7 @@
 [variablelist Spirit.Lex specific Phoenix placeholders
     [[`_start, _end`] [Iterators pointing to the begin and the end of the
                                 matched input sequence.]]
- [[`_pass`] [Assign `false` to `_pass` to force the current match to fail.]]
+ [[`_pass`] [Assign `lex::pass_flags::pass_fail` to `_pass` to force the current match to fail.]]
     [[`_tokenid`] [The token id of the matched token.]]
     [[`_val`] [The token value of the matched token.]]
     [[`_state`] [The lexer state the token has been matched in.]]

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 2010-07-09 15:02:54 EDT (Fri, 09 Jul 2010)
@@ -38,7 +38,6 @@
 * Added strict mode to __karma__, leaving the current behavior (unchanged) as
   relaxed mode. Added __karma__ compile time directives `strict[]` and
   `relaxed[]` allowing to switch between the two.
-* Added __karma__ debug mode.
 
 [heading Bug Fixes]
 
@@ -60,6 +59,22 @@
   doesn't always make sense as it normally would eat up all supplied attribute
   values).
 * Fixed debug output for variants where a variant element is an STL sequence.
+* Fixed a problem in multi_pass, avoiding to loose a character at end of input
+ when switching iterators.
+
+[heading What's changed in __lex__ from V2.3 (Boost V1.43.0) to V2.4 (Boost V1.44.0)]
+
+[heading New Lexer Features]
+
+* The lexer is now well integrated with the debug output generated by Qi's
+ simple_trace utility. Tokens are printed as: '<' matched sequence '>'.
+
+[heading Lexer Bug Fixes]
+
+* Fixed a problem with using lex::_val as a rvalue in lexer semantic
+ expressions.
+* Token values are now available for introspection (as an iterator_range)
+ inside lexer semantic expressions as well.
 
 [endsect] [/ spirit_2_4]
 

Modified: trunk/libs/spirit/test/qi/symbols.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/symbols.cpp (original)
+++ trunk/libs/spirit/test/qi/symbols.cpp 2010-07-09 15:02:54 EDT (Fri, 09 Jul 2010)
@@ -345,20 +345,20 @@
         first = str; last = str + 2;
         BOOST_TEST(!sym.prefix_find(first, last) && first == str);
     }
-
- {
- // remove bug
-
- std::string s;
- symbols<char, double> vars;
-
- vars.add("l1", 12.0);
- vars.add("l2", 0.0);
- vars.remove("l2");
- vars.find("l1");
- double* d = vars.find("l1");
+
+ {
+ // remove bug
+
+ std::string s;
+ symbols<char, double> vars;
+
+ vars.add("l1", 12.0);
+ vars.add("l2", 0.0);
+ vars.remove("l2");
+ vars.find("l1");
+ double* d = vars.find("l1");
         BOOST_TEST(d != 0);
- }
+ }
 
     return boost::report_errors();
 }


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