Repository navigation
det reader: REPLACE inside a COPY member refused by name, tabs/REPLACE det verdict pinned (Part of #8412) - #8999
Merged
Conversation
…me, pinned (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 22, 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.
Checklist: partial [c:1e95fd31]
Part of #8412 (first unchecked line: do tabs and the REPLACE statement reach the det path correctly?).
What this finds
The question is already answered on main by two earlier PRs: #8654 (det reader: the REPLACE statement is refused by name, a tab in the sequence area and between tokens is read as CardDemo ships it) and #8991 (engine scan side: tabs and REPLACE pinned on authored programs). Both test files pass on this head (14 tests). The one member of the class neither pinned: a REPLACE statement inside a COPY member. This PR adds that test (authored
FAKECPYmember, invented names): the det reader refuses it by name and the message names the member file, not the program.No engine change, test only. Gates: the two test files pass (8 + 6);
ruff format --checkclean;pr_gatesnot run (test-only, no engine/golden path).Class / Sibling gaps
Class: source-layout constructs that rewrite or relocate text before the det reader parses it (REPLACE statement, tabs, COPY members). Handled and tested: REPLACE in the program (#8654), REPLACE in a COPY member (this PR), REPLACE OFF, lowercase and continued forms (#8654), tab in the sequence area, between tokens and in comments (#8654, #8991), engine-side items and line numbers (#8991). Sibling gaps, not done here (different mechanism): (1) applying REPLACE instead of refusing it: needs the replaced text to feed the det parse and the engine's scan, so a program using it can be whole; (2) tab-stop expansion in the det reader (today tabs are read as characters; needs a det sweep over the CardDemo CSLKPCDY ports); (3) the engine extractor does not apply REPLACE (names as written, pinned in #8991). Remaining open lines on #8412: COMP boundary matrix, copy-library order from JCL, I-O-CONTROL RERUN, the owner licence item.
Remaining slices
REPLACE application (det + engine), det tab-stop expansion, as above.
🤖 Generated with Claude Code