title: how to use yy_scan_string in lex
body: <p>I want to parse a string which I give to the parser in the main function of yacc . I know that this could be done by using <code>yy_scan_string</code> but I don't know how to use it. I searched the web and the man pages but it is still not clear to me.  Please help me.</p>