public static void RuntimeError(RuntimeError error) { Report(error.Token.Line, "", error.Message); }
public static void RuntimeError(RuntimeError runtimeError) { Console.Error.WriteLine(runtimeError.GetMessage() + "\n[line " + runtimeError.token.line + "]"); hadRuntimeError = true; }
public static void RuntimeError(RuntimeError error) { Console.WriteLine(error.ErrorMessage + "\n[line " + error.Token.Line + "]"); HadError = true; }
public static void RuntimeError(RuntimeError error) { Console.Error.WriteLine($"{error.Message}\n[line {error.token.line}]"); hadRuntimeError = true; }