diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-08 18:50:21 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-08 18:50:21 -0400 |
commit | a42ecd59389c424089a351d96c09664ed5e33a03 (patch) | |
tree | 0a785eecd56db60e1b9fc7881a89365c69932ba5 /src/parser.cc | |
parent | d6fd0cd24f6d1c67f8456ad3f394c3ea9dc7afc4 (diff) | |
download | ledger-a42ecd59389c424089a351d96c09664ed5e33a03.tar.gz ledger-a42ecd59389c424089a351d96c09664ed5e33a03.tar.bz2 ledger-a42ecd59389c424089a351d96c09664ed5e33a03.zip |
Removed all use of USE_BOOST_PYTHON from the main Ledger sources. When Python
support is enabled for use within Ledger, it will do so through the current
scoping mechanism.
Diffstat (limited to 'src/parser.cc')
-rw-r--r-- | src/parser.cc | 32 |
1 files changed, 0 insertions, 32 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; } |