Skip to content

Partial parsing and exposing the next expected tokens #173

Description

@aybabtme

Hi, thanks for this project. It's very useful!

I was wondering if there's a recommended way to handle failed parses, to get a partial result and enumerate the next valid rules that would have been expected. My motivation is to build an auto-complete feature for a small language. I've been struggling to grok the internals of the Peg struct being created. Am I missing something obvious that allows what I'm looking for, or should something change in the implementation to expose the information required to implement such a functionality?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions