Пример #1
0
 public void RuntimeError(RuntimeError error)
 {
     StdErr.WriteLine($"{error.Message}\n[line {error.Token.Line}]");
     _hadRuntimeError = true;
 }
Пример #2
0
 public static void RuntimeError(RuntimeError error)
 {
     Console.Error.WriteLine(error.Message + "\n[line " + error.token.line + "]");
     hadRuntimeError = true;
 }