parse the retval function attribute