public void AddRuntimeError(RuntimeError err) { Console.Error.WriteLine("{0}:{1}: {2}", _file, err.Op.Line, err.Message); ++_count; }
public static void RuntimeError(RuntimeError error) { Console.Error.WriteLine($"{error.Message}\n[line {error.Token.Line}]"); _hadRuntimeError = true; }
public static void RuntimeError(RuntimeError error) { Console.Error.WriteLine(error.Message + "\n[line " + error.token.line + "]"); hadRuntimeError = true; }