-
Notifications
You must be signed in to change notification settings - Fork 149
Description
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 😁