5dcbf314dc4bac1940f9afaec71cdf2a2fe6e53f
[org.ibex.util.git] / src / org / ibex / util / STF.java
1 package org.ibex.util;
2
3 public class STF {
4     /*
5     public static void main(String[] s) throws Exception {
6     }
7
8     public STF() { }
9
10     private BufferedReader r;
11     public setReader(Reader r) { this.r = r instanceof BufferedReader ? (BufferedReader)r : new BufferedReader(r); }
12
13     Vec.Int indents = new Vec.Int();
14
15     public void openGroup() { System.out.println("{"); }
16     public void closeGroup() { System.out.println("}"); }
17     
18     public void foo() {
19         String line = r.readLine();
20         int id = 0;
21         while(line.length() > id && line.charAt(id)==' ') id++;
22         while(indents.size() > 0 && indents.get(indents.size()-1) >= id) { closeGroup(); indents.setSize(indents.size()-1); }
23         openGroup();
24         indents.add(id);
25     }
26
27     */
28 }