interpreter-grammar-class-mapping-validates-one-class-per-rule-design

Status: OUT

Interpreter's one-class-per-grammar-rule mapping — where each terminal and nonterminal symbol becomes a class — along with its explicit exclusion of parsing concerns, can be seen as consistent with SRP in the behavioral domain: each expression class corresponds to a single grammar rule, and parsing is treated as a separate concern handled by different mechanisms.

Justifications

Interpreter's class-per-rule with excluded parsing exemplifies SRP's actor-based separation

Depends on (SL): interpreter-one-class-per-grammar-rule, interpreter-does-not-address-parsing, srp-canonical-definition

JSON