Update of /cvsroot/boost/boost/libs/xpressive/proto/test
In directory 
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19904/libs/xpressive/proto/test

Modified Files:
        matches.cpp proto_fusion.cpp proto_fusion_s.cpp toy_spirit.cpp 
        toy_spirit2.cpp 
Log Message:
rename left_shift to shift_left, non-terminals do not get non-const overloads 
for op=, op[] and op() for better compile times

Index: matches.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/matches.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- matches.cpp 29 Apr 2007 03:38:49 -0000      1.6
+++ matches.cpp 21 May 2007 03:21:34 -0000      1.7
@@ -36,15 +36,15 @@
 
 struct Input
   : or_<
-        right_shift< terminal< std::istream & >, _ >
-      , right_shift< Input, _ >
+        shift_right< terminal< std::istream & >, _ >
+      , shift_right< Input, _ >
     >
 {};
 
 struct Output
   : or_<
-        left_shift< terminal< std::ostream & >, _ >
-      , left_shift< Output, _ >
+        shift_left< terminal< std::ostream & >, _ >
+      , shift_left< Output, _ >
     >
 {};
 
@@ -69,7 +69,7 @@
 };
 
 template<>
-struct MyCases::case_<proto::tag::right_shift>
+struct MyCases::case_<proto::tag::shift_right>
   : proto::_
 {};
 

Index: proto_fusion.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/proto_fusion.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- proto_fusion.cpp    4 Apr 2007 06:42:26 -0000       1.4
+++ proto_fusion.cpp    21 May 2007 03:21:34 -0000      1.5
@@ -27,7 +27,7 @@
 boost::proto::terminal<char>::type h_ = {'h'};
 boost::proto::terminal<char>::type i_ = {'i'};
 
-std::ostream &operator <<(std::ostream &sout, boost::proto::tag::right_shift)
+std::ostream &operator <<(std::ostream &sout, boost::proto::tag::shift_right)
 {
     return sout << ">>";
 }

Index: proto_fusion_s.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/proto_fusion_s.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- proto_fusion_s.cpp  4 Apr 2007 06:42:26 -0000       1.4
+++ proto_fusion_s.cpp  21 May 2007 03:21:34 -0000      1.5
@@ -17,7 +17,7 @@
 #include <boost/utility/addressof.hpp>
 #include <sstream>
 
-std::ostream &operator <<(std::ostream &sout, boost::proto::tag::right_shift)
+std::ostream &operator <<(std::ostream &sout, boost::proto::tag::shift_right)
 {
     return sout << ">>";
 }

Index: toy_spirit.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/toy_spirit.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- toy_spirit.cpp      29 Apr 2007 03:38:49 -0000      1.8
+++ toy_spirit.cpp      21 May 2007 03:21:34 -0000      1.9
@@ -268,7 +268,7 @@
 
         // for A >> B, succeeds if A and B matches.
         template<typename Left, typename Right>
-        bool operator()(proto::tag::right_shift, Left const &left, Right const 
&right)
+        bool operator()(proto::tag::shift_right, Left const &left, Right const 
&right)
         {
             return proto::eval(left, *this) && proto::eval(right, *this);
         }
@@ -462,7 +462,7 @@
         template<typename Expr, typename State, typename Visitor>
         struct apply
         {
-            typedef typename proto::right_shift<
+            typedef typename proto::shift_right<
                 typename proto::dereference<State>::type
               , Expr
             >::type type;
@@ -515,7 +515,7 @@
     struct SpiritComposites
       : proto::or_<
             proto::bitwise_or< Grammar, Grammar >
-          , proto::right_shift< Grammar, Grammar >
+          , proto::shift_right< Grammar, Grammar >
           , proto::minus< Grammar, Grammar >
           , proto::dereference< Grammar >
           , proto::posit< Grammar >

Index: toy_spirit2.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/toy_spirit2.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- toy_spirit2.cpp     29 Apr 2007 03:38:49 -0000      1.11
+++ toy_spirit2.cpp     21 May 2007 03:21:34 -0000      1.12
@@ -323,9 +323,9 @@
     // and wraps the result in a composite<> wrapper
     struct ToySpiritSequence
       : as_composite<
-            proto::tag::right_shift
+            proto::tag::shift_right
           , proto::trans::reverse_fold_to_list<
-                proto::right_shift<ToySpiritGrammar, ToySpiritGrammar>
+                proto::shift_right<ToySpiritGrammar, ToySpiritGrammar>
             >
         >
     {};
@@ -432,7 +432,7 @@
         }
 
         template<typename List>
-        bool operator()(composite<proto::tag::right_shift, List> const 
&sequence) const
+        bool operator()(composite<proto::tag::shift_right, List> const 
&sequence) const
         {
             return fusion::fold(sequence.elems, true, *this);
         }


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to