checkpoint
authoradam <adam@megacz.com>
Sun, 16 Jul 2006 07:59:31 +0000 (03:59 -0400)
committeradam <adam@megacz.com>
Sun, 16 Jul 2006 07:59:31 +0000 (03:59 -0400)
darcs-hash:20060716075931-5007d-ccf1209e69ed0de1ee8fcf8c2347b46c1a895e3e.gz

TODO
src/edu/berkeley/sbp/Union.java

diff --git a/TODO b/TODO
index d58eb06..31dbd1d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,9 @@
 _____________________________________________________________________________
 Immediately
 
 _____________________________________________________________________________
 Immediately
 
+  * we can nuke Atom.toAtom() now!
+  - Topology crap is kinda messed up
+
   - do Forest/Tree still need a Region?
   - reconsider the degree of genericization
   - GraphViz stuff pollutes the API...
   - do Forest/Tree still need a Region?
   - reconsider the degree of genericization
   - GraphViz stuff pollutes the API...
index 484616d..ece239d 100644 (file)
@@ -14,6 +14,9 @@ public class Union extends Element implements Iterable<Sequence> {
     private final boolean synthetic;
     private final List<Sequence> alternatives = new ArrayList<Sequence>();
 
     private final boolean synthetic;
     private final List<Sequence> alternatives = new ArrayList<Sequence>();
 
+    public Union() { this(null, false); }
+    public Union(String name) { this(name, false); }
+
     /**
      *  Since every cycle in a non-degenerate grammar contains at
      *  least one Union, every instance of this class must be able to
     /**
      *  Since every cycle in a non-degenerate grammar contains at
      *  least one Union, every instance of this class must be able to
@@ -23,8 +26,6 @@ public class Union extends Element implements Iterable<Sequence> {
      *  @param shortForm the "short form" display; usually 
      *  @param synthetic if true, this Union's "long form" is "obvious" and should not be displayed when printing the grammar
      */
      *  @param shortForm the "short form" display; usually 
      *  @param synthetic if true, this Union's "long form" is "obvious" and should not be displayed when printing the grammar
      */
-    public Union() { this(null, false); }
-    public Union(String name) { this(name, false); }
     public Union(String name, boolean synthetic) {
         this.name = name;
         this.synthetic = synthetic;
     public Union(String name, boolean synthetic) {
         this.name = name;
         this.synthetic = synthetic;
@@ -42,6 +43,7 @@ public class Union extends Element implements Iterable<Sequence> {
         for(Sequence n : s.hates) add(n);
     }
 
         for(Sequence n : s.hates) add(n);
     }
 
+
     // Epsilon Form //////////////////////////////////////////////////////////////////////////////
 
     // FIXME
     // Epsilon Form //////////////////////////////////////////////////////////////////////////////
 
     // FIXME
@@ -57,6 +59,7 @@ public class Union extends Element implements Iterable<Sequence> {
         return epsilonForm;
     }
 
         return epsilonForm;
     }
 
+
     // Display //////////////////////////////////////////////////////////////////////////////
 
     public String getName() {
     // Display //////////////////////////////////////////////////////////////////////////////
 
     public String getName() {