Repository navigation
refactor(parser): delete quiet_after_invalid_tokens - #3070
Merged
Merged
Conversation
robcohen
force-pushed
the
fix/drop-line-error-pass
branch
2 times, most recently
from
November 27, 2026 21:58
5949eb0 to
bcbcba2
Compare
convert.rs's hand-modeled pass that dropped every error after a line's first invalid token (#2872) is redundant now: the error oracle's reconciler holds each line's errors to beancount's, the bom-in-account overlay keeps the one-BOM-per-line rule the pass also applied, and with drop_errors_inside_a_line_error gone the token's own error is the one the reconciler keeps and names. The pass, its two header/indented grammar-reach helpers and their tests are deleted. No output changes: parity 122,378 of 123,394, the BOM matrix, the corpus baselines and the parser suite are unchanged. WASM cache v155. Co-Authored-By: Claude Opus 5.5 <[email protected]>
robcohen
force-pushed
the
fix/delete-quiet-after-invalid-tokens
branch
from
November 27, 2026 23:40
d764537 to
e160680
Compare
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Deletes convert.rs's
quiet_after_invalid_tokens(#2872), the hand-modeled pass that dropped every error after a line's first invalid token. Three things now cover what it did:bom-in-accountoverlay (feat(parser): keep one BOM diagnostic per line where beancount reads a BOM into an account #3065), which keeps the one-BOM-per-line rule this pass also applied;drop_errors_inside_a_line_error, which leaves the token's own error as the one the reconciler keeps and names.Also deleted: the pass's
header_grammar_reachesandindented_grammar_reacheshelpers and their unit tests. Comments that named the pass are reworded.Why stacked
This PR is stacked on #3067, which is stacked on #3065. Deleted on main alone, the pass's removal measured:
unexpected trailing tokens after posting amount(in 3 corpus files and in the surface-agreement cases), becausedrop_errors_inside_a_line_errorthen dropped the token's own error.On top of #3067, nothing changes.
Gates
STRICT_BASELINEand the parser suite pass.-D warningsis clean; the validate, loader, lsp, wasm and rustledger tests pass.Caches
WASM cache v155. The loader cache is unchanged.
🤖 Generated with Claude Code