Repository navigation
Description
Epic: #75
Target: gitgalaxy/standards/language_standards.py
Context & Strategic Value
Legacy military platforms (like the F-15 and the U.S. Navy Aegis Combat System) still rely on millions of lines of JOVIAL and CMS-2. Modern static analysis tools completely ignore these languages. By mapping their structural signatures, GitGalaxy provides instant architectural visibility into dead languages, bridging a massive generational knowledge gap for defense contractors.
Implementation Tasks
JOVIAL
- Add
jovialtoLANGUAGE_DEFINITIONS. - Define Extensions:
.jov,.cpool. - Set
lexical_familytostandard_block("or%for comments). - Implement
class_startsignature: TargetTABLEandITEMdeclarations. - Implement
high_risk_executionsignature: TargetGOTO,FALLTHRU(Critical for tracking unstructured legacy flow). - Implement
memory_allocsignature: Target manual memory overlays (OVERLAY).
CMS-2
-
Add
cms2toLANGUAGE_DEFINITIONS. -
Define Extensions:
.cms2,.cms. -
Set
lexical_familytostandard_block(UsesCOMMENT ... $block markers). -
Implement
globalssignature: TargetSYS-DD(System Data Design). -
Implement
structural_boundariessignature: TargetPROCEDURE,EXEC. -
[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 above. Run the
tests/extraction/languages/test_<lang>_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 f1326f6 -- is the failure mode this guards against.)
Validation
Ensure that legacy unstructured jumps (GOTO) correctly spike the high-risk execution telemetry vectors.
Activity