示例#1
0
        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;
            }
        }
示例#2
0
        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;
            }
        }