I want my yylex() to parse a string rather than a file or standard input. How can I do it with the Lex and Yacc provided with Solaris?
yylex()
another approach is to use yy_scan_string as already mentioned in linked answers