Skip to content

Redo decode error backtracking to throw deepest error#30

Merged
brandonchinn178 merged 3 commits intomainfrom
parser-backtrack
Apr 22, 2026
Merged

Redo decode error backtracking to throw deepest error#30
brandonchinn178 merged 3 commits intomainfrom
parser-backtrack

Conversation

@brandonchinn178
Copy link
Copy Markdown
Owner

Fixes #28

Instead of having fatal/non-fatal errors with megaparsec-like consumption semantics, we'll just propagate all errors we come across, and throw the deepest error. To optimize space, we'll prune the list whenever we merge the lists.

Base automatically changed from unify-decoder-tests to main April 22, 2026 16:48
@brandonchinn178 brandonchinn178 merged commit 742d8ad into main Apr 22, 2026
7 checks passed
@brandonchinn178 brandonchinn178 deleted the parser-backtrack branch April 22, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use alternative parser based on type annotation

1 participant