← All projects
Project record1 mention
Originally shared on Hacker News

RNGLR parser implementation with cycle handling

An implementation of RNGLR, a polynomial-time parser for any context-free grammar, running as a table-based interpreter and extended with special code to handle grammar cycles more efficiently.

Last shared
01 / The problem

What it addresses

Grammar cycles are handled inefficiently in table-based parser interpreters.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. RNGLR parser implementation with cycle handling

    An implementation of RNGLR, a polynomial-time parser for any context-free grammar, running as a table-based interpreter and extended with special code to handle grammar cycles more efficiently.

    Problem: Grammar cycles are handled inefficiently in table-based parser interpreters.

    Posted by @Apanatshka · Original source ↗

    Source text · @Apanatshka · · Source ↗

    I have an RNGLR implementation (a polynomial-time parser for any context-free grammar), that's still a table-based interpreter like more LR-based parsers out there. I've extended that implementation with special code to handle cycles more efficiently.