Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53004 - trunk/libs/spirit/example/lex/static_lexer
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-14 17:24:36


Author: hkaiser
Date: 2009-05-14 17:24:35 EDT (Thu, 14 May 2009)
New Revision: 53004
URL: http://svn.boost.org/trac/boost/changeset/53004

Log:
Spirit: Improved lex static code generator
Text files modified:
   trunk/libs/spirit/example/lex/static_lexer/word_count_static.cpp | 2 +-
   trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp | 6 +++---
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/spirit/example/lex/static_lexer/word_count_static.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/static_lexer/word_count_static.cpp (original)
+++ trunk/libs/spirit/example/lex/static_lexer/word_count_static.cpp 2009-05-14 17:24:35 EDT (Thu, 14 May 2009)
@@ -58,7 +58,7 @@
         // associate the defined tokens with the lexer, at the same time
         // defining the actions to be executed
         start = *( tok.word [ ++ref(w), ref(c) += size(_1) ]
- | char_('\n') [ ++ref(l), ++ref(c) ]
+ | lit('\n') [ ++ref(l), ++ref(c) ]
                   | token(IDANY) [ ++ref(c) ]
                   )
               ;

Modified: trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp
==============================================================================
--- trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp (original)
+++ trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp 2009-05-14 17:24:35 EDT (Thu, 14 May 2009)
@@ -6,8 +6,8 @@
 
 // Auto-generated by boost::lexer, do not edit
 
-#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_MAY_14_2009_08_13_47)
-#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_MAY_14_2009_08_13_47
+#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_MAY_14_2009_13_47_08)
+#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_MAY_14_2009_13_47_08
 
 #include <boost/detail/iterator.hpp>
 #include <boost/spirit/home/support/detail/lexer/char_traits.hpp>
@@ -19,7 +19,7 @@
 // this table defines the names of the lexer states
 char const* const lexer_state_names[1] =
 {
- "INITIAL",
+ "INITIAL"
 };
 
 template<typename Iterator>


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