X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FAmbiguous.java;h=37a857ca0874161e83b9b8127c13685a434de774;hb=8a5250c184672495fae152e096b2e800749cd0db;hp=1acd8cd19ec85cc948513746241db7929c9c99ef;hpb=b8a597c8d1a29afc24f9b89f726d5b1a9b9aeec1;p=sbp.git diff --git a/src/edu/berkeley/sbp/Ambiguous.java b/src/edu/berkeley/sbp/Ambiguous.java index 1acd8cd..37a857c 100644 --- a/src/edu/berkeley/sbp/Ambiguous.java +++ b/src/edu/berkeley/sbp/Ambiguous.java @@ -19,7 +19,8 @@ public class Ambiguous extends Exception { public String toString() { // FIXME: print the input region that was ambiguously matched StringBuffer sb = new StringBuffer(); - sb.append("unresolved ambiguity; shared subtrees are shown as \"*\" "); + sb.append("unresolved ambiguity at "+ambiguity.getRegion()+"; shared subtrees are shown as \"*\" "); + //sb.append("\noffending text: "); for(Tree result : ht) { sb.append("\n possibility: "); StringBuffer sb2 = new StringBuffer();