public String scString() { String ret = ""; ret += spec.specString(true) + "\r\n"; ret += startIntentBraceBlock(); ret += addLF(declarative_part.toString()); String[] lvars = declarative_part.getLoopVar(); if (lvars != null && lvars.length > 0) { ret += intent() + "int "; for (int i = 0; i < lvars.length; i++) { ret += lvars[i]; if (i < lvars.length - 1) { ret += ", "; } } ret += ";\r\n"; } ret += "\r\n"; ret += addLF(statement_part.toString()); ret += endIntentBraceBlock(); return ret; }
@Override public String getDeclaration() { String ret = spec.specString(false) + ";\r\n"; return ret; }