hello, with pure option, bison parser can be multithreaded. however, i want to call parser recursively by iitself. Below is small code snippet to exemplify:
token1: token2 token3 { // .... switch yylex buffer state yyparse(); // .... switch back to previous yylex buffer state } In this yylex() is used with buffer state. Will this be fine or is there issue in this? This is called in single context and no multi threading. yylex() will have parameter for YYSTYPE. flex code has to be reentrant. This is not multi threaded though recursively calling parser within itself is something I am not sure. Pls clarify if this is fine. Regards Anand