🏢 PL/I MONOLITH DIFFICULTY: Archmage Structural

The Composite

Compose data sets into tree structures to represent part-whole hierarchies in IBM Job Control.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Composite
ARCANUM SCHOOL: Transmutation // Structure
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PLI PATTERN //
/* The Composite */
COMPOSITE: PROC OPTIONS(MAIN);
   DCL 1 COMPONENT BASED(C_PTR),
         2 TYPE CHAR(1), /* L for Leaf, C for Composite */
         2 OPERATION ENTRY,
         2 CHILDREN POINTER; /* Linked list of children */
   PUT SKIP LIST('Traversing the hierarchical Job Control structure...');
END COMPOSITE;

The Composite requires manual linked list manipulation in PL/I to maintain tree structures of components.

Runic Tags: #composite #tree #hierarchy