removed illegal use of double-star
[sbp.git] / src / edu / berkeley / sbp / Tree.java
index 989224c..c2216cc 100644 (file)
@@ -16,6 +16,7 @@ public class Tree<T> {
     public T                 head()     { return head; }
     public int               numChildren() { return children.length; }
     public Iterable<Tree<T>> children() { return new ArrayIterator(children); }
     public T                 head()     { return head; }
     public int               numChildren() { return children.length; }
     public Iterable<Tree<T>> children() { return new ArrayIterator(children); }
+    public Tree<T>           child(int i) { return children[i]; }
 
     public       Token.Location    getLocation() { return location; }
 
 
     public       Token.Location    getLocation() { return location; }