Repository navigation
det/JSON PARSE: CONVERTING FROM JSON BOOLEAN / NULL (Part of #7524) - #8071
Conversation
JSON PARSE takes IBM's converting phrase: a one-byte PIC X item gets the literal / figurative for a JSON true, false or null. Unconverted values, the one-condition-name form, IGNORING / INDICATING stay refused by name. Assumed (IBM-documented), oracle-unbacked: no L2+ claim. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8071 @ 7b13f33: 1 failed check(s) == runner-tests (failure) -- real |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…churn/7524-20261108T0236Z
|
No description provided. |
|
No description provided. |
Part of #7524. Checklist: partial [c:3fc8b69b] -- fixture proof of the whole slice is oracle-unbacked, left
Checklist: partial [c:afa8a8d3] -- re-survey and the count on #7709 not done here
JSON PARSE now takes IBM's
CONVERTING ... FROM JSON BOOLEAN | NULLphrase (the one phrase of the slice still refused; name matching, WITH DETAIL, JSON-STATUS and ON EXCEPTION were already in X77). Assumed (IBM-documented), oracle-unbacked (GnuCOBOL has no JSON statement): no L2+ claim, nothing "proven".What changed
stmt.py:_json_parse_converting_phrase(BOOLEAN / BOOL USING cn | cn AND cn | lit AND lit; NULL USING figurative; ALSO chains);bools/nullskeys only when non-empty.gen.py:json_treebuilds converting nodes for PARSE (shared with GENERATE; GENERATE entries unchanged).JsonParse.java: reader accepts true/false/null; a converted one-byte PIC X item stores the IBM value; an unconverted value, or one under an unmatched name / top level, stays a runtime Hole.X77.md, cobolrt API / rules catalogues. Tests:test_det_json_parse.py47 pass (translation, refusal matrix, runtime true/false/null/mixed/Hole).Class / Sibling gaps
Class: every JSON PARSE phrase IBM lists. Still refused by name: IGNORING / INDICATING, NAME OMITTED, SUPPRESS item forms not in PARSE syntax; the one-condition-name BOOLEAN form (layout does not record the 88's WHEN SET TO FALSE value); FROM STRING / NUMBER. Sibling gaps: JSON-STATUS for a converted null (IBM states none: Hole when read); IBM's examples wrap the text in the group's name, X77 assumption (1) says no wrapper (not changed); an elementary receiver; JSON-STATUS after malformed text and bits 4-512; X76.md still says "Still refused: JSON PARSE CONVERTING" (left for the 5-file cap).
Remaining slices
X76.md line fix; IGNORING / INDICATING; one-88 BOOLEAN form; wrapper-name question; re-survey post on #7709 (checklist item 3).
Gates
test_det_json_*,test_det_source_4462,test_gap_prevalence, cobolrt api/rules tests pass;audit_check.pyclear;pr_gates --ratchets9/9;pr_gates --fast8/9: the one failure,test_crucible_case.py::test_events_table_matches_the_crucible_schema(WRITE / DELETE rows from #8064 vs the pinned schema), is in a file this PR does not touch.Lessons for agents
cobolrt_api.py generate --promote-used(emitter-used members default to internal and--checkfails) and its name in a family'splumbingincobolrt_rules.json.🤖 Generated with Claude Code