✨ ARCANUM RUNE DIFFICULTY: Archmage Behavioral

The Interpreter

Parsing ancient runes to execute conditional resurrection logic.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Interpreter
ARCANUM SCHOOL: Divination // Rune-Reading
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
INTERPRETER ; Interpreter Pattern in MUMPS
;
; Runes: "RA" = Resurrect All, "K:" = Kill specific
;
PARSE(RUNES) ;
  N I,CMD,ARG
  F I=1:1:$L(RUNES,"|") D
  . S CMD=$P($P(RUNES,"|",I),":",1)
  . S ARG=$P($P(RUNES,"|",I),":",2)
  . I CMD="RA" D RESALL
  . I CMD="K" D KILL(ARG)
  Q
;
RESALL W "Resurrecting all patients in the ward!",! Q
KILL(ID) W "Terminating patient ",ID,"'s life support.",! Q
Runic Tags: #behavioral #interpreter #mumps #necromancy