Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52920 - in trunk/libs/spirit/doc: . lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-11 14:11:29


Author: hkaiser
Date: 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
New Revision: 52920
URL: http://svn.boost.org/trac/boost/changeset/52920

Log:
Documentation update
Text files modified:
   trunk/libs/spirit/doc/lex/introduction.qbk | 2 +-
   trunk/libs/spirit/doc/lex/lexer_attributes.qbk | 2 +-
   trunk/libs/spirit/doc/lex/lexer_primitives.qbk | 2 +-
   trunk/libs/spirit/doc/lex/lexer_quickstart1.qbk | 6 +++---
   trunk/libs/spirit/doc/lex/lexer_quickstart2.qbk | 16 ++++++++--------
   trunk/libs/spirit/doc/spirit2.qbk | 4 ++--
   6 files changed, 16 insertions(+), 16 deletions(-)

Modified: trunk/libs/spirit/doc/lex/introduction.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/introduction.qbk (original)
+++ trunk/libs/spirit/doc/lex/introduction.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -1,5 +1,5 @@
 [/==============================================================================
- Copyright (C) 2001-2008 Joel de Guzman
+ Copyright (C) 2001-2009 Joel de Guzman
     Copyright (C) 2001-2009 Hartmut Kaiser
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/libs/spirit/doc/lex/lexer_attributes.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/lexer_attributes.qbk (original)
+++ trunk/libs/spirit/doc/lex/lexer_attributes.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -1,5 +1,5 @@
 [/==============================================================================
- Copyright (C) 2001-2008 Joel de Guzman
+ Copyright (C) 2001-2009 Joel de Guzman
     Copyright (C) 2001-2009 Hartmut Kaiser
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/libs/spirit/doc/lex/lexer_primitives.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/lexer_primitives.qbk (original)
+++ trunk/libs/spirit/doc/lex/lexer_primitives.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -1,5 +1,5 @@
 [/==============================================================================
- Copyright (C) 2001-2008 Joel de Guzman
+ Copyright (C) 2001-2009 Joel de Guzman
     Copyright (C) 2001-2009 Hartmut Kaiser
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying

Modified: trunk/libs/spirit/doc/lex/lexer_quickstart1.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/lexer_quickstart1.qbk (original)
+++ trunk/libs/spirit/doc/lex/lexer_quickstart1.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -1,5 +1,5 @@
 [/==============================================================================
- Copyright (C) 2001-2008 Joel de Guzman
+ Copyright (C) 2001-2009 Joel de Guzman
     Copyright (C) 2001-2009 Hartmut Kaiser
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -13,7 +13,7 @@
 integrated with the other parts of __spirit__ but nevertheless can be used
 separately to build standalone lexical analyzers.
 The first quick start example describes a standalone application:
-counting characters, words and lines in a file, very similar to what the well
+counting characters, words, and lines in a file, very similar to what the well
 known Unix command `wc` is doing (for the full example code see here:
 [@../../example/lex/word_count_functor.cpp word_count_functor.cpp]).
 
@@ -72,7 +72,7 @@
 
 [heading Comparing __lex__ with __flex__]
 
-This example was deliberately chosen to be similar as much as possible to the
+This example was deliberately chosen to be as much as possible similar to the
 equivalent __flex__ program (see below), which isn't too different from what
 has to be written when using __lex__.
 

Modified: trunk/libs/spirit/doc/lex/lexer_quickstart2.qbk
==============================================================================
--- trunk/libs/spirit/doc/lex/lexer_quickstart2.qbk (original)
+++ trunk/libs/spirit/doc/lex/lexer_quickstart2.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -1,5 +1,5 @@
 [/==============================================================================
- Copyright (C) 2001-2008 Joel de Guzman
+ Copyright (C) 2001-2009 Joel de Guzman
     Copyright (C) 2001-2009 Hartmut Kaiser
 
     Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -12,7 +12,7 @@
 section __sec_lex_quickstart_1__ as being overly complex and not being
 written to leverage the possibilities provided by this tool. In particular the
 previous example did not directly use the lexer actions to count the lines,
-words and characters. So the example provided in this step of the tutorial will
+words, and characters. So the example provided in this step of the tutorial will
 show how to use semantic actions in __lex__. Even if it still
 will allow to count text elements only it introduces other new concepts and
 configuration options along the lines (for the full example code
@@ -76,7 +76,7 @@
     [[`bool& matched`] [This boolean value is pre/initialized to `true`.
                              If the functor sets it to `false` the lexer
                              stops calling any semantic actions attached to
- this token and behaves as if the token have not
+ this token and behaves as if the token has not
                              been matched in the first place.]]
     [[`Context& ctx`] [This is a reference to a lexer specific,
                              unspecified type, providing the context for the
@@ -103,10 +103,10 @@
 
 [heading Associating Token Definitions with the Lexer]
 
-If you compare the with the code from __sec_lex_quickstart_1__ with regard to
-the way how token definitions are associated with the lexer, you will notice
-a different syntax being used here. If in the previous example we have been
-using the `self.add()` style of the API, then here we directly assign the token
+If you compare this code to the code from __sec_lex_quickstart_1__ with regard
+to the way how token definitions are associated with the lexer, you will notice
+a different syntax being used here. In the previous example we have been
+using the `self.add()` style of the API, while we here directly assign the token
 definitions to `self`, combining the different token definitions using the `|`
 operator. Here is the code snippet again:
 
@@ -122,7 +122,7 @@
 
 A second difference to the previous example is that we do not explicitly
 specify any token ids to use for the separate tokens. Using semantic actions to
-trigger some useful work free'd us from the need to define these. To ensure
+trigger some useful work has freed us from the need to define those. To ensure
 every token gets assigned a id the __lex__ library internally assigns unique
 numbers to the token definitions, starting with the constant defined by
 `boost::spirit::lex::min_token_id`.

Modified: trunk/libs/spirit/doc/spirit2.qbk
==============================================================================
--- trunk/libs/spirit/doc/spirit2.qbk (original)
+++ trunk/libs/spirit/doc/spirit2.qbk 2009-05-11 14:11:27 EDT (Mon, 11 May 2009)
@@ -8,9 +8,9 @@
 
 [article Spirit
     [quickbook 1.4]
- [version 2.0]
+ [version 2.1]
     [authors [de Guzman, Joel], [Kaiser, Hartmut]]
- [copyright 2001 2002 2003 2004 2005 2006 2007 2008 Joel de Guzman, Hartmut Kaiser]
+ [copyright 2001 2002 2003 2004 2005 2006 2007 2008 2009 Joel de Guzman, Hartmut Kaiser]
     [purpose Parser and Generator Library]
     [license
         Distributed under the Boost Software License, Version 1.0.


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