public override string ReportError(SkryptException error)
        {
            string positionString  = $"({error.Line},{error.Column})";
            string fileAndPosition = $"{error.File}{positionString}: ";

            var finalMessage = (error.Index > -1 ? fileAndPosition : "") + $"{error.Message}";

            Console.WriteLine(finalMessage);

            return(finalMessage);
        }
Esempio n. 2
0
 public abstract string ReportError(SkryptException error);