X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FSequence.java;h=9f2fb59249c7f6890d36909a7bd912a494e665fd;hp=83d9b6f16bd3dda24d8b662c430eb71dc1ea1775;hb=9ded11559a1b6f817e99355b1c9e2c88042e91d4;hpb=f33c05adc5aa3dd324c5352cdbd6f4b55359acad diff --git a/src/edu/berkeley/sbp/Sequence.java b/src/edu/berkeley/sbp/Sequence.java index 83d9b6f..9f2fb59 100644 --- a/src/edu/berkeley/sbp/Sequence.java +++ b/src/edu/berkeley/sbp/Sequence.java @@ -177,7 +177,7 @@ public abstract class Sequence extends Element implements Iterable { public Forest postReduce(Token.Location loc, Forest[] args) { return (Forest)Forest.singleton(loc, args[idx], this); } } - static class Unwrap extends Sequence { + public static class Unwrap extends Sequence { private boolean[] drops; 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; } @@ -194,7 +194,7 @@ public abstract class Sequence extends Element implements Iterable { } static class RewritingSequence extends Sequence { - private final Object tag; + /*private*/public final Object tag; private final boolean[] drops; private int count = 0; public RewritingSequence(Object tag, Element[] e, HashSet and, HashSet not) { this(tag, e, null, and, not); }