Krisakorn Rerkrai wrote:
Is it really required to parse from yyin?? In case I don't want to read my query from a file. How can I do parse_this(para1, "SELECT hot_food FROM menu");
When using bison, it's the lexer's job to feed tokens to the parser; so yyin is really controlled by your lexer. If your lexer is generated by GNU/flex, the solution is to use yy_scan_string (see <http://www.gnu.org/software/flex/manual/html_chapter/flex_12.html#SEC12>).
-- Regards, Sylvain _______________________________________________ [email protected] http://lists.gnu.org/mailman/listinfo/help-bison
