commented out body of STF
[org.ibex.util.git] / src / org / ibex / util / STF.java
diff --git a/src/org/ibex/util/STF.java b/src/org/ibex/util/STF.java
new file mode 100644 (file)
index 0000000..5dcbf31
--- /dev/null
@@ -0,0 +1,28 @@
+package org.ibex.util;
+
+public class STF {
+    /*
+    public static void main(String[] s) throws Exception {
+    }
+
+    public STF() { }
+
+    private BufferedReader r;
+    public setReader(Reader r) { this.r = r instanceof BufferedReader ? (BufferedReader)r : new BufferedReader(r); }
+
+    Vec.Int indents = new Vec.Int();
+
+    public void openGroup() { System.out.println("{"); }
+    public void closeGroup() { System.out.println("}"); }
+    
+    public void foo() {
+        String line = r.readLine();
+        int id = 0;
+        while(line.length() > id && line.charAt(id)==' ') id++;
+        while(indents.size() > 0 && indents.get(indents.size()-1) >= id) { closeGroup(); indents.setSize(indents.size()-1); }
+        openGroup();
+        indents.add(id);
+    }
+
+    */
+}