|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56095 - in trunk/libs/spirit: example/lex example/lex/static_lexer test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-07 18:00:08
Author: hkaiser
Date: 2009-09-07 18:00:07 EDT (Mon, 07 Sep 2009)
New Revision: 56095
URL: http://svn.boost.org/trac/boost/changeset/56095
Log:
Spirit: fixing examples
Text files modified:
trunk/libs/spirit/example/lex/example5.cpp | 4 ++--
trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.cpp | 2 +-
trunk/libs/spirit/example/lex/word_count_lexer.cpp | 2 +-
trunk/libs/spirit/test/lex/regression001.cpp | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/libs/spirit/example/lex/example5.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/example5.cpp (original)
+++ trunk/libs/spirit/example/lex/example5.cpp 2009-09-07 18:00:07 EDT (Mon, 07 Sep 2009)
@@ -72,7 +72,7 @@
}
// these tokens have no attribute
- token_def<omit> if_, while_;
+ token_def<lex::omit> if_, while_;
// The following two tokens have an associated attribute type, 'identifier'
// carries a string (the identifier name) and 'constant' carries the
@@ -182,7 +182,7 @@
}
// this token has no attribute
- token_def<omit> else_;
+ token_def<lex::omit> else_;
};
///////////////////////////////////////////////////////////////////////////////
Modified: trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.cpp (original)
+++ trunk/libs/spirit/example/lex/static_lexer/word_count_lexer_static.cpp 2009-09-07 18:00:07 EDT (Mon, 07 Sep 2009)
@@ -45,7 +45,7 @@
//
// As a result the token instances contain the token ids as the only data
// member.
- typedef lexertl::token<char const*, omit, boost::mpl::false_> token_type;
+ typedef lexertl::token<char const*, lex::omit, boost::mpl::false_> token_type;
// Define the lexer type to be used as the base class for our token
// definition.
Modified: trunk/libs/spirit/example/lex/word_count_lexer.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/word_count_lexer.cpp (original)
+++ trunk/libs/spirit/example/lex/word_count_lexer.cpp 2009-09-07 18:00:07 EDT (Mon, 07 Sep 2009)
@@ -112,7 +112,7 @@
type and an iterator, both holding no lexer state, allowing for even more
aggressive optimizations. As a result the token instances contain the token
ids as the only data member.
->*/ typedef lexertl::token<char const*, omit, boost::mpl::false_> token_type;
+>*/ typedef lexertl::token<char const*, lex::omit, boost::mpl::false_> token_type;
/*< This defines the lexer type to use
>*/ typedef lexertl::actor_lexer<token_type> lexer_type;
Modified: trunk/libs/spirit/test/lex/regression001.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/regression001.cpp (original)
+++ trunk/libs/spirit/test/lex/regression001.cpp 2009-09-07 18:00:07 EDT (Mon, 07 Sep 2009)
@@ -43,7 +43,7 @@
std::string str ("test");
// token type
- typedef lexertl::token<base_iterator, omit, boost::mpl::false_> token_type;
+ typedef lexertl::token<base_iterator, lex::omit, boost::mpl::false_> token_type;
// lexer type
typedef lexertl::actor_lexer<token_type> lexer_type;
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