Skip to content

Consider using nom/winnow instead of pest #655

@Nukesor

Description

@Nukesor

I'm not a big fan of pest.

The syntax is already quite tricky to get right and quite a pain. But it doesn't stop there.
The consumption of the parsed content is super annoying, as one has to evaluate the whole syntax tree.

And the error messages leave a lot to be desired.

I recently worked a lot with winnow and heard that nom switched to a similar approach of building parsers.
winnow generally allows for much better error messages, and it also allows the creation of our own syntax tree structure, which would probably just be a list of enums, where each enum represents a possible command.

This would massively simplify the handler logic, remove the need for a special syntax and make the whole parsing logic implicit.

Somebody just needs to migrate that parser 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: Help wanteds: ClientThis issue touches the pueue clientt: EnhancementSomething that exists, but could be made bettert: Technical debtTechnical debt that needs to be addressed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions