λ HASKELL SIGILS DIFFICULTY: Adept Behavioral

The Interpreter

Parsing the true names of the universe via parser combinators and ASTs.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Interpreter
ARCANUM SCHOOL: Divination // Linguistics
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Interpreter where
data Expr = Lit Int | Add Expr Expr
eval :: Expr -> Int
eval (Lit n) = n
eval (Add a b) = eval a + eval b
Runic Tags: #interpreter #ast #behavioral