From f61164c77c5c21a32b58ad61c868bd8ff6a4a79e Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 26 Oct 2009 05:13:06 +0000 Subject: Minor refactoring, given each module its own namespace. Added utility functions to convert between values elements/attributes and fixed XML, ATOM and JSON serialization of lists. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@829699 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/sca/modules/eval/driver.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/sca/modules/eval/driver.hpp') diff --git a/cpp/sca/modules/eval/driver.hpp b/cpp/sca/modules/eval/driver.hpp index 7a0645781f..064213706c 100644 --- a/cpp/sca/modules/eval/driver.hpp +++ b/cpp/sca/modules/eval/driver.hpp @@ -31,6 +31,7 @@ #include "eval.hpp" namespace tuscany { +namespace eval { const std::string evalOutputPrompt("; "); const std::string evalInputPrompt("=> "); @@ -57,7 +58,7 @@ const value evalDriverLoop(std::istream& in, std::ostream& out, Env& globalEnv) value input = read(in); if (isNil(input)) return input; - const value output = eval(input, globalEnv); + const value output = evalApply(input, globalEnv); announceOutput(out, evalOutputPrompt); userPrint(out, output); return evalDriverLoop(in, out, globalEnv); @@ -70,5 +71,6 @@ const bool evalDriverRun(std::istream& in, std::ostream& out) { return true; } +} } #endif /* tuscany_eval_driver_hpp */ -- cgit v1.2.3