Skip to content

Question about including error recovery when adding marser library #139

Description

@ArneCode

Hi! I am the author of marser, a parser-combinator library for writing PEG-style grammars in Rust with a focus on useful errors, error recovery and good performance.

Before opening a PR I wanted to ask whether it makes sense to include error handling in the example. I have seen that you discussed including comparisons of error quality before in issue #4. But including error recovery and additional rules for providing extra information will lead to slower speeds of the example.
I have created two versions of a json parser in a fork of this library, one with error rules and one without. Which would fit better in this benchmark?
You can find an example of what json parsing with error rules looks like here.

Additionally, marser has optional support for rendering diagnostics using annotate-snippets. That feature increases compile times and binary size somewhat, so I currently do not enable it in the benchmark examples. Would it make sense to add it to the benchmark examples?

Also this is a very new library (0.1.2), I have just released it two days ago. Is it still ok to add it to this benchmark?

Thank you in advance for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions