Port bootstrap/src/parse_conform.rs (Rust, 3 functions) to specs/port/bootstrap/src/parse_conform.t27 - #6528
Merged
Merged
Conversation
…c/parse_conform.t27 Ports the W577 parser conformance table (all 25 rows), evaluate's verdict decision (evaluate_from), the per-row check of run (case_ok), run as a failure count over injected results, and total. evaluate keeps an undefined body: it calls the host's parsers. Closes #6135 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 5, 2026
Contributor
This was referenced Oct 5, 2026
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.
Closes #6135
Ports
bootstrap/src/parse_conform.rs(W577 parser conformance table) tospecs/port/bootstrap/src/parse_conform.t27. One file,.t27only.What is ported
CASES: all 25 rows (name, input, verdict, expected decls, expected discards), extracted mechanically from the Rust table. The prosenoteof each row stays in the original; no logic reads it.evaluate(src): it calls the host's parsers (Compiler::parse_ast,parse_ast_strict,parse_ast_accounted), which a spec cannot call. It keeps its name with anundefined;body that no test calls. Its decision isevaluate_from: given the three parse results, it returns(Verdict, decls, discards).run(): the original formats failures into aVec<Outcome>. t27 has noformat!and no growable list, sorun(actuals)takes the evaluated results, one per row, and returns the number of failing rows. The per-row decision iscase_ok. Decls are compared only for a pinned row with aFullverdict, and discards only when the row pins them, as in the original.total():CASES.len, which is 25.Acceptance criteria
These were run on the Railway t27c lab, with t27c built from origin/master e7afb32 (the Mac binary is stale).
gen-rustandgen-calso succeed.Negative control. I flipped three expected values (total 25->24, run count 2->3, discards 3->0).
test-reportthen printedpass 6, FAIL 3, naming exactly those three tests. The tests are not vacuous.🤖 Generated with Claude Code