Add macro to define parse hooks