Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56144 - in trunk/libs/spirit: example/lex/static_lexer test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-10 21:32:28


Author: hkaiser
Date: 2009-09-10 21:32:27 EDT (Thu, 10 Sep 2009)
New Revision: 56144
URL: http://svn.boost.org/trac/boost/changeset/56144

Log:
Spirit: added static lexer version verifying compatibility with generated tables, regenerated static lexer examples
Text files modified:
   trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.hpp | 7 +++++--
   trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp | 7 +++++--
   trunk/libs/spirit/test/lex/matlib.h | 2 +-
   3 files changed, 11 insertions(+), 5 deletions(-)

Modified: trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.hpp
==============================================================================
--- trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.hpp (original)
+++ trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.hpp 2009-09-10 21:32:27 EDT (Thu, 10 Sep 2009)
@@ -6,8 +6,8 @@
 
 // Auto-generated by boost::lexer, do not edit
 
-#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_WCL_SEP_10_2009_13_33_36)
-#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_WCL_SEP_10_2009_13_33_36
+#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_WCL_SEP_10_2009_20_29_30)
+#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_WCL_SEP_10_2009_20_29_30
 
 #include <boost/detail/iterator.hpp>
 #include <boost/spirit/home/support/detail/lexer/char_traits.hpp>
@@ -127,6 +127,9 @@
 // this defines a generic accessors for the information above
 struct lexer_wcl
 {
+ // version number of compatible static lexer engine
+ enum { static_version = 65536 };
+
     // return the number of lexer states
     static std::size_t const state_count()
     {

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-09-10 21:32:27 EDT (Thu, 10 Sep 2009)
@@ -6,8 +6,8 @@
 
 // Auto-generated by boost::lexer, do not edit
 
-#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_WC_SEP_10_2009_13_34_06)
-#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_WC_SEP_10_2009_13_34_06
+#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_WC_SEP_10_2009_20_29_29)
+#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_WC_SEP_10_2009_20_29_29
 
 #include <boost/detail/iterator.hpp>
 #include <boost/spirit/home/support/detail/lexer/char_traits.hpp>
@@ -127,6 +127,9 @@
 // this defines a generic accessors for the information above
 struct lexer_wc
 {
+ // version number of compatible static lexer engine
+ enum { static_version = 65536 };
+
     // return the number of lexer states
     static std::size_t const state_count()
     {

Modified: trunk/libs/spirit/test/lex/matlib.h
==============================================================================
--- trunk/libs/spirit/test/lex/matlib.h (original)
+++ trunk/libs/spirit/test/lex/matlib.h 2009-09-10 21:32:27 EDT (Thu, 10 Sep 2009)
@@ -56,7 +56,7 @@
 };
 
 template <class Lexer>
-struct matlib_tokens:boost::spirit::lex::lexer<Lexer>
+struct matlib_tokens : boost::spirit::lex::lexer<Lexer>
 {
     matlib_tokens(std::vector<std::vector<double> > &a)
       : matrix(a)


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