public void RuntimeError(RuntimeError error) { StdErr.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; }