custom error reporting with c++

r0ller <[email protected]> Wed, 8 Jan 2025 13:20:37 +0000 (GMT)
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi All,I'm trying to make use of custom error reporting and define the function yyreport_syntax_error() in the epilogue based on the documentation at https://www.gnu.org/software/bison/manual/html_node/Syntax-Error-Reporting-Function.htmlHowever, if I use '%language "c++"' then I get an error like there's no type named yypcontext_t and indeed if I search for that type in the generated parser source, I can't find it. If I use '%language "c"' then that type appears in the generated parser source. Does anyone have any hint on this?Thanks in advance,r0ller