help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom error reporting with c++


From: r0ller
Subject: custom error reporting with c++
Date: Wed, 8 Jan 2025 13:20:37 +0000 (GMT)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]