From f3c26ea55e2f2c1d222312bf75035359c439ed21 Mon Sep 17 00:00:00 2001 From: fche Date: Sun, 5 Jun 2005 16:35:28 +0000 Subject: 2005-06-05 Frank Ch. Eigler Implement for/next/continue/break/while statements. * staptree.h: Declare new 0-arity statement types. Tweak for_loop. * parse.cxx: Parse them all. * translate.cxx (c_unparser): Maintain break/continue label stack. (visit_for_loop, *_statement): New implementations. * elaborate.*, staptree.cxx: Mechanical changes. * testsuite/parseok/ten.stp, semko/twelve.stp, transko/two.stp, transok/five.stp: New tests. --- elaborate.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index c6596da6..f3edd81b 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1003,6 +1003,24 @@ typeresolution_info::visit_delete_statement (delete_statement* e) } +void +typeresolution_info::visit_next_statement (next_statement* s) +{ +} + + +void +typeresolution_info::visit_break_statement (break_statement* s) +{ +} + + +void +typeresolution_info::visit_continue_statement (continue_statement* s) +{ +} + + void typeresolution_info::visit_array_in (array_in* e) { -- cgit