8000 Debugging: How, what, why? · Issue #19 · zesterer/chumsky · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Debugging: How, what, why? #19
Open
@zesterer

Description

@zesterer

Chumsky currently supports a primitive debugging system, allowing parsers to print to stdout when entered during a call to Parser::parse_recovery_verbose. Expanding this further will require some thought.

  1. What problems should debugging attempt to solve?
  • Parsers that consume zero input and repeat
  • Paths erroneously taken
  • Priority errors (i.e: a.or(b) vs b.or(a))
  1. What information needs to be shown to the user?
  • Entered parsers
  • Number of iterations
  • Source location of parser
  • Recursion points
  1. How is best to show this information?
  • Annotated tree?
  1. What API features should be supported?
  • Recursion limit to prevent stack overflows

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0