public Token.Location getLocation() { return location; }
public String toString() { return message/* + (location==null ? "" : (" at " + location))*/; }
- public static void complain(Node n, HashMap<String,HashSet<String>> errors, boolean force) {
- if (n.touched) return;
- n.touched = true;
+ public static <Tok> void complain(GSS.Phase<Tok>.Node n, HashMap<String,HashSet<String>> errors, boolean force) {
+ //if (n.touched) return;
+ //n.touched = true;
for(Position p : n.state) {
if (((p.isFirst() || p.isLast()) && !force) || p.owner().name==null) {
for(Node n2 : n.parents())
}
return ANSI.purple(ret.toString());
}
- public static String error(String message, Token token, Iterable<Node> nodes) {
+ public static String error(String message, Object token, Iterable<Node> nodes) {
String lookAhead = token==null ? "<EOF>" : token.toString();
StringBuffer ret = new StringBuffer();
ret.append("\n ");