|
Boost-Commit : |
From: joel_at_[hidden]
Date: 2008-04-28 07:16:29
Author: djowel
Date: 2008-04-28 07:16:29 EDT (Mon, 28 Apr 2008)
New Revision: 44844
URL: http://svn.boost.org/trac/boost/changeset/44844
Log:
experimental grammar/grammar_def unification
Text files modified:
trunk/libs/spirit/test/qi/grammar.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/libs/spirit/test/qi/grammar.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/grammar.cpp (original)
+++ trunk/libs/spirit/test/qi/grammar.cpp 2008-04-28 07:16:29 EDT (Mon, 28 Apr 2008)
@@ -24,9 +24,9 @@
using namespace boost::spirit::ascii;
using namespace boost::spirit::arg_names;
-struct num_list : grammar_def<char const*, space_type>
+struct num_list : grammar_<char const*, space_type>
{
- num_list()
+ num_list() : base_type(start)
{
using boost::spirit::int_;
num = int_;
@@ -87,8 +87,7 @@
{
{ // simple grammar test
- num_list def;
- grammar<num_list> nlist(def);
+ num_list nlist;
BOOST_TEST(test("123, 456, 789", nlist, space));
}
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