Repository navigation
Fixed-form row wrapper lives in core.cobol_source_format (Part of #5648) - #5801
Merged
Merged
Conversation
…ives in core.cobol_source_format (Part of #5648) as_fixed_rows keeps its Line / grammar-literal logic in the translator and takes the column-72 wrapping from core. Moved verbatim; differential vs main's _wrap over 40000 random inputs is identical. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 21, 2026 00:30
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 21, 2026 00:30
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 #5648 (slice 6).
What
The fixed-form row wrapper of
det/source.py'sas_fixed_rowsmoves tocore.cobol_source_format:wrap_fixed(was_wrap),join_wrapped(wasunwrap's_CONTINUEDjoin), and the column constantsTEXT_END(72),TEXT_WIDTH(65),FIXED_LEAD,CONTINUATION_LEAD.as_fixed_rowskeeps itsLine/ grammar-literal (QQ, HX) logic, which is translator-only. Moved verbatim.Class
Fixed-form column layout (col 7 indicator, col 72 edge) knowledge outside
core.cobol_source_format. Covered: the translator's wrap and rejoin. Not covered: see Sibling gaps.Evidence
_wrap/_CONTINUEDover 40000 random inputs (quotes, doubled quotes, spaces, 0-200 chars): identical.tests/core_engine/test_cobol_fixed_wrap_5648.py7 pass (width, no row past col 72, literal resumes with its quote, doubled quote at col 72, translator holds no copy).tests/cobol_mainframe -k "det or layout or free or copy or comment or feature_inventory or source": 2703 passed, 250 skipped.pr_gates --fast7/7,--ratchets8/8,audit_checkclear, tree-wide guards green. Golden masters not re-run: no scanner code changed (additive functions in core).Remaining slices (#5648)
expand().>>IF/>>ELSE/>>END-IF/>>DEFINEshared expander usingcore.compiler_options.expand()/_replacingonto a coreexpand(source, libraries);EXEC SQL INCLUDEexpansion.det/source.pylogical_linesfixed/free line splitting (indicator, col 72) and_SOURCE_FORMATontoline_formats(see gap 1).docs/language_status/fact_ownership.mdnote.Sibling gaps
det/source.py:297_SOURCE_FORMATknows only FREE|FIXED and is matched online[6:]; coredirective_formatalso reads VARIABLE and Micro Focus$SET SOURCEFORMAT. Not unified here: it changes which lines the translator reads (output risk), needs its own proof. Source:logical_lines.core/data_moves.py:140,core/cics_macro_level.py:92: naive*>cut (from Floating *> comment helpers live in core.cobol_preprocessor (Part of #5648) #5785); needs golden.🤖 Generated with Claude Code