X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FParser.java;h=a54fa08df2eb57ee147e1d210b402a8dae7957ea;hp=6bf274d30ecb6bde3135d9fce9061321c9a63d47;hb=799bc0f3253172bd0cc3b54c90566825ac1a51c9;hpb=96a2822a729e563a64173f22dc184bc972a200ef diff --git a/src/edu/berkeley/sbp/Parser.java b/src/edu/berkeley/sbp/Parser.java index 6bf274d..a54fa08 100644 --- a/src/edu/berkeley/sbp/Parser.java +++ b/src/edu/berkeley/sbp/Parser.java @@ -62,7 +62,7 @@ public abstract class Parser { public Failed() { this("", null); } public Failed(String message, Token.Location loc) { this.location = loc; this.message = message; } public Token.Location getLocation() { return location; } - public String toString() { return message + (location==null ? "" : (" at " + location + "\n" + location.getContext())); } + public String toString() { return message + (location==null ? "" : (" at " + location)); } } public static class Ambiguous extends RuntimeException {