Skip to content

Parsing overlapping tokens? #36

@dabrahams

Description

@dabrahams

Hi there,

I'm working with a grammar where tokens (used in distinct partial parses) can overlap. I know Earley can handle this situation (I've implemented the Earley algorithm myself). That capability isn't documented but is it hiding in the implementation somewhere? Thanks!

(I also know Earley is amenable to a system where tokens are “pushed” into the parser as opposed to being “pulled” through a next_token function, which is great for flexibility. To handle the capability I'm asking for you'd get the tokens along with their start positions, in the order of their end positions).

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