How to modularize bison files?

Peng Yu <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CABrM6wmTQrBkW3Wtp8zvrB5xF8qt=tvwcoQpFYKGDfMsnm_K_g@mail.gmail.com>
Hi,

I only see bison examples in which all the grammar rules are in the
same file. And all the rules must be tested as a whole.

For example, the following one is of over 6000 lines.

http://git.savannah.gnu.org/cgit/bash.git/tree/parse.y

Having a very large parser file makes it hard to understand the
grammar rules and test them. Is there a way to separate the code and
test each part individually? 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.