Mercurial > hg > octave-max
diff src/pt-pr-code.cc @ 5861:2a6cb4ed8f1e
[project @ 2006-06-16 05:09:41 by jwe]
author | jwe |
---|---|
date | Fri, 16 Jun 2006 05:09:42 +0000 |
parents | 415ae81d331b |
children | 516d3071b34c |
line wrap: on
line diff
--- a/src/pt-pr-code.cc +++ b/src/pt-pr-code.cc @@ -36,6 +36,30 @@ #include "pt-all.h" void +tree_print_code::visit_anon_fcn_handle (tree_anon_fcn_handle& afh) +{ + indent (); + + print_parens (afh, "("); + + os << "@("; + + tree_parameter_list *param_list = afh.parameter_list (); + + if (param_list) + param_list->accept (*this); + + os << ") "; + + tree_statement_list *body = afh.body (); + + if (body) + body->accept (*this); + + print_parens (afh, ")"); +} + +void tree_print_code::visit_argument_list (tree_argument_list& lst) { tree_argument_list::iterator p = lst.begin ();