checkpoint
[sbp.git] / src / edu / berkeley / sbp / Repeat.java
index 89199c5..2028847 100644 (file)
@@ -23,6 +23,7 @@ class Repeat extends Union {
         }
         if (zeroOkay) {
             add(new Sequence.RewritingSequence(tag, new Element[] { }, null));
+            //add(new Sequence.Constant.Empty());
             // FUGLY
             add(new Sequence.Singleton(Sequence.many1(e, separator, tag)));
         } else {
@@ -51,7 +52,7 @@ class Repeat extends Union {
 
 
     /** an atom which tracks the inverse of some other atom */
-    private static class Invert<T extends Input> extends Atom<T> {
+    static class Invert<T extends Input> extends Atom<T> {
         private final Atom<T> a;
         public Invert(Atom<T> a) { this.a = a; }
         public Topology<T> top() { return a.complement(); }