lots of changes
[cdsspec-compiler.git] / src / edu / uci / eecs / specCompiler / specExtraction / ParserUtils.java
index ca78b4300497b7b024e6e4bb2aa0e7ee844720c8..c70aa94619e7bf821d03a01a123b9ed1e88766cb 100644 (file)
@@ -2,8 +2,6 @@ package edu.uci.eecs.specCompiler.specExtraction;
 
 import java.util.ArrayList;
 
-import edu.uci.eecs.specCompiler.codeGenerator.InterfaceWrongFormatException;
-
 public class ParserUtils {
        public static String trimSpace(String line) {
                int i, j;
@@ -23,4 +21,12 @@ public class ParserUtils {
                else
                        return line.substring(i, j + 1);
        }
+       
+       public static String array2Str(ArrayList code) {
+               StringBuilder sb = new StringBuilder();
+               for (int i = 0; i < code.size(); i++) {
+                       sb.append(code.get(i) + "\n");
+               }
+               return sb.toString();
+       }
 }