I wasn't smart enough to figure out how to adapt these strategies to my LL(k) grammars (late 90s). Maybe someone's figured this out.
Efficient and Flexible Incremental Parsing TIM A. WAGNER and SUSAN L. GRAHAM
https://www.researchgate.net/profile/SL_Graham/publication/2...
The library itself is here: https://github.com/tree-sitter/tree-sitter
and here are some existing grammars:
* https://github.com/tree-sitter/tree-sitter-javascript * https://github.com/tree-sitter/tree-sitter-go * https://github.com/tree-sitter/tree-sitter-ruby
The library itself is here: https://github.com/tree-sitter/tree-sitter
and here are some existing grammars: