Lines Matching refs:parser
31 glcpp_error (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...)
35 parser->error = 1;
36 parser->info_log = hieralloc_asprintf_append(parser->info_log,
43 parser->info_log = hieralloc_vasprintf_append(parser->info_log, fmt, ap);
45 parser->info_log = hieralloc_strdup_append(parser->info_log, "\n");
49 glcpp_warning (YYLTYPE *locp, glcpp_parser_t *parser, const char *fmt, ...)
53 parser->info_log = hieralloc_asprintf_append(parser->info_log,
60 parser->info_log = hieralloc_vasprintf_append(parser->info_log, fmt, ap);
62 parser->info_log = hieralloc_strdup_append(parser->info_log, "\n");
149 glcpp_parser_t *parser = glcpp_parser_create (extensions, api);
150 *shader = remove_line_continuations(parser, *shader);
152 glcpp_lex_set_source_string (parser, *shader);
154 glcpp_parser_parse (parser);
156 if (parser->skip_stack)
157 glcpp_error (&parser->skip_stack->loc, parser, "Unterminated #if\n");
159 *info_log = hieralloc_strdup_append(*info_log, parser->info_log);
161 hieralloc_steal(hieralloc_ctx, parser->output);
162 *shader = parser->output;
164 errors = parser->error;
165 glcpp_parser_destroy (parser);