[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parser multiple times called recursively
From: |
anand akhare |
Subject: |
parser multiple times called recursively |
Date: |
Tue, 26 Mar 2024 17:19:21 +0000 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- parser multiple times called recursively,
anand akhare <=