Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

phrase method loses error context when successful parse result has lastFailure #518

Open
@i10416

Description

@i10416

Whenphrase is applied to successful parse result which haslastFailure, it returns only the original failure.
I think it would be better to add a message that indicates the EOF is expected in the same way as it does when lastFailure isNone.

For example, the followingp fails because there are trailing spaces afterd, but error message comes fromc parse failure which doesn't have any hint for EOF.

val input = "a b d  "val p = phase(/* a parser that parses `a b (c or d)`*/)

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp