// Syntax: twice { doFunnyStuff(); } // Replaced with: for (i = 0 to 2, you get the drift) { doFunnyStuff(); } !752 p { L tok = tokMainJava(); tok = replaceKeywordBlock(tok, // keyword to match "twice", // beginning of replacement block "for (int __twice = 0; __twice < 2; __twice++) {", // end of replacement block "}"); saveMainJava(tok); }