code: def p_state(self, state):
          '''state : STATE opttexts'''
          state[0] = State(state[1][0], state[1][1], state[1][2], state[1][3], state[2]f p_state(self, state):
          '''state : STATE opttexts'''
          state[0] = State(state[1][0], state[1][1], state[1][2], state[1][3], state[2])
docs: state : STATE opttexts