code: def p_IndexType(self, p):
          
          n = len(p)
          if n == 2:
              p[0] = (0, p[1])
          elif n == 3:
              p[0] = (1, p[2])
docs: IndexType : IMPLIED Index
                       | Index