The core implementation of the calculator with custom calculator functions.
Forked from an inaccessible project