Add grammar for SDAG 'when' and 'overlap' statements