-// Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
+// Copyright 2006-2007 all rights reserved; see LICENSE file for BSD-style license
package edu.berkeley.sbp;
import edu.berkeley.sbp.util.*;
}
/** the Forest which results from matching this Union against the empty string at region <tt>region</tt> */
- Forest epsilonForm(Input.Region region, Cache cache) {
+ Forest epsilonForm(Input.Region region) {
viewed = true;
Forest.Many epsilonForm = new Forest.Many();
for(Sequence s : this)
- if (cache.possiblyEpsilon(s))
- epsilonForm.merge(s.epsilonForm(region, cache));
+ if (Element.possiblyEpsilon(s))
+ epsilonForm.merge(s.epsilonForm(region));
return epsilonForm;
}