hyperlark (TypeScript)
    Preparing search index...

    Interface ParseOptions

    Options for the public parse(text, opts?). A key not named here is refused (ConfigurationError: Unknown options: ...), as at construction, and so is a value the option cannot use. null is absent for every field, so the default stands. Where lark has the kwarg its spelling is canonical (on_error); the camelCase form is an accepted alias, and passing both spellings of one option is an error.

    interface ParseOptions {
        batch_size?: number;
        batchSize?: number;
        on_error?: (err: LarkError) => boolean;
        onError?: (err: LarkError) => boolean;
        start?: string | null;
        transformer?: ReduceTransformer;
    }
    Index
    batch_size?: number

    Reductions buffered per crossing when a transformer is given (default 128, matching the Python binding). The folded result is identical for any value; 1 opts into exact reduce/callback interleaving for side-effecting transformers, at ~2x the crossing cost on large inputs. Ignored behind a custom lexer: that route has no reduce seam and folds the finished tree, so callbacks fire after the parse.

    batchSize?: number

    Alias of batch_size.

    on_error?: (err: LarkError) => boolean

    Cold-path LALR error-recovery callback: true resumes, false re-raises. lark's parse(text, on_error=...).

    onError?: (err: LarkError) => boolean

    Alias of on_error.

    start?: string | null

    Entry rule (omit for the sole declared start).

    transformer?: ReduceTransformer

    Fold the parse through a reduce-time transformer (returns its host value instead of a Tree).