Repository navigation
COBOL: quoted copybook literals with an extension keep IN/REPLACING; plain section COPYs get a row (Fixes #5618) - #5626
Conversation
…CING phrase; plain section COPYs get a copy_statement_data row (Fixes #5618) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5626 @ b76b5b0: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/3 (failure) -- real |
…tements (Part of #5618) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (1ef5215) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
|
PR #5626 @ 1ef5215: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/3 (failure) -- real |
…stays green (Part of #5618) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6d4c287) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Fixes #5618 (engine side).
Cause
_COPY_IN_ENTRY(mainframe_boundary.py) read the member name up to., so forCOPY "m.cpy" OF lib/COPY "m.cpy" REPLACING ...the closing.cpy"broke theIN|OFandREPLACINGphrases. Alsocopy_statement_dataonly ever received statements with a REPLACING: a plain COPY that follows no entry (before a section's first entry), and any COPY in the PROCEDURE DIVISION, had no row. (The member stem and the copybook edge already resolved.)Change
_COPY_IN_ENTRY: swallow.extonly when a closing quote follows it; the member stays the stem.copy_statement_datawith emptyreplacing.PROCEDURE.galaxy_ir._materialize_replaced_copiesskips rows with no REPLACING or sectionPROCEDURE, so nothing new is expanded.Class table
COPY "x.cpy"./'x.cpy'.in a groupCOPY "x.cpy".before first entryCOPY x./"x".regression"m.cpy" OF lib,REPLACINGafter a quoted memberAcceptance (acherm/agentic-cobol-doom-cc, MIT,
117db75)Scanned with this worktree's engine.
copy_statement_data= 7 (was 3):walker.coblines 40-42 (WORKING-STORAGE: ws-levels, ws-entities, ws-render) and 85-88 (PROCEDURE: pd-screens, pd-level, pd-world, pd-render), fixed format, area B. The source has 7 COPY statements (grep). Each of the 7 has anedge_dataimport edge fromwalker.cobto itscpy/<member>.cpyfile. An internal sample also passes.Sibling gaps
galaxy_ir).record_data.copy_members, notcopy_statement_data, so the full count is the sum of both tables.Gates
pr_gates --fast6/6;--ratchets8/8;crucible_check.pyboth legs PASS (no drift, no re-bless); 32 copy tests pass.🤖 Generated with Claude Code