The Interpreter
Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Interpreter
ARCANUM SCHOOL: Divination // Parsing
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PLI PATTERN //
/* The Interpreter */
INTERPRETER: PROC OPTIONS(MAIN);
DCL 1 EXPRESSION BASED(E_PTR),
2 INTERPRET ENTRY(CHAR(100)) RETURNS(BIT(1));
PUT SKIP LIST('Parsing arcane JCL parameters...');
END INTERPRETER;
The Interpreter evaluates expressions defined in a custom mainframe grammar, often using recursive structures and based variables.
Runic Tags:
#interpreter
#grammar
#parsing