work in progress
@done: refs calculator: write a mini parser, still needs tests