Skip to content
This repository was archived by the owner on Jun 24, 2020. It is now read-only.
This repository was archived by the owner on Jun 24, 2020. It is now read-only.

Order of alternatives #6

@sliekens

Description

@sliekens

It was recently pointed out to me that ABNF alternatives as described in section 3.2 of RFC 5234 are unordered.
https://tools.ietf.org/html/rfc5234#section-3.2

What this means is that you can't use a first-match-wins algorithm, because all alternatives have the same priority. But this is how the AlternativeLexer class is currently implemented.

What are some better ways to parse alternatives, other than first-match-wins?

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