Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在调用之前清除解析器YYACCEPT缓冲区yacc。
YYACCEPT
yacc
如果我不清除缓冲区,当我yyparse第二次调用时会导致一些问题。
yyparse
另请注意,我正在使用一些全局变量,因此不能使用可重入解析器。
提前致谢 !!
肯定有。请参阅flex 手册的这一部分。具体来说,在调用YY_FLUSH_BUFFER之前调用yyparse。
YY_FLUSH_BUFFER