On Wednesday, January 8, 2025 2:20:37 PM CET r0ller wrote:
> 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

Well, you are actively asking for the Bison C++ API. Then you should also use 
the C++ API, not the C API. ;-)

https://fossies.org/linux/bison/examples/c++/glr/c++-types.yy#l_110

/Christian



Reply via email to