update API in Repeat
authoradam <adam@megacz.com>
Mon, 26 Mar 2007 05:40:30 +0000 (01:40 -0400)
committeradam <adam@megacz.com>
Mon, 26 Mar 2007 05:40:30 +0000 (01:40 -0400)
darcs-hash:20070326054030-5007d-215c9bbc271cdc5004b5aea6cb46d7e13de892de.gz

src/edu/berkeley/sbp/meta/Repeat.java

index b3f1841..6308362 100644 (file)
@@ -20,7 +20,8 @@ public class Repeat extends Union {
     protected Repeat(final Element e, boolean zeroOkay, boolean manyOkay, final Element separator, boolean maximal, Object tag, Atom follow) {
         super(e+(!manyOkay ? "?" : (zeroOkay ? (maximal ? "**" : "*") : (maximal ? "++" : "+")))+(separator==null?"":("/"+separator)), true);
         if (zeroOkay && !manyOkay) {
-            add(Sequence.create().followedBy(follow));
+            // FIXME
+            add(Sequence.create(new Element[0], tag).followedBy(follow));
             add(Sequence.create(e).followedBy(follow));
             return;
         }