diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 05:13:06 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 05:13:06 +0000 |
commit | f61164c77c5c21a32b58ad61c868bd8ff6a4a79e (patch) | |
tree | 951cc581d22bac8ad615697b19e879e22578d10c /cpp/sca/modules/eval/driver.hpp | |
parent | 0969cc21d093f9450c36e7f63cddc4f5aa44b238 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | cpp/sca/modules/eval/driver.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); @@ -71,4 +72,5 @@ const bool evalDriverRun(std::istream& in, std::ostream& out) { } } +} #endif /* tuscany_eval_driver_hpp */ |