Calculator parser without using ANTLR