bug-bison
[Top][All Lists]
Advanced

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

Small documentation feature request


From: Rici Lake
Subject: Small documentation feature request
Date: Tue, 30 Jun 2020 11:23:11 -0500

Hi, Akim and bisonistas,

This came up today on SO:
https://stackoverflow.com/questions/62658368/unknown-type-yypcontext-t-in-bison.
The user complained that their attempt to declare `yyreport_syntax_error`
failed because `yypcontext_t` was not defined. (The declaration was put in
a `%{` code section in the prologue.)

That seems to be expected, since the structure is not declared until after
all the prologue code has been included, and furthermore
yyreport_syntax_error is declared as `static`, implying that it must be
defined in the bison input file in the final code section.

However, the manual does not mention this fact, and I think that it is not
immediately obvious. It would, IMHO, be a good idea to put a small note
about that in the manual chapter which describes that function.

Saludos,
Rici


reply via email to

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