code: def p_not_expression(tok):
          
          if len(tok) == 3:
              tok[0] = UnaryOperationRule(tok[1], tok[2])
          else:
              tok[0] = tok[1]
docs: not_expression : OP_NOT ex_expression
                            | ex_expression