8 #ifndef OPENCOG_SCHEME_EVAL_H
9 #define OPENCOG_SCHEME_EVAL_H
12 #include <condition_variable>
21 #include <opencog/util/exceptions.h>
78 void do_eval(
const std::string &);
129 static std::string
prt(SCM);
155 std::string
eval(
const std::string& expr)
157 std::string
eval(
const std::stringstream& ss)
158 {
return eval(ss.str()); }
void eval_expr(const std::string &)
static void * c_wrap_apply_tv(void *)
Handle apply(const std::string &func, Handle varargs)
std::condition_variable _wait_done
void drain_output()
Discard all chars in the outport.
std::shared_ptr< TruthValue > TruthValuePtr
static void init_scheme(void)
static void * c_wrap_eval_tv(void *)
std::string poll_result()
std::string eval(const std::string &expr)
static void * c_wrap_poll(void *)
const std::string * pexpr
Handle eval_h(const std::stringstream &ss)
SCM do_apply_scm(const std::string &func, Handle &varargs)
static SchemeEval * get_evaluator(AtomSpace *=NULL)
Handle eval_h(const std::string &)
static void * c_wrap_eval(void *)
SCM preunwind_handler(SCM, SCM)
std::string do_poll_result()
SCM catch_handler(SCM, SCM)
SchemeEval(AtomSpace *=NULL)
void set_captured_stack(SCM)
static void * c_wrap_finish(void *)
static SCM preunwind_handler_wrapper(void *, SCM, SCM)
void per_thread_init(void)
static void * c_wrap_set_atomspace(void *)
TruthValuePtr apply_tv(const std::string &func, Handle varargs)
static void * c_wrap_apply(void *)
static void set_scheme_as(AtomSpace *)
std::string eval(const std::stringstream &ss)
static void * c_wrap_eval_h(void *)
void set_error_string(SCM)
void do_eval(const std::string &)
SCM do_scm_eval(SCM, SCM(*)(void *))
static SCM catch_handler_wrapper(void *, SCM, SCM)
static std::string prt(SCM)
TruthValuePtr eval_tv(const std::stringstream &ss)
static void * c_wrap_init(void *)
TruthValuePtr eval_tv(const std::string &)
Handle do_apply(const std::string &func, Handle &varargs)