You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
COBOL→Java translator: det/source.py _COPY does not match a quoted copybook literal with an extension (COPY "x.cpy".), so the copybook is never expanded #5645
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginepriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
A quoted member must be all word characters, so a quoted file literal with an extension matches nothing (checked at main):
source
match
COPY "ws-state.cpy".
none
COPY 'ws-state.cpy'.
none
COPY "WSSTATE".
WSSTATE
COPY WSSTATE.
WSSTATE
Effect on translation: the include is not expanded, so the copybook's data items are unresolved in the generated Java (generation or compile failure for any program that names copybooks this way: GnuCOBOL free-format style, and fixed format too). #5618 / PR #5626 fix the scanner side only (mainframe_boundary.py, galaxy_ir.py); this is the translator's copy of the same rule.
Acceptance
_COPY (and any sibling COPY/REPLACING parsing in det/) accepts a quoted literal with dots/extension, single or double quotes, fixed and free format, with OF/IN lib and REPLACING; the member resolves to the copybook file in the source tree (ws-state.cpy -> that file; unquoted WSSTATE keeps today's lookup).
Tests (our own fixtures) for each shape, including a small program whose translation needs the quoted copybook's fields; existing estate/CICS crucible translations unchanged.
Share one COPY-literal rule between scanner and translator if practical, so they can't drift again.
Found while checking how the #5618 fix reaches CICS→Java translation (#5457).
Folded into #5648 (shared COBOL preprocessor): the translator's COPY handling moves into one module shared with the scanner, and this case (COPY "x.cpy".) is in its acceptance. Fixing it here first would mean fixing it twice.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginepriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
squid-protocol commentedon Oct 19, 2026
Folded into #5648 (shared COBOL preprocessor): the translator's COPY handling moves into one module shared with the scanner, and this case (
COPY "x.cpy".) is in its acceptance. Fixing it here first would mean fixing it twice.🤖 Generated with Claude Code
core.cobol_preprocessor: one COPY / REPLACING rule for the scanner an…