Billy Brown


Scheme Pattern Matching

A simple implementation of basic pattern matching in Scheme.

While writing an interpreter in Scheme that executes an Abstract Syntax Tree (AST), I sorely missed Haskell's pattern matching, which makes picking the code to run based on a node very simple.

Here follows the motivation for, explanation of and implementation of some simple Scheme code for basic pattern matching. Read More