Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67351 - trunk/libs/spirit/doc
From: hartmut.kaiser_at_[hidden]
Date: 2010-12-19 13:32:46


Author: hkaiser
Date: 2010-12-19 13:32:45 EST (Sun, 19 Dec 2010)
New Revision: 67351
URL: http://svn.boost.org/trac/boost/changeset/67351

Log:
Spirit: added matching of any tokens by specifying qi::token/qi::tokenid without parameter, doc updates
Text files modified:
   trunk/libs/spirit/doc/what_s_new.qbk | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

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-12-19 13:32:45 EST (Sun, 19 Dec 2010)
@@ -43,7 +43,7 @@
 * Added `qi::tokenid()` primitive parser allowing to match arbitrary lexer
   tokens based on a given token id. The difference to `qi::token()` is, that it
   exposes as its attribute the token id of the matched token (instead of the
- iterator_range of the matched input, as qi::token() does).
+ iterator_range of the matched input, as `qi::token()` does).
 * Added additional template parameter to the default `lexertl::token<>`
   definition: the type of the token id. This type defaults to `std::size_t`.
   Any type used as the id type needs to be (explicitly) convertible from
@@ -68,6 +68,8 @@
   This example lexer will match a `int_` token and will switch the lexer to
   the state `"TARGETSTATE"` afterwards. If the second argument is not
   specified the lexer remains in the previous state (as before).
+* The parser primitives `qi::token` and `qi::tokenid` can now be used without
+ any argument. In this case they will match any token.
 
 [endsect] [/ spirit_2_4_2]
 


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