示例#1
0
文件: Lox.cs 项目: sula0/Lox
 public static void RuntimeError(RuntimeError error)
 {
     Report(error.Token.Line, "", error.Message);
 }
示例#2
0
 public static void RuntimeError(RuntimeError runtimeError)
 {
     Console.Error.WriteLine(runtimeError.GetMessage() + "\n[line " + runtimeError.token.line + "]");
     hadRuntimeError = true;
 }
示例#3
0
 public static void RuntimeError(RuntimeError error)
 {
     Console.WriteLine(error.ErrorMessage + "\n[line " + error.Token.Line + "]");
     HadError = true;
 }
示例#4
0
 public static void RuntimeError(RuntimeError error)
 {
     Console.Error.WriteLine($"{error.Message}\n[line {error.token.line}]");
     hadRuntimeError = true;
 }