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