Repository navigation
Description
Parent: #2516 (cross-posted; this issue originated under the aerospace epic #75, which it also remains part of)
Related: #2502 (opened later, as part of a coordinated mainframe-language-family batch) also adds a pli profile, emphasizing CICS/ipc_rpc_bridges/io rather than this issue's structural_boundaries/memory_alloc focus. These need to be consolidated into one pli implementation, not built independently -- see #2516 for the tracking note.
Epic: #75
Target: gitgalaxy/standards/language_standards.py
Context & Strategic Value
PL/I underlies legacy mainframe infrastructure and foundational segments of the International Space Station (ISS) control software. Bridging visibility into this generation of code lets GitGalaxy audit infrastructure that predates modern toolchains entirely.
Implementation Tasks
- Add
plitoLANGUAGE_DEFINITIONS. - Define Extensions:
.pli,.pl1. - Set
lexical_familytostandard_block(Uses/* */). - Implement
structural_boundariessignature: TargetPROCEDURE,BEGIN,END. - Implement
memory_allocsignature: TargetALLOCATE,FREE. - [Process check] Cross-reference the language's official spec/reference manual for this signature's full keyword vocabulary before closing -- do not rely solely on the abbreviated list below. Run the
tests/extraction/languages/test_pli_strict.pyharness and confirm coverage againstgitgalaxy/standards/how_to_add_a_language.md's recurring-bug-class checklist. (Implement Ada & SPARK Structural Signatures #76's SPARK refinement-aspect gap -- found only in a manual post-merge pass, fixed in commit f1326f6 -- is the failure mode this guards against.)
Validation
Scan legacy PL/I mainframe or ISS-heritage snippets. Confirm memory_alloc correctly flags ALLOCATE/FREE pairs and structural_boundaries cleanly delimits PROCEDURE blocks.
Activity
Add PL/I (pli) as a language, with CICS/SQL/DLI parity with cobol (#2502