From: adam Date: Mon, 1 Jan 2007 03:19:57 +0000 (+0000) Subject: commented out body of STF X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=c293f2699600b1d1285edb2ab97e7ca240e58188;hp=5ba9f803ce71d4e2d332b4854ddbaece927e8789;p=org.ibex.util.git commented out body of STF darcs-hash:20070101031957-5007d-95bd6135d0873300f71acf26de897578a5ccfe95.gz --- diff --git a/src/org/ibex/util/STF.java b/src/org/ibex/util/STF.java new file mode 100644 index 0000000..5dcbf31 --- /dev/null +++ b/src/org/ibex/util/STF.java @@ -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); + } + + */ +}