Skip to content

det reader: a tab in columns 1-7 followed by text inside them is refused by name (Part of #8412) - #9009

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261122T0844Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261122T0844Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.py cuts columns 1-7 as the sequence area and indicator, so the 05 was silently dropped and the line translated cut. It now raises TabInSequenceAreaRefused, naming file and line, in the program and in a COPY member. A tab followed only by blanks inside columns 1-7 (CardDemo CSLKPCDY.cpy value lines, burned and proven) loses nothing and is still read.

Evidence

  • Scan of every .cbl/.cob/.cpy/.cobol/.copy under the mainframe corpora: 2 files carry a tab in columns 1-7, 0 have text after it there, so no port moves.
  • Tests: 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.
  • Not run: 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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 08:57
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 09:04
@squid-shepherd
squid-shepherd Bot merged commit b8950c5 into main Nov 22, 2026
94 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261122T0844Z branch November 22, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant