Exemple #1
0
        private static void ReportError(String str, Lexer lexer = null)
        {
            string message = lexer != null
                            ? string.Format("Parser error (line {0}): {1}", lexer.GetLineNumber(), str)
                            : string.Format("Parser error: {0}", str);

            throw new ApplicationException(message);
        }