Exemple #1
0
Fichier : Lox.cs Projet : sula0/Lox
 public static void RuntimeError(RuntimeError error)
 {
     Report(error.Token.Line, "", error.Message);
 }
Exemple #2
0
 public static void RuntimeError(RuntimeError runtimeError)
 {
     Console.Error.WriteLine(runtimeError.GetMessage() + "\n[line " + runtimeError.token.line + "]");
     hadRuntimeError = true;
 }
Exemple #3
0
 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;
 }