bug-bison
[Top][All Lists]
Advanced

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

Enhancement Request


From: slipbits
Subject: Enhancement Request
Date: Fri, 17 Jun 2022 10:58:34 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

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




reply via email to

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