Repository navigation
det reader: a tab in columns 1-7 followed by text inside them is refused by name (Part of #8412) - #9009
Merged
Conversation
…(Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
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.
Part of #8412. Checklist: done [c:tabs-and-REPLACE-det-path]
What
Verifies on origin/main, with authored fixtures (invented names), whether tabs and the REPLACE statement reach the det path correctly. #8654, #8991 and #8999 already pinned the REPLACE refusal (program and COPY member) and tabs between tokens. One cell was untested and wrong: a tab in columns 1-7 followed by program text still inside those columns (
<tab><tab> 05 ITEM PIC X(4).).det/source.pycuts columns 1-7 as the sequence area and indicator, so the05was silently dropped and the line translated cut. It now raisesTabInSequenceAreaRefused, naming file and line, in the program and in a COPY member. A tab followed only by blanks inside columns 1-7 (CardDemoCSLKPCDY.cpyvalue lines, burned and proven) loses nothing and is still read.Evidence
.cbl/.cob/.cpy/.cobol/.copyunder the mainframe corpora: 2 files carry a tab in columns 1-7, 0 have text after it there, so no port moves.tests/cobol_mainframe/test_det_tab_replace_8412.py(REPLACE / REPLACE OFF / multi-line refused, tab refusal x3 leads, copybook read and refused cases). 19 pass with the engine-side file.det_port.py check(no corpus line is refused, so no translation changes).Class / Sibling gaps
Class: fixed-form column-layout irregularities (tab characters, REPLACE statement) reaching the det reader, in the program and in COPY members. Handled: REPLACE statement in program (#8654) and in member (#8999); tab between tokens and in comments (pinned); tab-led blank value lines (pinned); tab in columns 1-7 with text after it (this PR, refused by name). Sibling gaps: (1) applying REPLACE instead of refusing it, a different mechanism (a text-rewrite pass after COPY expansion, IBM pseudo-text matching); (2) tab-stop expansion (a tab to the next stop of 8, as GnuCOBOL does) instead of refusing, which needs a det sweep over the CardDemo CSLKPCDY ports. Neither fits a test-and-guard slice.
Remaining slices
REPLACE application (source.py + tests); tab-stop expansion with a det sweep; the other unchecked #8412 lines (COMP boundary matrix, JCL copy-library order, RERUN, licence item).
🤖 Generated with Claude Code