checkpoint
[sbp.git] / src / edu / berkeley / sbp / misc / MetaGrammar.java
index 0f75ecd..627300d 100644 (file)
@@ -93,7 +93,7 @@ public class MetaGrammar extends ReflectiveWalker {
         return new Rep(r, (Element)s, false, true);
     }
     //public Element _star__slash_(final Element r, Element s) { return Repeat.many0(r, s); }
         return new Rep(r, (Element)s, false, true);
     }
     //public Element _star__slash_(final Element r, Element s) { return Repeat.many0(r, s); }
-    //public Element _star__star_(final Element r, Element s) { return Repeat.maximal(Repeat.many0(r, s)); }
+    public Object _star__star_(final Element r) { return new Rep(r, null, true, true); }
     public Object _plus__plus_(final Element r) { return new Rep(r, null, true, false); }
         public Element _question_(final Element r) { return Repeat.maybe(r); }
         public MetaGrammar gram(Object o, MetaGrammar g, Object o2) { return g; }
     public Object _plus__plus_(final Element r) { return new Rep(r, null, true, false); }
         public Element _question_(final Element r) { return Repeat.maybe(r); }
         public MetaGrammar gram(Object o, MetaGrammar g, Object o2) { return g; }