Skip to content

Support a completely ANTLR/Java-free C++ build using the native Pratt parser #2332

Open

Description

@Ou7law007

Original problem I was having is this is actually in protovalidate-cc: bufbuild/protovalidate-cc#123

Essentially allowing the option to completely remove the java requirement for consumers.

#2225 is relevant but I'm not sure it meets this.

Activity

  1. jnthntatum commented on Oct 13, 2026

    @jnthntatum
    Collaborator

    The plan is to start default enabling the Pratt parser soonish. Most of our clients are google-internal so we can't make particular promises on what that timeline looks like. After that's done, we'll move the Antlr parser out of the main Bazel module. I expect we'll keep it for a little while as a reference / prototyping implementation.

    Separately, we only test / maintain the build with Bazel in our regression tests (again, for internal compatibility reasons). Bazel needs a minimal JRE to work, but we shouldn't have any other dependencies that need to build / run java. https://bazel.build/install/ubuntu. We would like to eventually support CMake or otherwise better support non-Bazel build systems, but can't offer a timeline for that. #1215

    Tagging @dmitriplotnikov who's been working on the Pratt parser.

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