OK, so Bison/Yacc takes its input in yyin
as FILE*
.
This is my current code (it's in D, but the issue is not that D-related; a C solution would be easily convertible) :
auto file = File(filename, "r");
yyin = file.getFP();
yyparse();
How is it possible to feed it with a string (or a char buffer)?