Skip to content

Effective use of ParseFailed #6

@Iruyan-Zak

Description

@Iruyan-Zak

Now, when parser1 <|> parser2 is failed to parse, the result becomes Left ParseFailed[reason1, reason2].
But if either of these consists of choice((<|>), choice), the result becomes a nest of ParseFailed [].
It doesn't seem better method.

Does anyone be coming up with better way?
(ParseFailed may be used for generating compilation errors. So I wish it be meaningful for it.)

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