On Monday, 9 November 2015 at 09:19:11 UTC, Bastiaan Veelo wrote:
Yes, use asModule() for that . Not only does it enable using
large grammars, it also saves compilation time for builds after
the grammar has stabilised.
And should the grammar still be too large, it is good to know
that Pegged is good at composing a parser from different
sub-grammars . So the difficulty is only in finding natural
boundaries at which the grammar can be split, making it work
should be easy.
I knew about composition. I just wanted to keep the same names as
per the original spec, instead of nesting.