From c47350dce9c666987f924c54507973fc11587b2e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 21 Feb 2012 03:53:00 -0600 Subject: Corrected handling of nested definitions --- src/parser.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/parser.cc') diff --git a/src/parser.cc b/src/parser.cc index ad621106..6197af6b 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -517,14 +517,10 @@ expr_t::parser_t::parse_value_expr(std::istream& in, ptr_op_t seq(new op_t(op_t::O_SEQ)); if (! chain) { seq->set_left(node); - ptr_op_t scope(new op_t(op_t::SCOPE)); - scope->set_left(seq); - node = scope; + node = seq; } else { seq->set_left(chain->right()); - ptr_op_t scope(new op_t(op_t::SCOPE)); - scope->set_left(seq); - chain->set_right(scope); + chain->set_right(seq); } seq->set_right(parse_assign_expr(in, tflags)); chain = seq; -- cgit v1.2.3