hyperlark (TypeScript)
    Preparing search index...

    Class InteractiveParser

    A manually-driven LALR parse (Lark.parseInteractive), mirroring lark's InteractiveParser: feed tokens one at a time, inspect the live accepts() set, fork with copy(), finish with feedEof() / resumeParse(). Re-declared over the generated class to add the iterParse() generator sugar (interactive.js). Owns its grammar reference, so it stays valid even if the Lark handle is freed first.

    Indexable

    • [key: number]: () => void
    Index
    • Feed one token, advancing the parse (lark feed_token). A plain { type, value } literal works — positions are not consulted. Throws the mapped UnexpectedToken if the current state rejects it.

      Parameters

      • token: { type: string; value?: string }

      Returns void