Enhancement Request

slipbits <[email protected]> Fri, 17 Jun 2022 10:58:34 -0700
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
Given that Bison has the ability to (and does) generate a parser for 
itself, is there any possibility of removing all %code tags in future 
releases.

The mechanics of this removal is to construct a dependency graph, 
determine whether there are cycles in the graph and what to do about 
them, and to reorganize the declarations to remove issues. That is, the 
reorganization uses the framework of "define before use" paradigm when 
traversing the graph.

It looks like this might be possible. There are some underlying issues 
of appearance in C as opposed to C++, Java, and D but I would think that 
this is well within the capabilities of current technology.

This means that one code block, %code { declarations }, is all that is 
required and removes the placement requirements and discussion in the 
Bison User's Manual.

art