Extensible stack-based calculator primarily in library form