Implement the following grammar rules for the parser:

3 → |
4 ()
5 → sin | cos | tan | exp | sqrt | abs