package semanticanalysis;

import java.util.*;

public abstract class ErrorChecker
{
    private List<String> _errors = new ArrayList<String>();

    public List<String> getErrors()
    {
        return _errors;
    }

    protected void addError(String error, int line, int column)
    {
        _errors.add(formatError(error, line, column));
    }

    private String formatError(String error, int line, int column)
    {
        StringBuilder result = new StringBuilder(error);
        result.append(" at ");
        result.append(line);
        result.append(", character ");
        result.append(column);
        return result.toString();
    } 
}

@@ -501,16 +501,21 @@
 nd(%22 at 
+line 
 %22);%0A    

Fix small formatting bug in error messages