Re: YYRECOVERING() in yylex function

2025-03-14 Thread r0ller
Hi All,It turned out in the end that it is my fault as I don't generate any header files by bison which may then contain the necessary macro definition. Nevertheless, I also realized that it's better to return YYUNDEF from yylex than triggering YYERROR from an action. This made using YYRECOVERIN

Re: YYRECOVERING() in yylex function

2025-03-12 Thread r0ller
Hi Nathanael,Unfortunately the project is quite big but I want to make a minimal reproducible example for it. Before doing so though, I'd like to understand if it makes sense at all to use YYRECOVERING() in yylex. I have a rule for each token a validating action which triggers YYERROR if the tok

YYRECOVERING() in yylex function

2025-03-12 Thread r0ller
Hi All,I tried to use the YYRECOVERING() macro in my implementation of yylex but I get the following error: "error: use of undeclared identifier 'yyerrstatus_'"I don't know if it's the intended behaviour just wanted to ask (as I think I can work it around to detect recovering status).Best regar