public override void yyerror(string format, params object[] args) { base.yyerror(format, args); Console.WriteLine("Line {0} - Col {1} - {2}", tokLin, tokCol, format); ErrorPorcessed?.Invoke(); if (tokELin > 1000) { Restart = true; } }
public override void yyerror(string format, params object[] args) { base.yyerror(format, args); var msg = $"Line {tokLin} - Col {tokCol} - {format}"; Console.WriteLine(msg); ErrorPorcessed?.Invoke(msg); if (tokELin > 1000) { Restart = true; } }