29 using namespace opencog;
36 throw RuntimeException(TRACE_INFO,
37 "Scheme: Failed to execute '%s'", s.c_str());
41 throw RuntimeException(TRACE_INFO,
42 "Scheme: Syntax error in input: '%s'", s.c_str());
52 std::string scheme_return_value = evaluator->
eval(s);
54 return scheme_return_value;
56 return "Error: Compiled without Guile support";
67 return scheme_return_value;
69 return "Error: Compiled without Guile support";
std::string eval(const std::string &expr)
virtual bool eval_error(void)
static SchemeEval * get_evaluator(AtomSpace *=NULL)
Handle eval_h(const std::string &)
static void check_err(SchemeEval *evaluator, const std::string &s)
virtual bool input_pending()
Handle eval_scheme_h(AtomSpace &as, const std::string &s)
std::string eval_scheme(AtomSpace &as, const std::string &s)