On Monday, 9 November 2015 at 09:19:11 UTC, Bastiaan Veelo wrote:
Yes, use asModule() for that [1]. Not only does it enable using large grammars, it also saves compilation time for builds after the grammar has stabilised.


Thanks.

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 [2]. 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.


        • Re: Releas... Jonathan M Davis via Digitalmars-d-announce
        • Re: Releas... Dmitry Olshansky via Digitalmars-d-announce
          • Re: Re... Jonathan M Davis via Digitalmars-d-announce
          • Re: Re... Daniel Murphy via Digitalmars-d-announce
            • R... Jack Stouffer via Digitalmars-d-announce
              • ... Daniel Murphy via Digitalmars-d-announce
        • Re: Releas... Sebastiaan Koppe via Digitalmars-d-announce
          • Re: Re... Dicebot via Digitalmars-d-announce
            • R... Sebastiaan Koppe via Digitalmars-d-announce
              • ... Bastiaan Veelo via Digitalmars-d-announce
              • ... Sebastiaan Koppe via Digitalmars-d-announce
    • Re: Release D 2.06... Jean-Yves Vion-Dury via Digitalmars-d-announce
      • Re: Release D ... Márcio Martins via Digitalmars-d-announce
        • Re: Releas... Jean-Yves Vion-Dury via Digitalmars-d-announce
          • Re: Re... ZombineDev via Digitalmars-d-announce
          • Re: Re... Márcio Martins via Digitalmars-d-announce
            • R... deadalnix via Digitalmars-d-announce
              • ... Chris Wright via Digitalmars-d-announce
  • Re: Release D 2.069.0 Dicebot via Digitalmars-d-announce
  • Re: Release D 2.069.0 Joseph Rushton Wakeling via Digitalmars-d-announce

Reply via email to