From 799bc0f3253172bd0cc3b54c90566825ac1a51c9 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 2 Jan 2006 01:53:27 -0500 Subject: [PATCH] eliminated Token.Location.getContext() darcs-hash:20060102065327-5007d-ecedeead6e7d086fb83123c41672ce3fd781750b.gz --- src/edu/berkeley/sbp/Parser.java | 2 +- src/edu/berkeley/sbp/Token.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 { diff --git a/src/edu/berkeley/sbp/Token.java b/src/edu/berkeley/sbp/Token.java index 07edde3..faa02b9 100644 --- a/src/edu/berkeley/sbp/Token.java +++ b/src/edu/berkeley/sbp/Token.java @@ -23,7 +23,6 @@ public interface Token { /** a location within the input stream */ public static interface Location { public String toString(); - public String getContext(); } } -- 1.7.10.4