ast icon indicating copy to clipboard operation
ast copied to clipboard

Improvement: Tell me where I am in the tree when a parse failure happens

Open jasminemoore-verses opened this issue 2 years ago • 1 comments

The error message currently includes which AST (struct|enum) is currently being parsed, but does not say which Pest token we are currently at.

  • "Extraneous tokens" should tell me which tokens are bonus
  • "No Match" should tell me what token is present.

jasminemoore-verses avatar Jun 23 '23 16:06 jasminemoore-verses

This would be extremely helpful.

As I've seen, pest prints helpful errors, and hopefully pest-ast can also print similarly helpful errors.

oxcrow avatar Jul 18 '24 23:07 oxcrow