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])
def p_state ( self , state ) : state [ 0 ] = State ( state [ 1 ] [ 0 ] , state [ 1 ] [ 1 ] , state [ 1 ] [ 2 ] , state [ 1 ] [ 3 ] , state [ 2 ] )
state : STATE opttexts