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