this.synthetic = synthetic;
}
- /** display form for the Union (ie not including the RHS) */
final String shortForm;
-
- /** this is just a hint to use when printing out the grammar in visual form */
final boolean synthetic;
-
- /** the actual alternatives */
private final List<Sequence> alternatives = new ArrayList<Sequence>();
public Iterator<Sequence> iterator() { return alternatives.iterator(); }
if (alternatives.size()==0) {
sb.append(StringUtil.pad(15, shortForm) + " = ");
} else for(Sequence s : this) {
+ // FIXME: what to do here about printing out negated sequences?
sb.append(StringUtil.pad(15, first ? shortForm : "") + (first ? " = " : " | "));
first = false;
sb.append(s.toString());