默认的lex需要输入是FILE *,
FILE *
如何该让它从char *读取输入?
char *
YY_BUFFER_STATE tLexerBuffer = yy_scan_buffer ( buf, buf_len ); if ( !tLexerBuffer ) { ... } int iRes = yyparse ( &tParser ); yy_delete_buffer ( tLexerBuffer );
标签
查看
141 次