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

Modified Files:
        lambda.cpp 
Log Message:
use vararg, nary_expr and nary fold to simplify LambdaGrammar

Index: lambda.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/proto/test/lambda.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- lambda.cpp  26 Jan 2007 03:06:15 -0000      1.4
+++ lambda.cpp  1 Feb 2007 01:23:56 -0000       1.5
@@ -49,14 +49,15 @@
     {};
 };
 
+using proto::_;
+
 // The lambda grammar, with the transforms for calculating the max arity
 struct LambdaGrammar
-  : max_arity<
-        proto::or_<
-            placeholder_arity< proto::meta::terminal<placeholder<proto::_> > >
-          , proto::trans::always< proto::meta::terminal<proto::_>, 
mpl::int_<0> >
-          , proto::trans::arg< proto::meta::unary_expr<proto::_, 
LambdaGrammar> >
-          , proto::trans::fold< proto::meta::binary_expr<proto::_, 
LambdaGrammar, LambdaGrammar> >
+  : proto::or_<
+        placeholder_arity< proto::meta::terminal< placeholder<_> > >
+      , proto::trans::always< proto::meta::terminal<_>, mpl::int_<0> >
+      , proto::trans::fold<
+            proto::meta::nary_expr<_, proto::vararg< max_arity< LambdaGrammar 
> > >
         >
     >
 {};


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to