diff options
-rw-r--r-- | src/parser.cc | 32 | ||||
-rw-r--r-- | src/session.h | 13 |
2 files changed, 0 insertions, 45 deletions
diff --git a/src/parser.cc b/src/parser.cc index 4795c8f7..1aab840e 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -53,33 +53,6 @@ expr_t::parser_t::parse_value_term(std::istream& in, break; case token_t::IDENT: { -#if 0 -#ifdef USE_BOOST_PYTHON - if (tok.value->as_string() == "lambda") // special - try { - char c, buf[4096]; - - std::strcpy(buf, "lambda "); - READ_INTO(in, &buf[7], 4000, c, true); - - ptr_op_t eval = new op_t(op_t::O_EVAL); - ptr_op_t lambda = new op_t(op_t::FUNCTION); - lambda->functor = new python_functor_t(python_eval(buf)); - eval->set_left(lambda); - ptr_op_t sym = new op_t(op_t::SYMBOL); - sym->name = new string("__ptr"); - eval->set_right(sym); - - node = eval; - - goto done; - } - catch(const boost::python::error_already_set&) { - throw_(parse_error, "Error parsing lambda expression"); - } -#endif /* USE_BOOST_PYTHON */ -#endif - string ident = tok.value.as_string(); // An identifier followed by ( represents a function call @@ -126,11 +99,6 @@ expr_t::parser_t::parse_value_term(std::istream& in, break; } -#if 0 -#ifdef USE_BOOST_PYTHON - done: -#endif -#endif return node; } diff --git a/src/session.h b/src/session.h index dc78d6f5..36da0a53 100644 --- a/src/session.h +++ b/src/session.h @@ -224,19 +224,6 @@ See LICENSE file included with the distribution for details and disclaimer.\n"; data_file = args[0].as_string(); return NULL_VALUE; } - -#if 0 -#if defined(USE_BOOST_PYTHON) - value_t option_import_(call_scope_t& args) { - python_import(optarg); - return NULL_VALUE; - } - value_t option_import_stdin(call_scope_t& args) { - python_eval(std::cin, PY_EVAL_MULTI); - return NULL_VALUE; - } -#endif -#endif }; /** |