The terminal names (incl. "$END") the current state accepts.
The full action map { name: [kind, id] }, kind "Shift" / "Reduce"
(lark choices).
Fork an independent parser at the current state (lark copy).
Feed every remaining lexer token; returns them (lark exhaust_lexer).
Append $END, finishing the parse; returns the tree as a ParseHandle.
Pull the next lexer token, feed it, and return it — or undefined at end
of input (the lazy step iterParse() drives).
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.
Generator over feedNext(): pulls-and-feeds each lexer token and yields
it (lark iter_parse); break out of the loop to stop early.
Human-readable dump of the current parser state.
Drive the built-in lexer over the remaining input to completion; returns
the tree as a ParseHandle (lark resume_parse).
A manually-driven LALR parse (
Lark.parseInteractive), mirroring lark'sInteractiveParser: feed tokens one at a time, inspect the liveaccepts()set, fork withcopy(), finish withfeedEof()/resumeParse(). Re-declared over the generated class to add theiterParse()generator sugar (interactive.js). Owns its grammar reference, so it stays valid even if theLarkhandle is freed first.