示例#1
0
        public static T RaiseParserError <T>(this LanguageCompilationLog compilationLog, string description, Token token)
        {
            var err = new ParserException(description);

            return(compilationLog.RaiseErrorMessage <T>(err, token));
        }
示例#2
0
        public static T RaiseParserError <T>(this LanguageCompilationLog compilationLog, string description, int absolutePos)
        {
            var err = new ParserException(description);

            return(compilationLog.RaiseErrorMessage <T>(err, absolutePos));
        }
示例#3
0
        public static T RaiseTypeMismatchError <T>(this LanguageCompilationLog compilationLog, string description, ParseTreeNode node)
        {
            var err = new AstGeneratorTypeMismatchException(description);

            return(compilationLog.RaiseErrorMessage <T>(err, node));
        }