initial AST generator for calculator