Repository navigation
Floating *> comment helpers live in core.cobol_preprocessor (Part of #5648) - #5785
Merged
Merged
Conversation
…code live in core.cobol_preprocessor (Part of #5648) The translator's literal-aware `*>` comment helpers move to the shared module; det/source.py and the readiness inventory import them. 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 20, 2026 21:22
Contributor
Owner
Author
|
No description provided. |
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 5).
What
The translator's literal-aware floating
*>comment helpers (_comment_at,_open_literal,_drop_comment,_free_code) move tocore.cobol_preprocessorascomment_at,open_literal,drop_comment,free_code.det/source.pyandreadiness/inventory.pyimport them. Logic is moved verbatim (free_codeis nowline[:comment_at(line)], same result).Class
Text-level front-end helpers still duplicated between scanner and translator. This PR: floating
*>comment + open literal (translator side, no scanner copy existed with literal awareness).Evidence
test_cobol_preprocessor_5648.py57 pass (new: marker in a literal, doubled quote, whole-line comment, none; translator holds no copy).tests/cobol_mainframe -k "det or layout or free or copy or comment or feature_inventory": 2621 passed, 245 skipped.pr_gates --fast6/6,--ratchets8/8 (fact-crosscheck and ports unchanged),audit_checkclear, tree-wide guards green.Remaining slices (#5648)
det/source.pylayout:as_fixed/as_fixed_rows(:~1001), fixed/free line splitting (indicator, col 72) ontocore.cobol_source_format.expand().>>IF/>>ELSE/>>END-IF/>>DEFINEshared expander usingcore.compiler_options.expand()/_replacingonto a coreexpand(source, libraries);EXEC SQL INCLUDEexpansion.docs/language_status/fact_ownership.mdnote.Sibling gaps
core/data_moves.py:140andcore/cics_macro_level.py:92cut*>with no literal awareness ('*>'literal truncated). Burned-estate need: none found in this slice (not measured); would shift scanner output, needs golden.🤖 Generated with Claude Code