X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FSequence.java;h=83d9b6f16bd3dda24d8b662c430eb71dc1ea1775;hp=ee3fd4ba2090f082f5c669051c291c50e78a8b08;hb=f33c05adc5aa3dd324c5352cdbd6f4b55359acad;hpb=ce56b1e47ae08b71599fe5794f71034f6f53ec5d diff --git a/src/edu/berkeley/sbp/Sequence.java b/src/edu/berkeley/sbp/Sequence.java index ee3fd4b..83d9b6f 100644 --- a/src/edu/berkeley/sbp/Sequence.java +++ b/src/edu/berkeley/sbp/Sequence.java @@ -114,7 +114,11 @@ public abstract class Sequence extends Element implements Iterable { final Forest rewrite(Token.Location loc) { if (this==firstp() && eps) return epsilonForm; eps = true; - for(int i=pos; i ret = Sequence.this.postReduce(loc, holder); for(int k=0; k { public Unwrap(Element[] e, HashSet and, HashSet not) { super(e, and, not); this.drops = null; } public Unwrap(Element[] e, boolean[] drops, HashSet and, HashSet not) { super(e, and, not); this.drops = drops; } public Forest postReduce(Token.Location loc, Forest[] args) { + for(int i=0; i