parser for calculator without ANTLR