Example #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));
        }
Example #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));
        }
Example #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));
        }