Inferno
0.2
|
00001 /* 00002 * for_to_while.hpp 00003 * 00004 * Created on: 26 Dec 2009 00005 * Author: jgraley 00006 */ 00007 00008 #ifndef FOR_TO_WHILE_HPP 00009 #define FOR_TO_WHILE_HPP 00010 00011 #include "sr/search_replace.hpp" 00012 00013 namespace Steps { 00014 00015 /** Convert for loops into while loops, preserving correct 00016 behaviour of continue, which always means "jump to the 00017 bottom of the body" */ 00018 class ForToWhile : public SearchReplace 00019 { 00020 public: 00021 ForToWhile(); 00022 }; 00023 00024 /** Convert While loops to Do loops */ 00025 class WhileToDo : public SearchReplace 00026 { 00027 public: 00028 WhileToDo(); 00029 }; 00030 00031 }; // end namespace 00032 00033 #endif 00034