checkpoint
[sbp.git] / src / edu / berkeley / sbp / meta / MetaGrammarBindings.java
index 7a18bab..9232d5c 100644 (file)
@@ -246,9 +246,9 @@ public class MetaGrammarBindings extends AnnotationGrammarBindings {
                 for(int i=0; i<els.length; i++)
                     if (!drops[i])
                         if (idx==-1) idx = i;
                 for(int i=0; i<els.length; i++)
                     if (!drops[i])
                         if (idx==-1) idx = i;
-                        else throw new Error("multiple non-dropped elements in sequence: " + Sequence.newConstantSequence(els, null));
+                        else throw new Error("multiple non-dropped elements in sequence: " + Sequence.create(els, null));
                 if (idx != -1) ret = Sequence.create(els, idx);
                 if (idx != -1) ret = Sequence.create(els, idx);
-                else           ret = Sequence.newConstantSequence(els, null);
+                else           ret = Sequence.create(els, null);
             }
             if (this.follow != null)
                 ret = ret.followedBy(this.follow.toAtom(cx));
             }
             if (this.follow != null)
                 ret = ret.followedBy(this.follow.toAtom(cx));