Code Samples

The samples below are also available through my GitHub account.

PHP Expression Parser

A PHP-based class with an AJAX front end to parse mathematical expressions via my implementation of Dijkstra’s shunting-yard algorithm. Supports +, -, *, /, and parentheses.

View demo and source code.

Java MIDI Tick Range Class

For my iPather project, I needed a class to represent discrete ranges within a MIDI sequence that could provide functionality of a mathematical interval: contains, intersection, and union.

View source code.