Example #1
0
 public void AddRuntimeError(RuntimeError err)
 {
     Console.Error.WriteLine("{0}:{1}: {2}", _file, err.Op.Line, err.Message);
     ++_count;
 }
Example #2
0
 public static void RuntimeError(RuntimeError error)
 {
     Console.Error.WriteLine($"{error.Message}\n[line {error.Token.Line}]");
     _hadRuntimeError = true;
 }
Example #3
0
 public static void RuntimeError(RuntimeError error)
 {
     Console.Error.WriteLine(error.Message + "\n[line " + error.token.line + "]");
     hadRuntimeError = true;
 }