Skip to content

Is it possible to get a report on which production was being handled when an error arose? #419

@filmil

Description

@filmil

Here's an error message I encountered while using participle to parse a value change dump (VCD) file. See: filmil/go-vcd-parser#2.

unexpected token "V" (expected <kwend>)

Now participle is of course correct. But it is not exactly helpful. It does not tell me which production was parsed when the error occurred. I have multiple productions that may end with keyword $end. And one of the issues may be that my grammar has started parsing a wrong production somehow.

Perhaps this is already supported?

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