diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 21:22:07 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 21:22:07 -0600 |
commit | ae4ef7a88ddd39ed544383e65d3c55ba97f4f8c1 (patch) | |
tree | 53935489e3a30d1e4a501bd10bd2fb8e607f57f7 /src/parser.cc | |
parent | e7de77d8dfc764fd3764dc45d397d5f8454414be (diff) | |
download | fork-ledger-ae4ef7a88ddd39ed544383e65d3c55ba97f4f8c1.tar.gz fork-ledger-ae4ef7a88ddd39ed544383e65d3c55ba97f4f8c1.tar.bz2 fork-ledger-ae4ef7a88ddd39ed544383e65d3c55ba97f4f8c1.zip |
More work done on proper evaluation of lambdas
Diffstat (limited to 'src/parser.cc')
-rw-r--r-- | src/parser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.cc b/src/parser.cc index b3f50e41..ce70a49e 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -485,7 +485,9 @@ expr_t::parser_t::parse_lambda_expr(std::istream& in, ptr_op_t prev(node); node = new op_t(op_t::O_LAMBDA); node->set_left(prev); - node->set_right(parse_querycolon_expr(in, tflags)); + ptr_op_t scope(new op_t(op_t::SCOPE)); + scope->set_left(parse_querycolon_expr(in, tflags)); + node->set_right(scope); } else { push_token(tok); } |