parse transform for def-like functionality