projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkpoint
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
meta
/
MetaGrammarBindings.java
diff --git
a/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java
b/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java
index
7a18bab
..
9232d5c
100644
(file)
--- a/
src/edu/berkeley/sbp/meta/MetaGrammarBindings.java
+++ b/
src/edu/berkeley/sbp/meta/MetaGrammarBindings.java
@@
-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));