Krisakorn Rerkrai wrote:
That means I can skip "yyin" and "yyparse" and simply call
"yy_scan_string()".  Is that right?

Almost; you won't have to set yyin because yy_scan_string does it for you. You still have to use yyparse (which in turn calls yylex, which will use the string buffer set up by yy_scan_string instead of a file buffer).
  So your code should look like:

    my_string_buffer = yy_scan_string (my_string);
    my_parse_result  = yyparse ();
    yy_delete_buffer (my_string_buffer);

--
Hope that helps,

  Sylvain


_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to