public static Vector SubstituteInStmtSeq(Vector stmts,Vector args,Vector params,int macroLine,int macroCol) throws ParseAlgorithmException {
  Vector result=new Vector();
  int i=0;
  while (i < stmts.size()) {
    result.addElement(SubstituteInStmt((AST)stmts.elementAt(i),args,params,macroLine,macroCol));
    i=i + 1;
  }
  ;
  return result;
}

public static Vector SubstituteInStmtSeq ( Vector stmts , Vector args , Vector params , int macroLine , int macroCol ) throws ParseAlgorithmException { Vector result = new Vector ( ) ; int i = 0 ; while ( i < stmts . size ( ) ) { result . addElement ( SubstituteInStmt ( ( AST ) stmts . elementAt ( i ) , args , params , macroLine , macroCol ) ) ; i = i + 1 ; } ; return result ; }
the substituteinstmtseq method does substitutions only in the class of statements found in the body of a macro . however , it is simple to define a substituteinlabeledstmtseq method and enhance substituteinstmtseq so the substituteinlabeledstmtseq can be used to do arbitrary substitutions in the body of a process or uniprocess algorithm .
