Computing the AST for a calculator-like language using pegjs