@configuredthings/rdp.js - v0.7.0
    Preparing search index...

    Function generateScaffold

    • Generate a one-time scaffold file driven by orthogonal ScaffoldFlags.

      Parameters

      • source: string

        EBNF or ABNF grammar source text.

      • flags: ScaffoldFlags

        Which scaffold dimensions to include (see ScaffoldFlags).

      • options: GeneratorOptions = {}

        Generator configuration (same options as generateParser).

      Returns string

      A TypeScript source string ready to write to a .ts file.

      If the grammar is malformed or left-recursive.

      If an invalid flag combination is given.