summaryrefslogtreecommitdiff
path: root/pyinterp.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 05:10:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 05:59:38 -0400
commit4518ea95408e2d5fe90a87159b88bb41734ec1dc (patch)
tree3026169803aaea580d8b452cb9bb8a569c92fb2a /pyinterp.h
parent63039ade9209bced70b3e4dbb673ad90286d310a (diff)
downloadfork-ledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.tar.gz
fork-ledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.tar.bz2
fork-ledger-4518ea95408e2d5fe90a87159b88bb41734ec1dc.zip
Value expression architecture is now rewritten, but the functionality of the
old system (for example, the meaning of 'a') has yet to be restored. In the new scheme, this will be done by definition a function outside of the value expression logic, rather than the tight coupling between journal innards and value expressions that occurred in 2.x.
Diffstat (limited to 'pyinterp.h')
-rw-r--r--pyinterp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyinterp.h b/pyinterp.h
index dbc3f754..4d3ac0c8 100644
--- a/pyinterp.h
+++ b/pyinterp.h
@@ -32,7 +32,7 @@
#ifndef _PYINTERP_H
#define _PYINTERP_H
-#include "valexpr.h"
+#include "scope.h"
#include <boost/python.hpp>
#include <Python.h>
@@ -40,7 +40,7 @@
namespace ledger {
class python_interpreter_t
- : public noncopyable, public expr::symbol_scope_t
+ : public noncopyable, public expr_t::symbol_scope_t
{
boost::python::handle<> mmodule;
@@ -49,7 +49,7 @@ class python_interpreter_t
public:
boost::python::dict nspace;
- python_interpreter_t(expr::scope_t& parent);
+ python_interpreter_t(expr_t::scope_t& parent);
virtual ~python_interpreter_t() {
TRACE_DTOR(python_interpreter_t);
@@ -89,14 +89,14 @@ public:
virtual ~functor_t() throw() {
TRACE_DTOR(functor_t);
}
- virtual value_t operator()(expr::call_scope_t& args);
+ virtual value_t operator()(expr_t::call_scope_t& args);
};
- virtual expr::ptr_op_t lookup(const string& name) {
+ virtual expr_t::ptr_op_t lookup(const string& name) {
if (boost::python::object func = eval(name))
return WRAP_FUNCTOR(functor_t(name, func));
else
- return expr::symbol_scope_t::lookup(name);
+ return expr_t::symbol_scope_t::lookup(name);
}
class lambda_t : public functor_t {
@@ -111,7 +111,7 @@ public:
virtual ~lambda_t() throw() {
TRACE_DTOR(lambda_t);
}
- virtual value_t operator()(expr::call_scope_t& args);
+ virtual value_t operator()(expr_t::call_scope_t& args);
};
};