Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61194 - trunk/libs/spirit/example/scheme
From: joel_at_[hidden]
Date: 2010-04-11 05:30:48


Author: djowel
Date: 2010-04-11 05:30:47 EDT (Sun, 11 Apr 2010)
New Revision: 61194
URL: http://svn.boost.org/trac/boost/changeset/61194

Log:
renaming
Text files modified:
   trunk/libs/spirit/example/scheme/scheme_compiler.hpp | 4 ++--
   trunk/libs/spirit/example/scheme/scheme_interpreter.hpp | 16 ++++++++--------
   2 files changed, 10 insertions(+), 10 deletions(-)

Modified: trunk/libs/spirit/example/scheme/scheme_compiler.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/scheme_compiler.hpp (original)
+++ trunk/libs/spirit/example/scheme/scheme_compiler.hpp 2010-04-11 05:30:47 EDT (Sun, 11 Apr 2010)
@@ -106,7 +106,7 @@
                 local_env.define(args[i], f);
             }
             env.define(name,
- function_composer(call(compile(body, local_env), args.size())));
+ function_composer(lambda(compile(body, local_env), args.size())));
         }
 
         void define_nullary_function(
@@ -114,7 +114,7 @@
             utree const& body) const
         {
             env.define(name,
- function_composer(call(compile(body, env), 0)));
+ function_composer(lambda(compile(body, env), 0)));
         }
 
         template <typename Iterator>

Modified: trunk/libs/spirit/example/scheme/scheme_interpreter.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/scheme_interpreter.hpp (original)
+++ trunk/libs/spirit/example/scheme/scheme_interpreter.hpp 2010-04-11 05:30:47 EDT (Sun, 11 Apr 2010)
@@ -234,13 +234,13 @@
     function_composer const plus = plus_composer();
 
     ///////////////////////////////////////////////////////////////////////////
- // call
+ // lambda
     ///////////////////////////////////////////////////////////////////////////
- struct call_function
+ struct lambda_function
     {
         actor_list elements;
         actor f;
- call_function(actor const& f, actor_list const& elements)
+ lambda_function(actor const& f, actor_list const& elements)
           : elements(elements), f(f) {}
 
         typedef utree result_type;
@@ -255,11 +255,11 @@
         }
     };
 
- struct call_composer
+ struct lambda_composer
     {
         actor f;
         int arity;
- call_composer(actor const& f, int arity)
+ lambda_composer(actor const& f, int arity)
           : f(f), arity(arity) {}
 
         typedef actor result_type;
@@ -267,13 +267,13 @@
         {
             // $$$ use throw $$$
             BOOST_ASSERT(elements.size() == arity);
- return actor(call_function(f, elements));
+ return actor(lambda_function(f, elements));
         }
     };
 
- inline function_composer const call(actor const& f, int arity)
+ inline function_composer const lambda(actor const& f, int arity)
     {
- return call_composer(f, arity);
+ return lambda_composer(f, arity);
     }
 }
 


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