def p_rest_body__RESTNAME__positive_leaf_duration(self, p): """ rest_body : RESTNAME positive_leaf_duration """ p[0] = core.Rest(p[2])
def p_rest_body__negative_leaf_duration(self, p): """ rest_body : negative_leaf_duration """ p[0] = core.Rest(p[1])
def p_rest_body__RESTNAME(self, p): """ rest_body : RESTNAME """ p[0] = core.Rest(self._default_duration)