Repository navigation
det: continued hex literals, IDMS refused by name, multi-program sources as units, ENTRY / FUNCTION refmod (#4462 slice 2) - #4535
Merged
Conversation
…ces as units, ENTRY / FUNCTION refmod / x'00' (#4462) - A hex literal continued onto a second row (either quote style) is handed to the grammar as an alphanumeric stand-in ("<U+001F>C1..."), which it continues; unwrap restores X"C1...". A lower-case x'00' is handed over as X'00' (GenApp lgtestc1). MOVE ALL X'00' is read (estate-crucible KØBREG). - IDMS (IDMS-CONTROL / SCHEMA SECTION) is refused by name: "IDMS DML not supported" (LNIDMS01; #4532 tracks support). - Multi-program sources: source.program_units cuts an expanded source into its programs (nested / batch-compiled); layout.parse / stmt.parse refuse several programs by name (they had silently read only the first); program.translate(..., unit=) translates one program as its own class; a nested program under GLOBAL data is refused (UnitRefused). The cross-check reads every unit, extents ending with their program. PAYMAIN stays refused first by its COPY collision (#4486, not decided here). - ENTRY 'DLITCBL' USING pcb ... is a statement (the program's entry when first); FUNCTION f (1:4) parses (handed to the grammar as an argument list of the same length) and gen applies the reference modification (it had dropped it). - Newly read: CardDemo DBUNLDGS, PAUDBLOD, PAUDBUNL, CBIMPORT; GenApp lgtestc1; estate-crucible KØBREG. Ledger updated with fact_crosscheck.py update / assign. Part of #4462 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Contributor
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR # Conflicts: # docs/language_status/det_port_design.md
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
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 #4462 (slice 2). Slices 1a (#4522) and 1b (#4526) are merged.
What changes
X'...'orX"...") failed to parse in both quote styles because the grammar does not continue hex literals. On a re-wrapped line the grammar now gets an alphanumeric stand-in,"<U+001F>C1C2...", which it can continue.unwrapturns it back intoX"C1C2...". A source that contains U+001F is refused by name. A lower-casex'00'is handed to the grammar asX'00'(GenApp lgtestc1).MOVE ALL X'00'is now read (KØBREG).source.unmodelled: an IDMS-CONTROL SECTION, a SCHEMA SECTION orMODE IS IDMS). This covers estate-crucible LNIDMS01, now under the new ledger causetranslator-refuses-idms. IDMS support is tracked in det translator: IDMS (IDMS-DC / DMLC) programs are refused by name; model IDMS DML and subschema records #4532 (enhancement, legacy-modernization, priority: medium, milestone 28).source.program_unitssplits an expanded source into its programs. A program that begins while another is still open is nested in it. END PROGRAM closes the innermost open program and must name it.layout.parseandstmt.parserefuse a source that holds several programs, by name. Before this, they silently read only the first program's records and paragraphs.program.translate(..., unit=)translates one program as its own class. The default is the first program.UnitRefused).ENTRY 'DLITCBL' USING pcb ...(IMS DL/I) is now a statement. When it is the first statement and the PROCEDURE DIVISION has no USING, it is the program's entry. Anywhere else it translates as a hole.FUNCTION f (1:4)/FUNCTION f(a) (2:3): the grammar gets an argument list of the same length, and expr reads the reference modification. gen used to drop the modification and now takes the substring.x'..'.Still refused (
translator-refuses-grammar, 6 entries after this PR, down from 12), with counts:C01 IS KANAL-1, IDIOT IS 'ABC...ÆØÅ', COBOL-74 SPECIAL-NAMES)LABEL RECORD ARE STANDARD(singular RECORD with ARE; the grammar wants RECORD IS / RECORDS ARE)EXHIBIT NAMED(after ENTRY was fixed, the next gap)03 CA-CUSPOL-REQUEST(a source defect the engine tolerates; refusal is right)Fixed in this slice: ENTRY 'DLITCBL' USING (4: DBUNLDGS, PAUDBLOD, PAUDBUNL, R001BYDL's first gap), a reference modification of an intrinsic function,
FUNCTION CURRENT-DATE (1:4)(2: KØBREG, CBIMPORT), lower-casex'00'(1: lgtestc1). KØBREG's next gap,MOVE ALL X'00', is read too.Ratchets and evidence
fact_crosscheck_ledger.jsonwas regenerated withfact_crosscheck.py update/assignafter merging COBOL engine: a group's USAGE applies to its elementary items (#4525) #4531. It drops 8 entries, adds 2 (R001BYDL's next gap at line 193, and LNIDMS01's by-name refusal), and adds the causetranslator-refuses-idmsin place oftranslator-refuses-estate-shape.checkgives 0 new and 0 stale.pr_gates.py --ratchets: 5/5 pass (ports, estate, fact-crosscheck, completeness, ground-truth). It was re-run after merging CICS facades: answer the own COMMAREA DTO where returned() converts by layout without loss (#4449 part 2) #4529.proof_sweep.py --det-only): 55/58 proven, "as expected", so the baseline is unchanged.pr_gates.py: 7/7 pass (lint, audits, secrets, xray, gauntlet, golden, suite).mypy-audit.ymlinstall in a fresh py3.12 venv on a clean worktree with an empty env. One error was found and fixed, and the audit then reported no new errors.🤖 Generated with Claude Code
https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR