Skip to content

Feature Requst: Lean backend #572

Open

Description

@GZGavinZhao

Currently the Lean ecosystem doesn't have a tool for generating parser code from grammar definitions. At work, we have an internal language that is quite large in terms of constructs but syntactically simple. I found BNFC and am considering to use it for having a unified definition as the source for the Lean parser + tree-sitter highlighting + C/C++ backend for blazingly fast™ parsing when it matters.

Would you be open to accept PRs to add a Lean backend? Obviously subject to implementation quality.

Activity

  1. GZGavinZhao commented on Jun 18, 2026

    @GZGavinZhao
    Author

    As a side note, I'm happy to help maintain it as I would absolutely use it for my personal projects as well, getting really tired of writing parser combinators by hand...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions