- sb.append("unresolved ambiguity ");
- for(Tree<?> result : ambiguity.expand(false)) {
- sb.append("\n\n");
- result.toPrettyString(sb);
+ sb.append("unresolved ambiguity; shared subtrees are shown as \"*\" ");
+ for(Tree<?> result : ht) {
+ sb.append("\n possibility: ");
+ StringBuffer sb2 = new StringBuffer();
+ result.toPrettyString(sb2);
+ sb.append(StringUtil.indent(sb2.toString(), 15));