Re: How to modularize bison files?

Peng Yu <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CABrM6wmoAXShOjdBRZz-LkOuNhBgjTACVNG4kWKpijf4T1k4yA@mail.gmail.com>
On Sun, Jan 6, 2019 at 8:45 AM John P. Hartmann <[email protected]>
wrote:

> Your concern is with managing such a large grammar, right?


Yes. Mainly for testing.

There is no law against splitting the larger productions into separate
> files and use the C preprocessor before passing the file to Bison.  You
> would likely write skeleton grammars to process specific productions.
>
> Another tack is to #include [parts of] semantic large routines that do
> not require expansion of $n or @n; or you could put those functions in a
> separate file and #include that (my preference)--the compiler will know
> when to inline those functions.


Do you know where I can find some examples showing the above thing that you
mentioned? Thanks.
-- 
Regards,
Peng
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.