On Sun, Jan 6, 2019 at 8:45 AM John P. Hartmann <jphartm...@gmail.com>
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
_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to