glcpp: Add support for lexing from a string.
The standalone binary still reads from stdin, however.
This commit is contained in:
@@ -201,3 +201,9 @@ NON_STARS_THEN_STARS [^*]*[*]+
|
||||
}
|
||||
|
||||
%%
|
||||
|
||||
void
|
||||
glcpp_lex_set_source_string(glcpp_parser_t *parser, const char *shader)
|
||||
{
|
||||
yy_scan_string(shader, parser->scanner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user