private String reportDeclareSymbolError(String name, int lineNum, int charPos) { String message = "DeclareSymbolError(" + lineNum + "," + charPos + ")[" + name + " already exists.]"; errorBuffer.append(message + "\n"); errorBuffer.append(symbolTable.toString() + "\n"); return message; }
private String reportResolveSymbolError(String name, int lineNum, int charPos) { String message = "ResolveSymbolError(" + lineNum + "," + charPos + ")[Could not find " + name + ".]"; errorBuffer.append(message + "\n"); errorBuffer.append(symbolTable.toString() + "\n"); return message; }